FFmpeg
Loading...
Searching...
No Matches
hwcontext_cuda_internal.h File Reference

FFmpeg internal API for CUDA. More...

Go to the source code of this file.

Data Structures

struct  AVCUDADeviceContextInternal
 

Functions

static int ff_cuda_cuarray_elem_size (CUarray_format fmt)
 Return the element size in bytes for a CUarray_format, or 0 for unknown.
 

Detailed Description

FFmpeg internal API for CUDA.

Definition in file hwcontext_cuda_internal.h.

Function Documentation

◆ ff_cuda_cuarray_elem_size()

static int ff_cuda_cuarray_elem_size ( CUarray_format fmt)
inlinestatic

Return the element size in bytes for a CUarray_format, or 0 for unknown.

Used to compute frame->linesize[] for CUarray frames (block-linear). Callers that need a fallback should treat a 0 return as an error.

Definition at line 44 of file hwcontext_cuda_internal.h.

Referenced by cuda_get_buffer(), cuvid_output_frame(), and nvdec_retrieve_data().