FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
Video Parser

Data Structures

struct  CUVIDEOFORMAT
 
struct  CUVIDEOFORMATEX
 
struct  CUAUDIOFORMAT
 
struct  CUVIDSOURCEDATAPACKET
 
struct  CUVIDSOURCEPARAMS
 
struct  CUVIDPARSERDISPINFO
 
struct  CUVIDPARSERPARAMS
 

Typedefs

typedef int(CUDAAPIPFNVIDSOURCECALLBACK )(void *, CUVIDSOURCEDATAPACKET *)
 
typedef int(CUDAAPIPFNVIDSEQUENCECALLBACK )(void *, CUVIDEOFORMAT *)
 
typedef int(CUDAAPIPFNVIDDECODECALLBACK )(void *, CUVIDPICPARAMS *)
 
typedef int(CUDAAPIPFNVIDDISPLAYCALLBACK )(void *, CUVIDPARSERDISPINFO *)
 

Enumerations

enum  cudaVideoState { cudaVideoState_Error = -1, cudaVideoState_Stopped = 0, cudaVideoState_Started = 1 }
 
enum  cudaAudioCodec {
  cudaAudioCodec_MPEG1 =0, cudaAudioCodec_MPEG2, cudaAudioCodec_MP3, cudaAudioCodec_AC3,
  cudaAudioCodec_LPCM
}
 
enum  CUvideopacketflags { CUVID_PKT_ENDOFSTREAM = 0x01, CUVID_PKT_TIMESTAMP = 0x02, CUVID_PKT_DISCONTINUITY = 0x04 }
 
enum  CUvideosourceformat_flags { CUVID_FMT_EXTFORMATINFO = 0x100 }
 

Functions

CUresult CUDAAPI cuvidCreateVideoSource (CUvideosource *pObj, const char *pszFileName, CUVIDSOURCEPARAMS *pParams)
 Create Video Source. More...
 
CUresult CUDAAPI cuvidCreateVideoSourceW (CUvideosource *pObj, const wchar_t *pwszFileName, CUVIDSOURCEPARAMS *pParams)
 Create Video Source. More...
 
CUresult CUDAAPI cuvidDestroyVideoSource (CUvideosource obj)
 Destroy Video Source. More...
 
CUresult CUDAAPI cuvidSetVideoSourceState (CUvideosource obj, cudaVideoState state)
 Set Video Source state. More...
 
cudaVideoState CUDAAPI cuvidGetVideoSourceState (CUvideosource obj)
 Get Video Source state. More...
 
CUresult CUDAAPI cuvidGetSourceVideoFormat (CUvideosource obj, CUVIDEOFORMAT *pvidfmt, unsigned int flags)
 Get Video Source Format. More...
 
CUresult CUDAAPI cuvidGetSourceAudioFormat (CUvideosource obj, CUAUDIOFORMAT *paudfmt, unsigned int flags)
 Set Video Source state. More...
 
CUresult CUDAAPI cuvidCreateVideoParser (CUvideoparser *pObj, CUVIDPARSERPARAMS *pParams)
 
CUresult CUDAAPI cuvidParseVideoData (CUvideoparser obj, CUVIDSOURCEDATAPACKET *pPacket)
 
CUresult CUDAAPI cuvidDestroyVideoParser (CUvideoparser obj)
 

Detailed Description

Typedef Documentation

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

Definition at line 188 of file nvcuvid.h.

typedef int(CUDAAPI * PFNVIDSEQUENCECALLBACK)(void *, CUVIDEOFORMAT *)

Definition at line 274 of file nvcuvid.h.

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

Definition at line 275 of file nvcuvid.h.

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

Definition at line 276 of file nvcuvid.h.

Enumeration Type Documentation

Video Source State

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 67 of file nvcuvid.h.

Audio compression

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.

Definition at line 77 of file nvcuvid.h.

Data packet flags

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.

Definition at line 169 of file nvcuvid.h.

CUvideosourceformat_flags

Enumerator
CUVID_FMT_EXTFORMATINFO 

Return extended format structure (CUVIDEOFORMATEX)

Definition at line 208 of file nvcuvid.h.

Function Documentation

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

Create Video Source.

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

Create Video Source.

CUresult CUDAAPI cuvidDestroyVideoSource ( CUvideosource  obj)

Destroy Video Source.

CUresult CUDAAPI cuvidSetVideoSourceState ( CUvideosource  obj,
cudaVideoState  state 
)

Set Video Source state.

cudaVideoState CUDAAPI cuvidGetVideoSourceState ( CUvideosource  obj)

Get Video Source state.

CUresult CUDAAPI cuvidGetSourceVideoFormat ( CUvideosource  obj,
CUVIDEOFORMAT pvidfmt,
unsigned int  flags 
)

Get Video Source Format.

CUresult CUDAAPI cuvidGetSourceAudioFormat ( CUvideosource  obj,
CUAUDIOFORMAT paudfmt,
unsigned int  flags 
)

Set Video Source state.

CUresult CUDAAPI cuvidCreateVideoParser ( CUvideoparser pObj,
CUVIDPARSERPARAMS pParams 
)

Referenced by cuvid_decode_init().

CUresult CUDAAPI cuvidParseVideoData ( CUvideoparser  obj,
CUVIDSOURCEDATAPACKET pPacket 
)

Referenced by cuvid_decode_init().

CUresult CUDAAPI cuvidDestroyVideoParser ( CUvideoparser  obj)

Referenced by cuvid_decode_end().