FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
dynlink_nvcuvid.h File Reference
#include "compat/cuda/dynlink_cuviddec.h"

Go to the source code of this file.

Data Structures

struct  CUVIDEOFORMAT
 Video format Used in cuvidGetSourceVideoFormat API. More...
 
struct  CUVIDEOFORMATEX
 Video format including raw sequence header information Used in cuvidGetSourceVideoFormat API. More...
 
struct  CUAUDIOFORMAT
 Audio formats Used in cuvidGetSourceAudioFormat API. More...
 
struct  CUVIDSOURCEDATAPACKET
 Data Packet Used in cuvidParseVideoData API IN for cuvidParseVideoData. More...
 
struct  CUVIDSOURCEPARAMS
 Describes parameters needed in cuvidCreateVideoSource API NVDECODE API is intended for HW accelerated video decoding so CUvideosource doesn't have audio demuxer for all supported containers. More...
 
struct  CUVIDPARSERDISPINFO
 Used in cuvidParseVideoData API with PFNVIDDISPLAYCALLBACK pfnDisplayPicture. More...
 
struct  CUVIDPARSERPARAMS
 Used in cuvidCreateVideoParser API. More...
 

Typedefs

typedef voidCUvideosource
 High-level helper APIs for video sources. More...
 
typedef voidCUvideoparser
 
typedef long long CUvideotimestamp
 
typedef int(CUDAAPIPFNVIDSOURCECALLBACK )(void *, CUVIDSOURCEDATAPACKET *)
 
typedef CUresult CUDAAPI tcuvidCreateVideoSource (CUvideosource *pObj, const char *pszFileName, CUVIDSOURCEPARAMS *pParams)
 
typedef CUresult CUDAAPI tcuvidCreateVideoSourceW (CUvideosource *pObj, const wchar_t *pwszFileName, CUVIDSOURCEPARAMS *pParams)
 
typedef CUresult CUDAAPI tcuvidDestroyVideoSource (CUvideosource obj)
 
typedef CUresult CUDAAPI tcuvidSetVideoSourceState (CUvideosource obj, cudaVideoState state)
 
typedef cudaVideoState CUDAAPI tcuvidGetVideoSourceState (CUvideosource obj)
 
typedef CUresult CUDAAPI tcuvidGetSourceVideoFormat (CUvideosource obj, CUVIDEOFORMAT *pvidfmt, unsigned int flags)
 
typedef CUresult CUDAAPI tcuvidGetSourceAudioFormat (CUvideosource obj, CUAUDIOFORMAT *paudfmt, unsigned int flags)
 
typedef int(CUDAAPIPFNVIDSEQUENCECALLBACK )(void *, CUVIDEOFORMAT *)
 Parser callbacks The parser will call these synchronously from within cuvidParseVideoData(), whenever a picture is ready to be decoded and/or displayed. More...
 
typedef int(CUDAAPIPFNVIDDECODECALLBACK )(void *, CUVIDPICPARAMS *)
 
typedef int(CUDAAPIPFNVIDDISPLAYCALLBACK )(void *, CUVIDPARSERDISPINFO *)
 
typedef CUresult CUDAAPI tcuvidCreateVideoParser (CUvideoparser *pObj, CUVIDPARSERPARAMS *pParams)
 
typedef CUresult CUDAAPI tcuvidParseVideoData (CUvideoparser obj, CUVIDSOURCEDATAPACKET *pPacket)
 
typedef CUresult CUDAAPI tcuvidDestroyVideoParser (CUvideoparser obj)
 

Enumerations

enum  cudaVideoState { cudaVideoState_Error = -1, cudaVideoState_Stopped = 0, cudaVideoState_Started = 1 }
 Video source state enums Used in cuvidSetVideoSourceState and cuvidGetVideoSourceState APIs. More...
 
enum  cudaAudioCodec {
  cudaAudioCodec_MPEG1 =0, cudaAudioCodec_MPEG2, cudaAudioCodec_MP3, cudaAudioCodec_AC3,
  cudaAudioCodec_LPCM, cudaAudioCodec_AAC
}
 Audio compression enums Used in CUAUDIOFORMAT structure. More...
 
enum  CUvideopacketflags { CUVID_PKT_ENDOFSTREAM = 0x01, CUVID_PKT_TIMESTAMP = 0x02, CUVID_PKT_DISCONTINUITY = 0x04, CUVID_PKT_ENDOFPICTURE = 0x08 }
 Data packet flags Used in CUVIDSOURCEDATAPACKET structure. More...
 
enum  CUvideosourceformat_flags { CUVID_FMT_EXTFORMATINFO = 0x100 }
 CUvideosourceformat_flags Used in cuvidGetSourceVideoFormat API. More...
 

Functions

CUresult CUDAAPI cuvidInit (unsigned int Flags)
 

Typedef Documentation

typedef void* CUvideosource

High-level helper APIs for video sources.

