FFmpeg
|
#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... | |
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 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.
enum cudaVideoState |
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.
enum cudaAudioCodec |
Audio compression enums Used in CUAUDIOFORMAT structure.
Definition at line 76 of file dynlink_nvcuvid.h.
enum CUvideopacketflags |
Data packet flags Used in CUVIDSOURCEDATAPACKET structure.
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.