35 #if !defined(__NVCUVID_H__)
40 #if defined(__cplusplus)
120 } display_aspect_ratio;
125 unsigned char video_format : 3;
126 unsigned char video_full_range_flag : 1;
127 unsigned char reserved_zero_bits : 4;
131 } video_signal_description;
142 unsigned char raw_seqhdr_data[1024];
174 typedef struct _CUVIDSOURCEDATAPACKET
189 typedef struct _CUVIDSOURCEPARAMS
192 unsigned int uReserved1[7];
196 void *pvReserved2[8];
207 #if !defined(__APPLE__)
255 typedef struct _CUVIDPARSERDISPINFO
276 typedef struct _CUVIDPARSERPARAMS
283 unsigned int uReserved1[5];
288 void *pvReserved2[7];
310 #if defined(__cplusplus)
314 #endif // __NVCUVID_H__
CUresult CUDAAPI tcuvidDestroyVideoSource(CUvideosource obj)
tcu_ulong payload_size
number of bytes in the payload (may be zero if EOS flag is set)
tcu_ulong flags
Combination of CUVID_PKT_XXX flags.
CUresult CUDAAPI tcuvidSetVideoSourceState(CUvideosource obj, cudaVideoState state)
void * pUserData
Parameter passed in to the data handlers.
PFNVIDSOURCECALLBACK pfnAudioDataHandler
Called to deliver video packets.
Set when this is the last packet for this stream.
CUvideosourceformat_flags
CUVIDEOFORMATEX * pExtVideoInfo
[Optional] sequence header data from system layer
CUresult CUDAAPI tcuvidGetSourceAudioFormat(CUvideosource obj, CUAUDIOFORMAT *paudfmt, unsigned int flags)
CUresult CUDAAPI tcuvidParseVideoData(CUvideoparser obj, CUVIDSOURCEDATAPACKET *pPacket)
long long CUvideotimestamp
Source is running and delivering data.
CUresult CUDAAPI tcuvidCreateVideoParser(CUvideoparser *pObj, CUVIDPARSERPARAMS *pParams)
int(CUDAAPI * PFNVIDDECODECALLBACK)(void *, CUVIDPICPARAMS *)
Set when a discontinuity has to be signalled.
Source is stopped (or reached end-of-stream)
unsigned int ulClockRate
Timestamp units in Hz (0=default=10000000Hz)
CUresult CUDAAPI tcuvidCreateVideoSourceW(CUvideosource *pObj, const wchar_t *pwszFileName, CUVIDSOURCEPARAMS *pParams)
Return extended format structure (CUVIDEOFORMATEX)
int(CUDAAPI * PFNVIDSOURCECALLBACK)(void *, CUVIDSOURCEDATAPACKET *)
unsigned int ulClockRate
Timestamp units in Hz (0=default=10000000Hz)
CUresult CUDAAPI tcuvidGetSourceVideoFormat(CUvideosource obj, CUVIDEOFORMAT *pvidfmt, unsigned int flags)
PFNVIDSEQUENCECALLBACK pfnSequenceCallback
Called before decoding frames and/or whenever there is a format change.
PFNVIDSOURCECALLBACK pfnVideoDataHandler
Called to deliver audio packets.
int(CUDAAPI * PFNVIDDISPLAYCALLBACK)(void *, CUVIDPARSERDISPINFO *)
const unsigned char * payload
Pointer to packet payload data (may be NULL if EOS flag is set)
CUvideotimestamp timestamp
CUresult CUDAAPI tcuvidDestroyVideoParser(CUvideoparser obj)
cudaVideoCodec CodecType
cudaVideoCodec_XXX
CUvideotimestamp timestamp
Presentation timestamp (10MHz clock), only valid if CUVID_PKT_TIMESTAMP flag is set.
CUresult CUDAAPI tcuvidCreateVideoSource(CUvideosource *pObj, const char *pszFileName, CUVIDSOURCEPARAMS *pParams)
PFNVIDDECODECALLBACK pfnDecodePicture
Called when a picture is ready to be decoded (decode order)
void * pUserData
User data for callbacks.
cudaVideoState CUDAAPI tcuvidGetVideoSourceState(CUvideosource obj)
unsigned int ulMaxNumDecodeSurfaces
Max # of decode surfaces (parser will cycle through these)
int repeat_first_field
Number of additional fields (1=ivtc, 2=frame doubling, 4=frame tripling, -1=unpaired field) ...
PFNVIDDISPLAYCALLBACK pfnDisplayPicture
Called whenever a picture is ready to be displayed (display order)
unsigned int ulErrorThreshold
% Error threshold (0-100) for calling pfnDecodePicture (100=always call pfnDecodePicture even if pict...
int(CUDAAPI * PFNVIDSEQUENCECALLBACK)(void *, CUVIDEOFORMAT *)
Error state (invalid source)
unsigned int ulMaxDisplayDelay
Max display queue delay (improves pipelining of decode with display) - 0=no delay (recommended values...
Dolby Digital (AC3) Audio.