NVIDIA DRIVE 5.0 Linux SDK API Reference

5.0.5.0 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvmedia_viddec.h File Reference

Detailed Description

NVIDIA Media Interface: The NvMedia Video Decode Processing API

This file contains the Video Decode Processing API.

Definition in file nvmedia_viddec.h.

Go to the source code of this file.

Data Structures

struct  NvMediaVideoDecodeFrameStatus
 To Get the decoding status from HW decoder. More...
 
struct  NvMediaMotionVectorMB_Metadata
 Per Macroblock header information. More...
 
struct  NvMediaMotionVectorFrameMetaData
 Motion vector array to get the required current frame stats. More...
 
struct  NvMediaVideoDecodeStats
 Frame stats structure to get get ring entry idx and motion vector dump. More...
 
struct  NvMediaVideoDecoder
 A handle representing a video decoder object. More...
 

Macros

#define NVMEDIA_VIDEODEC_VERSION_MAJOR   1
 Major Version number. More...
 
#define NVMEDIA_VIDEODEC_VERSION_MINOR   6
 Minor Version number. More...
 
#define NVMEDIA_VIDEO_DECODER_10BIT_DECODE
 Defines 10-bit decode. More...
 
#define NVMEDIA_VIDEO_DECODER_PIXEL_REC_2020
 Rec_2020 color format for the decoded surface. More...
 
#define NVMEDIA_VIDEO_DECODER_OUTPUT_16BIT_SURFACES
 Use 16 bit surfaces if contents is higher than 8 bit. More...
 
#define NVMEDIA_VIDEO_DECODER_ENABLE_AES
 Create decoder for encrypted content decoding. More...
 
#define NVMEDIA_VIDEO_DECODER_NV24_OUTPUT
 Create decoder to output in NV24 format. More...
 
#define NVMEDIA_VIDEO_DECODER_PROFILING
 Enable decoder profiling support. More...
 
#define NVMEDIA_VIDEO_DECODER_DUMP_MV
 Enable decoder motion vector dump. More...
 

Enumerations

enum  NvMediaMacroBlockType {
  NVMEDIA_MBTYPE_B,
  NVMEDIA_MBTYPE_P_FORWARD,
  NVMEDIA_MBTYPE_P_BACKWARD,
  NVMEDIA_MBTYPE_I
}
 Macroblock types. More...
 
enum  NvMedia_MB_Type_enum {
  NVMEDIA_SKIP,
  NVMEDIA_P,
  NVMEDIA_B,
  NVMEDIA_I,
  NVMEDIA_UNKNOWN_TYPE
}
 MB types. More...
 
enum  NvMedia_MB_Part_enum {
  NVMEDIA_PART_16x16,
  NVMEDIA_PART_16x8,
  NVMEDIA_PART_8x16,
  NVMEDIA_PART_8x8,
  NVMEDIA_UNKNOWN_PART
}
 MB part. More...
 

Functions

NvMediaStatus NvMediaVideoDecoderGetVersion (NvMediaVersion *version)
 Gets the version information for the NvMedia Video Decoder library. More...
 
NvMediaVideoDecoderNvMediaVideoDecoderCreateEx (NvMediaDevice *device, NvMediaVideoCodec codec, uint16_t width, uint16_t height, uint16_t maxReferences, uint64_t maxBitstreamSize, uint8_t inputBuffering, uint32_t flags, NvMediaDecoderInstanceId instanceId)
 Creates a video decoder object. More...
 
void NvMediaVideoDecoderDestroy (NvMediaVideoDecoder *decoder)
 Destroys a video decoder object. More...
 
NvMediaStatus NvMediaVideoDecoderRenderEx (NvMediaVideoDecoder *decoder, NvMediaVideoSurface *target, NvMediaPictureInfo *pictureInfo, void *encryptParams, uint32_t numBitstreamBuffers, const NvMediaBitstreamBuffer *bitstreams, NvMediaVideoDecodeStats *FrameStatsDump, NvMediaDecoderInstanceId instanceId)
 Decodes a compressed field/frame and render the result into a NvMediaVideoSurface. More...
 
NvMediaStatus NvMediaVideoDecoderSliceDecode (NvMediaVideoDecoder *decoder, NvMediaVideoSurface *target, NvMediaSliceDecodeData *sliceDecData)
 This function is intended for use in low-latency decode mode. More...
 
NvMediaStatus NvMediaVideoDecoderGetFrameDecodeStatus (NvMediaVideoDecoder *decoder, uint32_t ringEntryIdx, NvMediaVideoDecodeFrameStatus *FrameStatus)
 Retrieves the HW decode status available. More...
 
NvMediaStatus NvMediaVideoDecoderGetBackwardUpdates (NvMediaVideoDecoder *decoder, void *backupdates)
 NvMediaVideoDecoder get backward updates counters for VP9 adaptive entropy contexts. More...