35 #if !defined(__NVCUVID_H__)
40 #if defined(__cplusplus)
125 } display_aspect_ratio;
130 unsigned char video_format : 3;
131 unsigned char video_full_range_flag : 1;
132 unsigned char reserved_zero_bits : 4;
136 } video_signal_description;
147 unsigned char raw_seqhdr_data[1024];
179 typedef struct _CUVIDSOURCEDATAPACKET
194 typedef struct _CUVIDSOURCEPARAMS
197 unsigned int uReserved1[7];
201 void *pvReserved2[8];
212 #if !defined(__APPLE__)
260 typedef struct _CUVIDPARSERDISPINFO
281 typedef struct _CUVIDPARSERPARAMS
288 unsigned int uReserved1[5];
293 void *pvReserved2[7];
315 #if defined(__cplusplus)
319 #endif // __NVCUVID_H__
CUresult CUDAAPI cuvidCreateVideoSourceW(CUvideosource *pObj, const wchar_t *pwszFileName, CUVIDSOURCEPARAMS *pParams)
Create Video Source.
CUresult CUDAAPI cuvidGetSourceVideoFormat(CUvideosource obj, CUVIDEOFORMAT *pvidfmt, unsigned int flags)
Get Video Source Format.
CUresult CUDAAPI cuvidDestroyVideoParser(CUvideoparser obj)
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.
CUresult CUDAAPI cuvidGetSourceAudioFormat(CUvideosource obj, CUAUDIOFORMAT *paudfmt, unsigned int flags)
Set Video Source state.
CUvideosourceformat_flags
long long CUvideotimestamp
CUresult CUDAAPI cuvidCreateVideoSource(CUvideosource *pObj, const char *pszFileName, CUVIDSOURCEPARAMS *pParams)
Create Video Source.
CUresult CUDAAPI cuvidSetVideoSourceState(CUvideosource obj, cudaVideoState state)
Set Video Source state.
CUVIDEOFORMATEX * pExtVideoInfo
[Optional] sequence header data from system layer
Source is running and delivering data.
int(CUDAAPI * PFNVIDDECODECALLBACK)(void *, CUVIDPICPARAMS *)
Set when a discontinuity has to be signalled.
Source is stopped (or reached end-of-stream)
unsigned long payload_size
number of bytes in the payload (may be zero if EOS flag is set)
unsigned int ulClockRate
Timestamp units in Hz (0=default=10000000Hz)
Return extended format structure (CUVIDEOFORMATEX)
CUresult CUDAAPI cuvidCreateVideoParser(CUvideoparser *pObj, CUVIDPARSERPARAMS *pParams)
int(CUDAAPI * PFNVIDSOURCECALLBACK)(void *, CUVIDSOURCEDATAPACKET *)
unsigned int ulClockRate
Timestamp units in Hz (0=default=10000000Hz)
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 cuvidDestroyVideoSource(CUvideosource obj)
Destroy Video Source.
cudaVideoCodec CodecType
cudaVideoCodec_XXX
cudaVideoState CUDAAPI cuvidGetVideoSourceState(CUvideosource obj)
Get Video Source state.
CUvideotimestamp timestamp
Presentation timestamp (10MHz clock), only valid if CUVID_PKT_TIMESTAMP flag is set.
PFNVIDDECODECALLBACK pfnDecodePicture
Called when a picture is ready to be decoded (decode order)
void * pUserData
User data for callbacks.
unsigned long flags
Combination of CUVID_PKT_XXX flags.
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) ...
CUresult CUDAAPI cuvidInit(unsigned int Flags)
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...
NvCuvid API provides Video Decoding interface to NVIDIA GPU devices.
Dolby Digital (AC3) Audio.
CUresult CUDAAPI cuvidParseVideoData(CUvideoparser obj, CUVIDSOURCEDATAPACKET *pPacket)