nvcodec: Indent update

... to prevent gnu indent version dependent diffs.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1834>
This commit is contained in:
Seungha Yang 2022-03-03 03:24:14 +09:00
parent cec7ac2a1b
commit 1b9274307a
5 changed files with 69 additions and 51 deletions

View file

@ -40,6 +40,7 @@ GST_DEBUG_CATEGORY_EXTERN (gst_nvcodec_debug);
} \ } \
} G_STMT_END; } G_STMT_END;
/* *INDENT-OFF* */
typedef struct _GstNvCodecCudaVTable typedef struct _GstNvCodecCudaVTable
{ {
gboolean loaded; gboolean loaded;
@ -121,6 +122,7 @@ typedef struct _GstNvCodecCudaVTable
CUdevice * pCudaDevices, unsigned int cudaDeviceCount, CUdevice * pCudaDevices, unsigned int cudaDeviceCount,
CUGLDeviceList deviceList); CUGLDeviceList deviceList);
} GstNvCodecCudaVTable; } GstNvCodecCudaVTable;
/* *INDENT-ON* */
static GstNvCodecCudaVTable gst_cuda_vtable = { 0, }; static GstNvCodecCudaVTable gst_cuda_vtable = { 0, };
@ -305,6 +307,7 @@ CuGraphicsSubResourceGetMappedArray (CUarray * pArray,
arrayIndex, mipLevel); arrayIndex, mipLevel);
} }
/* *INDENT-OFF* */
CUresult CUDAAPI CUresult CUDAAPI
CuGraphicsResourceGetMappedPointer (CUdeviceptr * pDevPtr, size_t * pSize, CuGraphicsResourceGetMappedPointer (CUdeviceptr * pDevPtr, size_t * pSize,
CUgraphicsResource resource) CUgraphicsResource resource)
@ -314,6 +317,7 @@ CuGraphicsResourceGetMappedPointer (CUdeviceptr * pDevPtr, size_t * pSize,
return gst_cuda_vtable.CuGraphicsResourceGetMappedPointer (pDevPtr, pSize, return gst_cuda_vtable.CuGraphicsResourceGetMappedPointer (pDevPtr, pSize,
resource); resource);
} }
/* *INDENT-ON* */
CUresult CUDAAPI CUresult CUDAAPI
CuGraphicsUnregisterResource (CUgraphicsResource resource) CuGraphicsUnregisterResource (CUgraphicsResource resource)
@ -331,6 +335,7 @@ CuMemAlloc (CUdeviceptr * dptr, unsigned int bytesize)
return gst_cuda_vtable.CuMemAlloc (dptr, bytesize); return gst_cuda_vtable.CuMemAlloc (dptr, bytesize);
} }
/* *INDENT-OFF* */
CUresult CUDAAPI CUresult CUDAAPI
CuMemAllocPitch (CUdeviceptr * dptr, size_t * pPitch, size_t WidthInBytes, CuMemAllocPitch (CUdeviceptr * dptr, size_t * pPitch, size_t WidthInBytes,
size_t Height, unsigned int ElementSizeBytes) size_t Height, unsigned int ElementSizeBytes)
@ -340,6 +345,7 @@ CuMemAllocPitch (CUdeviceptr * dptr, size_t * pPitch, size_t WidthInBytes,
return gst_cuda_vtable.CuMemAllocPitch (dptr, pPitch, WidthInBytes, Height, return gst_cuda_vtable.CuMemAllocPitch (dptr, pPitch, WidthInBytes, Height,
ElementSizeBytes); ElementSizeBytes);
} }
/* *INDENT-ON* */
CUresult CUDAAPI CUresult CUDAAPI
CuMemAllocHost (void **pp, unsigned int bytesize) CuMemAllocHost (void **pp, unsigned int bytesize)

View file

@ -251,7 +251,10 @@ gst_cuda_memory_download_transfer (GstCudaMemory * mem)
} }
gst_cuda_result (CuStreamSynchronize (NULL)); gst_cuda_result (CuStreamSynchronize (NULL));
return ! !mem->map_data; if (!mem->map_data)
return FALSE;
return TRUE;
} }
static gpointer static gpointer

View file

