35 #if !defined(__NVCUVID_H__)
40 #if defined(__cplusplus)
129 } display_aspect_ratio;
135 unsigned char video_format : 3;
136 unsigned char video_full_range_flag : 1;
137 unsigned char reserved_zero_bits : 4;
141 } video_signal_description;
154 unsigned char raw_seqhdr_data[1024];
193 typedef struct _CUVIDSOURCEDATAPACKET
212 typedef struct _CUVIDSOURCEPARAMS
215 unsigned int uReserved1[7];
219 void *pvReserved2[8];
233 #if !defined(__APPLE__)
287 typedef struct _CUVIDPARSERDISPINFO
311 typedef struct _CUVIDPARSERPARAMS
320 unsigned int uReserved1[5];
325 void *pvReserved2[7];
350 #if defined(__cplusplus)
354 #endif // __NVCUVID_H__
CUresult CUDAAPI tcuvidDestroyVideoSource(CUvideosource obj)
Set when this is the last packet for this stream.
CUresult CUDAAPI tcuvidCreateVideoParser(CUvideoparser *pObj, CUVIDPARSERPARAMS *pParams)
tcu_ulong payload_size
IN: number of bytes in the payload (may be zero if EOS flag is set)
int(CUDAAPI * PFNVIDSOURCECALLBACK)(void *, CUVIDSOURCEDATAPACKET *)
tcu_ulong flags
IN: Combination of CUVID_PKT_XXX flags.
Error state (invalid source)
cudaVideoChromaFormat
Chroma format enums These enums are used in CUVIDDECODECREATEINFO and CUVIDDECODECAPS structures JPEG...
CUresult CUDAAPI cuvidInit(unsigned int Flags)
void * pUserData
IN: User private data passed in to the data handlers.
PFNVIDSOURCECALLBACK pfnAudioDataHandler
IN: Called to deliver audio packets.
cudaVideoState
Video source state enums Used in cuvidSetVideoSourceState and cuvidGetVideoSourceState APIs...
Source is stopped (or reached end-of-stream)
CUVIDEOFORMATEX * pExtVideoInfo
IN: [Optional] sequence header data from system layer.
CUresult CUDAAPI tcuvidSetVideoSourceState(CUvideosource obj, cudaVideoState state)
CUresult CUDAAPI tcuvidParseVideoData(CUvideoparser obj, CUVIDSOURCEDATAPACKET *pPacket)
Picture parameters for decoding This structure is used in cuvidDecodePicture API IN for cuvidDecodePi...
long long CUvideotimestamp
void * CUvideosource
High-level helper APIs for video sources.
CUresult CUDAAPI tcuvidGetSourceAudioFormat(CUvideosource obj, CUAUDIOFORMAT *paudfmt, unsigned int flags)
int(CUDAAPI * PFNVIDSEQUENCECALLBACK)(void *, CUVIDEOFORMAT *)
Parser callbacks The parser will call these synchronously from within cuvidParseVideoData(), whenever a picture is ready to be decoded and/or displayed.
unsigned int ulClockRate
IN: Timestamp units in Hz (0=default=10000000Hz)
CUresult CUDAAPI tcuvidGetSourceVideoFormat(CUvideosource obj, CUVIDEOFORMAT *pvidfmt, unsigned int flags)
int(CUDAAPI * PFNVIDDECODECALLBACK)(void *, CUVIDPICPARAMS *)
int(CUDAAPI * PFNVIDDISPLAYCALLBACK)(void *, CUVIDPARSERDISPINFO *)
unsigned int ulClockRate
IN: Time stamp units in Hz (0=default=10000000Hz)
Set when the packet contains exactly one frame.
PFNVIDSEQUENCECALLBACK pfnSequenceCallback
IN: Called before decoding frames and/or whenever there is a fmt change.
CUresult CUDAAPI tcuvidCreateVideoSourceW(CUvideosource *pObj, const wchar_t *pwszFileName, CUVIDSOURCEPARAMS *pParams)
CUvideosourceformat_flags
CUvideosourceformat_flags Used in cuvidGetSourceVideoFormat API.
Used in cuvidParseVideoData API with PFNVIDDISPLAYCALLBACK pfnDisplayPicture.
CUresult CUDAAPI tcuvidCreateVideoSource(CUvideosource *pObj, const char *pszFileName, CUVIDSOURCEPARAMS *pParams)
int picture_index
OUT: Index of the current picture.
PFNVIDSOURCECALLBACK pfnVideoDataHandler
IN: Called to deliver video packets.
Source is running and delivering data.
const unsigned char * payload
IN: Pointer to packet payload data (may be NULL if EOS flag is set)
CUvideotimestamp timestamp
OUT: Presentation time stamp.
Set when a discontinuity has to be signalled.
int top_field_first
OUT: 1 if top field is displayed first; 0 otherwise.
Return extended format structure (CUVIDEOFORMATEX)
cudaVideoCodec CodecType
IN: cudaVideoCodec_XXX.
CUvideotimestamp timestamp
IN: Presentation time stamp (10MHz clock), only valid if CUVID_PKT_TIMESTAMP flag is set...
PFNVIDDECODECALLBACK pfnDecodePicture
IN: Called when a picture is ready to be decoded (decode order)
void * pUserData
IN: User data for callbacks.
unsigned int ulMaxNumDecodeSurfaces
IN: Max # of decode surfaces (parser will cycle through these)
cudaVideoState CUDAAPI tcuvidGetVideoSourceState(CUvideosource obj)
int progressive_frame
OUT: 1 if progressive frame; 0 otherwise.
int repeat_first_field
OUT: Number of additional fields (1=ivtc, 2=frame doubling, 4=frame tripling, -1=unpaired field) ...
CUvideopacketflags
Data packet flags Used in CUVIDSOURCEDATAPACKET structure.
PFNVIDDISPLAYCALLBACK pfnDisplayPicture
IN: Called whenever a picture is ready to be displayed (display order)
unsigned int ulErrorThreshold
IN: % Error threshold (0-100) for calling pfnDecodePicture (100=always IN: call pfnDecodePicture even...
cudaAudioCodec
Audio compression enums Used in CUAUDIOFORMAT structure.
Data Packet Used in cuvidParseVideoData API IN for cuvidParseVideoData.
cudaVideoCodec
Video codec enums These enums are used in CUVIDDECODECREATEINFO and CUVIDDECODECAPS structures...
unsigned int ulMaxDisplayDelay
IN: Max display queue delay (improves pipelining of decode with display) 0=no delay (recommended valu...
CUresult CUDAAPI tcuvidDestroyVideoParser(CUvideoparser obj)
Describes parameters needed in cuvidCreateVideoSource API NVDECODE API is intended for HW accelerated...
Dolby Digital (AC3) Audio.
Used in cuvidCreateVideoParser API.