|  | 
    
        | NVIDIA DRIVE OS Linux SDK API Reference | 
                5.2.0 Release For Test and Development only
 | 
  
 
 
Go to the documentation of this file.
   15 #ifndef NVMEDIA_VIDDEC_H 
   16 #define NVMEDIA_VIDDEC_H 
   43 #define NVMEDIA_VIDEODEC_VERSION_MAJOR   1 
   45 #define NVMEDIA_VIDEODEC_VERSION_MINOR   12 
  198 #define NVMEDIA_VIDEO_DECODER_10BIT_DECODE (1U<<0) 
  205 #define NVMEDIA_VIDEO_DECODER_PIXEL_REC_2020 (1U<<1) 
  212 #define NVMEDIA_VIDEO_DECODER_OUTPUT_16BIT_SURFACES (1U<<2) 
  219 #define NVMEDIA_VIDEO_DECODER_ENABLE_AES  (1U<<3) 
  226 #define NVMEDIA_VIDEO_DECODER_NV24_OUTPUT (1U<<4) 
  233 #define NVMEDIA_VIDEO_DECODER_PROFILING   (1U<<5) 
  240 #define NVMEDIA_VIDEO_DECODER_DUMP_MV     (1U<<6) 
  309     uint16_t maxReferences,
 
  310     uint64_t maxBitstreamSize,
 
  311     uint8_t inputBuffering,
 
  374     const void *encryptParams,
 
  375     uint32_t numBitstreamBuffers,
 
  465     uint32_t ringEntryIdx,
 
  
 
NvMediaStatus NvMediaVideoDecoderSliceDecode(const NvMediaVideoDecoder *decoder, const NvMediaVideoSurface *target, const NvMediaSliceDecodeData *sliceDecData)
This function is intended for use in low-latency decode mode.
@ NVMEDIA_UNKNOWN_TYPE
invalid option
@ NVMEDIA_MBTYPE_I
macroblock type I
NvMedia_MB_Part_enum
MB part.
NvMedia_MB_Type_enum
MB types.
NvMediaStatus NvMediaVideoDecoderRenderEx(const NvMediaVideoDecoder *decoder, const NvMediaVideoSurface *target, const NvMediaPictureInfo *pictureInfo, const void *encryptParams, uint32_t numBitstreamBuffers, const NvMediaBitstreamBuffer *bitstreams, NvMediaVideoDecodeStats *FrameStatsDump, NvMediaDecoderInstanceId instanceId)
Decodes a compressed field/frame and render the result into a NvMediaVideoSurface.
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
NvMediaVideoCodec
Video codec type.
void NvMediaVideoDecoderDestroy(const NvMediaVideoDecoder *decoder)
Destroys a video decoder object.
@ NVMEDIA_PART_8x8
MB part 8x8.
@ NVMEDIA_SKIP
MB type SKIP.
@ NVMEDIA_PART_16x8
MB part 16x8.
NvMediaStatus NvMediaVideoDecoderGetVersion(NvMediaVersion *version)
Gets the version information for the NvMedia Video Decoder library.
@ NVMEDIA_PART_8x16
MB part 8x16.
NvMediaVideoDecoder * NvMediaVideoDecoderCreateEx(const 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.
NvMediaStatus
Defines all possible error codes.
NvMediaStatus NvMediaVideoDecoderGetBackwardUpdates(const NvMediaVideoDecoder *decoder, void *backupdates)
NvMediaVideoDecoder get backward updates counters for VP9 adaptive entropy contexts.
void NvMediaVideoDecoderUnRegisterPinnedSurfaces(const NvMediaVideoDecoder *decoder)
Unpin all the Pinned decode Surfaces used by decoder.
NvMediaMacroBlockType
Macroblock types.
@ NVMEDIA_UNKNOWN_PART
invalid option
@ NVMEDIA_MBTYPE_B
macroblock type B
@ NVMEDIA_MBTYPE_P_BACKWARD
macroblock type P backward
void NvMediaPictureInfo
A generic "picture information" pointer type.
@ NVMEDIA_PART_16x16
MB part 16x16.
uint32_t NvMediaBool
A boolean value, holding NVMEDIA_TRUE or NVMEDIA_FALSE.
NvMediaDecoderInstanceId
Specifies the decoder instance ID.
NvMediaStatus NvMediaVideoDecoderGetFrameDecodeStatus(const NvMediaVideoDecoder *decoder, uint32_t ringEntryIdx, NvMediaVideoDecodeFrameStatus *FrameStatus)
Retrieves the HW decode status available.
@ NVMEDIA_MBTYPE_P_FORWARD
macroblock type P forward