@ -156,8 +156,8 @@ gst_cuda_scale_fixate_caps (GstBaseTransform * base, GstPadDirection direction,
{ {
GstStructure *ins, *outs; GstStructure *ins, *outs;
const GValue *from_par, *to_par; const GValue *from_par, *to_par;
GValue fpar = { 0, }, tpar = { GValue fpar = G_VALUE_INIT;
0,}; GValue tpar = G_VALUE_INIT;
othercaps = gst_caps_truncate (othercaps); othercaps = gst_caps_truncate (othercaps);
othercaps = gst_caps_make_writable (othercaps); othercaps = gst_caps_make_writable (othercaps);

View file

@ -136,7 +136,10 @@ gst_cuvid_get_api_version (guint * api_major_ver, guint * api_minor_ver)
gboolean gboolean
gst_cuvid_can_get_decoder_caps (void) gst_cuvid_can_get_decoder_caps (void)
{ {
return ! !gst_cuvid_vtable.CuvidGetDecoderCaps; if (gst_cuvid_vtable.CuvidGetDecoderCaps)
return TRUE;
return FALSE;
} }
CUresult CUDAAPI CUresult CUDAAPI

View file

@ -42,6 +42,7 @@ GST_DEBUG_CATEGORY_EXTERN (gst_nvcodec_debug);
} \ } \
} G_STMT_END; } G_STMT_END;
/* *INDENT-OFF* */
typedef struct _GstNvCodecNvrtcVtahle typedef struct _GstNvCodecNvrtcVtahle
{ {
gboolean loaded; gboolean loaded;
@ -58,6 +59,7 @@ typedef struct _GstNvCodecNvrtcVtahle
nvrtcResult (*NvrtcGetProgramLogSize) (nvrtcProgram prog, nvrtcResult (*NvrtcGetProgramLogSize) (nvrtcProgram prog,
size_t * logSizeRet); size_t * logSizeRet);
} GstNvCodecNvrtcVtahle; } GstNvCodecNvrtcVtahle;
/* *INDENT-ON* */
static GstNvCodecNvrtcVtahle gst_nvrtc_vtable = { 0, }; static GstNvCodecNvrtcVtahle gst_nvrtc_vtable = { 0, };
@ -174,6 +176,7 @@ NvrtcGetPTX (nvrtcProgram prog, char *ptx)
return gst_nvrtc_vtable.NvrtcGetPTX (prog, ptx); return gst_nvrtc_vtable.NvrtcGetPTX (prog, ptx);
} }
/* *INDENT-OFF* */
nvrtcResult nvrtcResult
NvrtcGetPTXSize (nvrtcProgram prog, size_t * ptxSizeRet) NvrtcGetPTXSize (nvrtcProgram prog, size_t * ptxSizeRet)
{ {
@ -181,6 +184,7 @@ NvrtcGetPTXSize (nvrtcProgram prog, size_t * ptxSizeRet)
return gst_nvrtc_vtable.NvrtcGetPTXSize (prog, ptxSizeRet); return gst_nvrtc_vtable.NvrtcGetPTXSize (prog, ptxSizeRet);
} }
/* *INDENT-ON* */
nvrtcResult nvrtcResult
NvrtcGetProgramLog (nvrtcProgram prog, char *log) NvrtcGetProgramLog (nvrtcProgram prog, char *log)
@ -190,6 +194,7 @@ NvrtcGetProgramLog (nvrtcProgram prog, char *log)
return gst_nvrtc_vtable.NvrtcGetProgramLog (prog, log); return gst_nvrtc_vtable.NvrtcGetProgramLog (prog, log);
} }
/* *INDENT-OFF* */
nvrtcResult nvrtcResult
NvrtcGetProgramLogSize (nvrtcProgram prog, size_t * logSizeRet) NvrtcGetProgramLogSize (nvrtcProgram prog, size_t * logSizeRet)
{ {
@ -197,3 +202,4 @@ NvrtcGetProgramLogSize (nvrtcProgram prog, size_t * logSizeRet)
return gst_nvrtc_vtable.NvrtcGetProgramLogSize (prog, logSizeRet); return gst_nvrtc_vtable.NvrtcGetProgramLogSize (prog, logSizeRet);
} }
/* *INDENT-ON* */