![]() |
NVIDIA DRIVE 5.0 Linux SDK API Reference5.0.10.3 Release |
Defines and manages objects that decode video.
The NvMediaVideoDecoder object decodes compressed video data, writing the results to a NvMediaVideoSurface.
A specific NvMedia implementation may support decoding multiple types of compressed video data. However, NvMediaVideoDecoder objects are able to decode a specific type of compressed video data. This type must be specified during creation.
Data Structures | |
struct | NvMediaBitstreamBuffer |
Holds an application data buffer containing compressed video data. More... | |
Macros | |
#define | NVMEDIA_COMMON_VERSION_MAJOR 1 |
Major Version number. More... | |
#define | NVMEDIA_COMMON_VERSION_MINOR 20 |
Minor Version number. More... | |
#define | NVMEDIA_MIN_CAPTURE_FRAME_BUFFERS |
Specifies the minimum number of capture buffers. More... | |
#define | NVMEDIA_MAX_CAPTURE_FRAME_BUFFERS |
Maximum number of capture buffers. More... | |
Typedefs | |
typedef void | NvMediaPictureInfo |
A generic "picture information" pointer type. More... | |
typedef void | NvMediaRefSurface |
A generic "reference surface" pointer type. More... | |
Enumerations | |
enum | NvMediaDecoderInstanceId { NVMEDIA_DECODER_INSTANCE_0 = 0, NVMEDIA_DECODER_INSTANCE_1, NVMEDIA_DECODER_INSTANCE_AUTO } |
Specifies the decoder instance ID. More... | |
enum | NvMediaEncoderInstanceId { NVMEDIA_ENCODER_INSTANCE_0 = 0, NVMEDIA_ENCODER_INSTANCE_1, NVMEDIA_ENCODER_INSTANCE_AUTO } |
Specifies the encoder instance ID. More... | |
enum | NvMediaVideoCodec { NVMEDIA_VIDEO_CODEC_H264, NVMEDIA_VIDEO_CODEC_VC1, NVMEDIA_VIDEO_CODEC_VC1_ADVANCED, NVMEDIA_VIDEO_CODEC_MPEG1, NVMEDIA_VIDEO_CODEC_MPEG2, NVMEDIA_VIDEO_CODEC_MPEG4, NVMEDIA_VIDEO_CODEC_MJPEG, NVMEDIA_VIDEO_CODEC_VP8, NVMEDIA_VIDEO_CODEC_HEVC, NVMEDIA_VIDEO_CODEC_VP9, NVMEDIA_VIDEO_CODEC_H264_MVC, NVMEDIA_VIDEO_CODEC_HEVC_MV } |
Video codec type. More... | |
enum | { NVMEDIA_SLH_PRESENT = 0x1, NVMEDIA_SPS_PRESENT = 0x2, NVMEDIA_PPS_PRESENT = 0x4 } |
NAL types found in a bitstream packet. More... | |
#define NVMEDIA_COMMON_VERSION_MAJOR 1 |
Major Version number.
Definition at line 52 of file nvmedia_common.h.
#define NVMEDIA_COMMON_VERSION_MINOR 20 |
Minor Version number.
Definition at line 54 of file nvmedia_common.h.
#define NVMEDIA_MAX_CAPTURE_FRAME_BUFFERS |
Maximum number of capture buffers.
Definition at line 65 of file nvmedia_common.h.
#define NVMEDIA_MIN_CAPTURE_FRAME_BUFFERS |
Specifies the minimum number of capture buffers.
Definition at line 60 of file nvmedia_common.h.
typedef void NvMediaPictureInfo |
A generic "picture information" pointer type.
This type serves solely to document the expected usage of a generic (void *) function parameter. In actual usage, the application is expected to physically provide a pointer to an instance of one of the "real" NvMediaPictureInfo* structures, picking the type appropriate for the decoder object in question.
Definition at line 161 of file nvmedia_common.h.
typedef void NvMediaRefSurface |
A generic "reference surface" pointer type.
This type serves solely to document the expected usage of a generic (void *) function parameter. In actual usage, the application is expected to physically provide a pointer to an instance of NvMediaVideoSurface or NvMediaImage, depending on the type of decoder API used.
Definition at line 173 of file nvmedia_common.h.
anonymous enum |
NAL types found in a bitstream packet.
This is used for TK1 H264 OTF cases.
Enumerator | |
---|---|
NVMEDIA_SLH_PRESENT |
slice header data present or not |
NVMEDIA_SPS_PRESENT |
sequence header data present or not |
NVMEDIA_PPS_PRESENT |
picture header data present or not |
Definition at line 141 of file nvmedia_common.h.
Specifies the decoder instance ID.
Definition at line 70 of file nvmedia_common.h.
Specifies the encoder instance ID.
Definition at line 84 of file nvmedia_common.h.
enum NvMediaVideoCodec |
Video codec type.
Definition at line 98 of file nvmedia_common.h.