Definition at line 55 of file dynlink_nvcuvid.h.

typedef void* CUvideoparser

Definition at line 56 of file dynlink_nvcuvid.h.

typedef long long CUvideotimestamp

Definition at line 57 of file dynlink_nvcuvid.h.

typedef int(CUDAAPI * PFNVIDSOURCECALLBACK)(void *, CUVIDSOURCEDATAPACKET *)

Definition at line 203 of file dynlink_nvcuvid.h.

typedef CUresult CUDAAPI tcuvidCreateVideoSource(CUvideosource *pObj, const char *pszFileName, CUVIDSOURCEPARAMS *pParams)

Definition at line 241 of file dynlink_nvcuvid.h.

typedef CUresult CUDAAPI tcuvidCreateVideoSourceW(CUvideosource *pObj, const wchar_t *pwszFileName, CUVIDSOURCEPARAMS *pParams)

Definition at line 247 of file dynlink_nvcuvid.h.

typedef CUresult CUDAAPI tcuvidDestroyVideoSource(CUvideosource obj)

Definition at line 253 of file dynlink_nvcuvid.h.

typedef CUresult CUDAAPI tcuvidSetVideoSourceState(CUvideosource obj, cudaVideoState state)

Definition at line 259 of file dynlink_nvcuvid.h.

typedef cudaVideoState CUDAAPI tcuvidGetVideoSourceState(CUvideosource obj)

Definition at line 265 of file dynlink_nvcuvid.h.

typedef CUresult CUDAAPI tcuvidGetSourceVideoFormat(CUvideosource obj, CUVIDEOFORMAT *pvidfmt, unsigned int flags)

Definition at line 271 of file dynlink_nvcuvid.h.

typedef CUresult CUDAAPI tcuvidGetSourceAudioFormat(CUvideosource obj, CUAUDIOFORMAT *paudfmt, unsigned int flags)

Definition at line 279 of file dynlink_nvcuvid.h.

typedef 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.

First argument in functions is "void *pUserData" member of structure CUVIDSOURCEPARAMS

Definition at line 302 of file dynlink_nvcuvid.h.

typedef int(CUDAAPI * PFNVIDDECODECALLBACK)(void *, CUVIDPICPARAMS *)

Definition at line 303 of file dynlink_nvcuvid.h.

typedef int(CUDAAPI * PFNVIDDISPLAYCALLBACK)(void *, CUVIDPARSERDISPINFO *)

Definition at line 304 of file dynlink_nvcuvid.h.

typedef CUresult CUDAAPI tcuvidCreateVideoParser(CUvideoparser *pObj, CUVIDPARSERPARAMS *pParams)

Definition at line 333 of file dynlink_nvcuvid.h.

typedef CUresult CUDAAPI tcuvidParseVideoData(CUvideoparser obj, CUVIDSOURCEDATAPACKET *pPacket)

Definition at line 341 of file dynlink_nvcuvid.h.

typedef CUresult CUDAAPI tcuvidDestroyVideoParser(CUvideoparser obj)

Definition at line 346 of file dynlink_nvcuvid.h.

Enumeration Type Documentation

Video source state enums Used in cuvidSetVideoSourceState and cuvidGetVideoSourceState APIs.

Enumerator
cudaVideoState_Error 

Error state (invalid source)

cudaVideoState_Stopped 

Source is stopped (or reached end-of-stream)

cudaVideoState_Started 

Source is running and delivering data.

Definition at line 65 of file dynlink_nvcuvid.h.

Audio compression enums Used in CUAUDIOFORMAT structure.

Enumerator
cudaAudioCodec_MPEG1 

MPEG-1 Audio.

cudaAudioCodec_MPEG2 

MPEG-2 Audio.

cudaAudioCodec_MP3 

MPEG-1 Layer III Audio.

cudaAudioCodec_AC3 

Dolby Digital (AC3) Audio.

cudaAudioCodec_LPCM 

PCM Audio.

cudaAudioCodec_AAC 

AAC Audio.

Definition at line 76 of file dynlink_nvcuvid.h.

Data packet flags Used in CUVIDSOURCEDATAPACKET structure.

Enumerator
CUVID_PKT_ENDOFSTREAM 

Set when this is the last packet for this stream.

CUVID_PKT_TIMESTAMP 

Timestamp is valid.

CUVID_PKT_DISCONTINUITY 

Set when a discontinuity has to be signalled.

CUVID_PKT_ENDOFPICTURE 

Set when the packet contains exactly one frame.

Definition at line 179 of file dynlink_nvcuvid.h.

CUvideosourceformat_flags Used in cuvidGetSourceVideoFormat API.

Enumerator
CUVID_FMT_EXTFORMATINFO 

Return extended format structure (CUVIDEOFORMATEX)

Definition at line 229 of file dynlink_nvcuvid.h.

Function Documentation

CUresult CUDAAPI cuvidInit ( unsigned int  Flags)