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

View file

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

View file

@ -156,8 +156,8 @@ gst_cuda_scale_fixate_caps (GstBaseTransform * base, GstPadDirection direction,
{
GstStructure *ins, *outs;
const GValue *from_par, *to_par;
GValue fpar = { 0, }, tpar = {
0,};
GValue fpar = G_VALUE_INIT;
GValue tpar = G_VALUE_INIT;
othercaps = gst_caps_truncate (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
gst_cuvid_can_get_decoder_caps (void)
{
return ! !gst_cuvid_vtable.CuvidGetDecoderCaps;
if (gst_cuvid_vtable.CuvidGetDecoderCaps)
return TRUE;
return FALSE;
}
CUresult CUDAAPI

View file

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