} \
} G_STMT_END;
+/* *INDENT-OFF* */
typedef struct _GstNvCodecCudaVTable
{
gboolean loaded;
- CUresult (CUDAAPI * CuInit) (unsigned int Flags);
- CUresult (CUDAAPI * CuGetErrorName) (CUresult error, const char **pStr);
- CUresult (CUDAAPI * CuGetErrorString) (CUresult error, const char **pStr);
+ CUresult (CUDAAPI * CuInit) (unsigned int Flags);
+ CUresult (CUDAAPI * CuGetErrorName) (CUresult error, const char **pStr);
+ CUresult (CUDAAPI * CuGetErrorString) (CUresult error, const char **pStr);
- CUresult (CUDAAPI * CuCtxCreate) (CUcontext * pctx, unsigned int flags,
+ CUresult (CUDAAPI * CuCtxCreate) (CUcontext * pctx, unsigned int flags,
CUdevice dev);
- CUresult (CUDAAPI * CuCtxDestroy) (CUcontext ctx);
- CUresult (CUDAAPI * CuCtxPopCurrent) (CUcontext * pctx);
- CUresult (CUDAAPI * CuCtxPushCurrent) (CUcontext ctx);
+ CUresult (CUDAAPI * CuCtxDestroy) (CUcontext ctx);
+ CUresult (CUDAAPI * CuCtxPopCurrent) (CUcontext * pctx);
+ CUresult (CUDAAPI * CuCtxPushCurrent) (CUcontext ctx);
- CUresult (CUDAAPI * CuCtxEnablePeerAccess) (CUcontext peerContext,
+ CUresult (CUDAAPI * CuCtxEnablePeerAccess) (CUcontext peerContext,
unsigned int Flags);
- CUresult (CUDAAPI * CuCtxDisablePeerAccess) (CUcontext peerContext);
- CUresult (CUDAAPI * CuGraphicsMapResources) (unsigned int count,
+ CUresult (CUDAAPI * CuCtxDisablePeerAccess) (CUcontext peerContext);
+ CUresult (CUDAAPI * CuGraphicsMapResources) (unsigned int count,
CUgraphicsResource * resources, CUstream hStream);
- CUresult (CUDAAPI * CuGraphicsUnmapResources) (unsigned int count,
+ CUresult (CUDAAPI * CuGraphicsUnmapResources) (unsigned int count,
CUgraphicsResource * resources, CUstream hStream);
- CUresult (CUDAAPI * CuGraphicsSubResourceGetMappedArray) (CUarray * pArray,
+ CUresult (CUDAAPI * CuGraphicsSubResourceGetMappedArray) (CUarray * pArray,
CUgraphicsResource resource, unsigned int arrayIndex,
unsigned int mipLevel);
- CUresult (CUDAAPI * CuGraphicsResourceGetMappedPointer) (CUdeviceptr *
+ CUresult (CUDAAPI * CuGraphicsResourceGetMappedPointer) (CUdeviceptr *
pDevPtr, size_t * pSize, CUgraphicsResource resource);
- CUresult (CUDAAPI *
+ CUresult (CUDAAPI *
CuGraphicsUnregisterResource) (CUgraphicsResource resource);
- CUresult (CUDAAPI * CuMemAlloc) (CUdeviceptr * dptr, unsigned int bytesize);
- CUresult (CUDAAPI * CuMemAllocPitch) (CUdeviceptr * dptr, size_t * pPitch,
+ CUresult (CUDAAPI * CuMemAlloc) (CUdeviceptr * dptr, unsigned int bytesize);
+ CUresult (CUDAAPI * CuMemAllocPitch) (CUdeviceptr * dptr, size_t * pPitch,
size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes);
- CUresult (CUDAAPI * CuMemAllocHost) (void **pp, unsigned int bytesize);
- CUresult (CUDAAPI * CuMemcpy2D) (const CUDA_MEMCPY2D * pCopy);
- CUresult (CUDAAPI * CuMemcpy2DAsync) (const CUDA_MEMCPY2D * pCopy,
+ CUresult (CUDAAPI * CuMemAllocHost) (void **pp, unsigned int bytesize);
+ CUresult (CUDAAPI * CuMemcpy2D) (const CUDA_MEMCPY2D * pCopy);
+ CUresult (CUDAAPI * CuMemcpy2DAsync) (const CUDA_MEMCPY2D * pCopy,
CUstream hStream);
- CUresult (CUDAAPI * CuMemFree) (CUdeviceptr dptr);
- CUresult (CUDAAPI * CuMemFreeHost) (void *p);
+ CUresult (CUDAAPI * CuMemFree) (CUdeviceptr dptr);
+ CUresult (CUDAAPI * CuMemFreeHost) (void *p);
- CUresult (CUDAAPI * CuStreamCreate) (CUstream * phStream,
+ CUresult (CUDAAPI * CuStreamCreate) (CUstream * phStream,
unsigned int Flags);
- CUresult (CUDAAPI * CuStreamDestroy) (CUstream hStream);
- CUresult (CUDAAPI * CuStreamSynchronize) (CUstream hStream);
+ CUresult (CUDAAPI * CuStreamDestroy) (CUstream hStream);
+ CUresult (CUDAAPI * CuStreamSynchronize) (CUstream hStream);
- CUresult (CUDAAPI * CuDeviceGet) (CUdevice * device, int ordinal);
- CUresult (CUDAAPI * CuDeviceGetCount) (int *count);
- CUresult (CUDAAPI * CuDeviceGetName) (char *name, int len, CUdevice dev);
- CUresult (CUDAAPI * CuDeviceGetAttribute) (int *pi,
+ CUresult (CUDAAPI * CuDeviceGet) (CUdevice * device, int ordinal);
+ CUresult (CUDAAPI * CuDeviceGetCount) (int *count);
+ CUresult (CUDAAPI * CuDeviceGetName) (char *name, int len, CUdevice dev);
+ CUresult (CUDAAPI * CuDeviceGetAttribute) (int *pi,
CUdevice_attribute attrib, CUdevice dev);
- CUresult (CUDAAPI * CuDeviceCanAccessPeer) (int *canAccessPeer,
+ CUresult (CUDAAPI * CuDeviceCanAccessPeer) (int *canAccessPeer,
CUdevice dev, CUdevice peerDev);
- CUresult (CUDAAPI * CuDriverGetVersion) (int *driverVersion);
+ CUresult (CUDAAPI * CuDriverGetVersion) (int *driverVersion);
- CUresult (CUDAAPI * CuModuleLoadData) (CUmodule * module,
+ CUresult (CUDAAPI * CuModuleLoadData) (CUmodule * module,
const void *image);
- CUresult (CUDAAPI * CuModuleUnload) (CUmodule module);
- CUresult (CUDAAPI * CuModuleGetFunction) (CUfunction * hfunc,
+ CUresult (CUDAAPI * CuModuleUnload) (CUmodule module);
+ CUresult (CUDAAPI * CuModuleGetFunction) (CUfunction * hfunc,
CUmodule hmod, const char *name);
- CUresult (CUDAAPI * CuTexObjectCreate) (CUtexObject * pTexObject,
+ CUresult (CUDAAPI * CuTexObjectCreate) (CUtexObject * pTexObject,
const CUDA_RESOURCE_DESC * pResDesc, const CUDA_TEXTURE_DESC * pTexDesc,
const CUDA_RESOURCE_VIEW_DESC * pResViewDesc);
- CUresult (CUDAAPI * CuTexObjectDestroy) (CUtexObject texObject);
- CUresult (CUDAAPI * CuLaunchKernel) (CUfunction f, unsigned int gridDimX,
+ CUresult (CUDAAPI * CuTexObjectDestroy) (CUtexObject texObject);
+ CUresult (CUDAAPI * CuLaunchKernel) (CUfunction f, unsigned int gridDimX,
unsigned int gridDimY, unsigned int gridDimZ,
unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ,
unsigned int sharedMemBytes, CUstream hStream, void **kernelParams,
void **extra);
- CUresult (CUDAAPI * CuGraphicsGLRegisterImage) (CUgraphicsResource *
+ CUresult (CUDAAPI * CuGraphicsGLRegisterImage) (CUgraphicsResource *
pCudaResource, unsigned int image, unsigned int target,
unsigned int Flags);
- CUresult (CUDAAPI * CuGraphicsGLRegisterBuffer) (CUgraphicsResource *
+ CUresult (CUDAAPI * CuGraphicsGLRegisterBuffer) (CUgraphicsResource *
pCudaResource, unsigned int buffer, unsigned int Flags);
- CUresult (CUDAAPI *
+ CUresult (CUDAAPI *
CuGraphicsResourceSetMapFlags) (CUgraphicsResource resource,
unsigned int flags);
- CUresult (CUDAAPI * CuGLGetDevices) (unsigned int *pCudaDeviceCount,
+ CUresult (CUDAAPI * CuGLGetDevices) (unsigned int *pCudaDeviceCount,
CUdevice * pCudaDevices, unsigned int cudaDeviceCount,
CUGLDeviceList deviceList);
} GstNvCodecCudaVTable;
+/* *INDENT-ON* */
static GstNvCodecCudaVTable gst_cuda_vtable = { 0, };
arrayIndex, mipLevel);
}
+/* *INDENT-OFF* */
CUresult CUDAAPI
CuGraphicsResourceGetMappedPointer (CUdeviceptr * pDevPtr, size_t * pSize,
CUgraphicsResource resource)
return gst_cuda_vtable.CuGraphicsResourceGetMappedPointer (pDevPtr, pSize,
resource);
}
+/* *INDENT-ON* */
CUresult CUDAAPI
CuGraphicsUnregisterResource (CUgraphicsResource resource)
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)
return gst_cuda_vtable.CuMemAllocPitch (dptr, pPitch, WidthInBytes, Height,
ElementSizeBytes);
}
+/* *INDENT-ON* */
CUresult CUDAAPI
CuMemAllocHost (void **pp, unsigned int bytesize)
} \
} G_STMT_END;
+/* *INDENT-OFF* */
typedef struct _GstNvCodecNvrtcVtahle
{
gboolean loaded;
- nvrtcResult (*NvrtcCompileProgram) (nvrtcProgram prog, int numOptions,
+ nvrtcResult (*NvrtcCompileProgram) (nvrtcProgram prog, int numOptions,
const char **options);
- nvrtcResult (*NvrtcCreateProgram) (nvrtcProgram * prog, const char *src,
+ nvrtcResult (*NvrtcCreateProgram) (nvrtcProgram * prog, const char *src,
const char *name, int numHeaders, const char **headers,
const char **includeNames);
- nvrtcResult (*NvrtcDestroyProgram) (nvrtcProgram * prog);
- nvrtcResult (*NvrtcGetPTX) (nvrtcProgram prog, char *ptx);
- nvrtcResult (*NvrtcGetPTXSize) (nvrtcProgram prog, size_t * ptxSizeRet);
- nvrtcResult (*NvrtcGetProgramLog) (nvrtcProgram prog, char *log);
- nvrtcResult (*NvrtcGetProgramLogSize) (nvrtcProgram prog,
+ nvrtcResult (*NvrtcDestroyProgram) (nvrtcProgram * prog);
+ nvrtcResult (*NvrtcGetPTX) (nvrtcProgram prog, char *ptx);
+ nvrtcResult (*NvrtcGetPTXSize) (nvrtcProgram prog, size_t * ptxSizeRet);
+ nvrtcResult (*NvrtcGetProgramLog) (nvrtcProgram prog, char *log);
+ nvrtcResult (*NvrtcGetProgramLogSize) (nvrtcProgram prog,
size_t * logSizeRet);
} GstNvCodecNvrtcVtahle;
+/* *INDENT-ON* */
static GstNvCodecNvrtcVtahle gst_nvrtc_vtable = { 0, };
return gst_nvrtc_vtable.NvrtcGetPTX (prog, ptx);
}
+/* *INDENT-OFF* */
nvrtcResult
NvrtcGetPTXSize (nvrtcProgram prog, size_t * ptxSizeRet)
{
return gst_nvrtc_vtable.NvrtcGetPTXSize (prog, ptxSizeRet);
}
+/* *INDENT-ON* */
nvrtcResult
NvrtcGetProgramLog (nvrtcProgram prog, char *log)
return gst_nvrtc_vtable.NvrtcGetProgramLog (prog, log);
}
+/* *INDENT-OFF* */
nvrtcResult
NvrtcGetProgramLogSize (nvrtcProgram prog, size_t * logSizeRet)
{
return gst_nvrtc_vtable.NvrtcGetProgramLogSize (prog, logSizeRet);
}
+/* *INDENT-ON* */