FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
nvcuvid.h File Reference

NvCuvid API provides Video Decoding interface to NVIDIA GPU devices. More...

#include "compat/cuda/cuviddec.h"

Go to the source code of this file.

Data Structures

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

Typedefs

typedef voidCUvideosource
 
typedef voidCUvideoparser
 
typedef long long CUvideotimestamp
 
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 cuvidInit (unsigned int Flags)
 
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

NvCuvid API provides Video Decoding interface to NVIDIA GPU devices.

Date
2015-2015 This file contains the interface constants, structure definitions and function prototypes.

Definition in file nvcuvid.h.

Typedef Documentation

typedef void* CUvideosource

Definition at line 54 of file nvcuvid.h.

typedef void* CUvideoparser

Definition at line 55 of file nvcuvid.h.

typedef long long CUvideotimestamp

Definition at line 56 of file nvcuvid.h.

Function Documentation

CUresult CUDAAPI cuvidInit ( unsigned int  Flags)