15 #ifndef NVMEDIA_VIDDEC_H
16 #define NVMEDIA_VIDDEC_H
43 #define NVMEDIA_VIDEODEC_VERSION_MAJOR 1
45 #define NVMEDIA_VIDEODEC_VERSION_MINOR 10
197 #define NVMEDIA_VIDEO_DECODER_10BIT_DECODE (1U<<0)
204 #define NVMEDIA_VIDEO_DECODER_PIXEL_REC_2020 (1U<<1)
211 #define NVMEDIA_VIDEO_DECODER_OUTPUT_16BIT_SURFACES (1U<<2)
218 #define NVMEDIA_VIDEO_DECODER_ENABLE_AES (1U<<3)
225 #define NVMEDIA_VIDEO_DECODER_NV24_OUTPUT (1U<<4)
232 #define NVMEDIA_VIDEO_DECODER_PROFILING (1U<<5)
239 #define NVMEDIA_VIDEO_DECODER_DUMP_MV (1U<<6)
308 uint16_t maxReferences,
309 uint64_t maxBitstreamSize,
310 uint8_t inputBuffering,
358 const void *encryptParams,
359 uint32_t numBitstreamBuffers,
449 uint32_t ringEntryIdx,
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.
uint32_t NvMediaBool
A boolean value, holding NVMEDIA_TRUE or NVMEDIA_FALSE.
NvMediaDecoderInstanceId
Specifies the decoder instance ID.
macroblock type P backward
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
NvMediaStatus
Defines all possible error codes.
NvMedia_MB_Type_enum
MB types.
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t uint32_t uint32_t flags
int uint32_t uint32_t height
void NvMediaPictureInfo
A generic "picture information" pointer type.
NvMediaStatus NvMediaVideoDecoderGetFrameDecodeStatus(const NvMediaVideoDecoder *decoder, uint32_t ringEntryIdx, NvMediaVideoDecodeFrameStatus *FrameStatus)
Retrieves the HW decode status available.
NvMediaVideoCodec
Video codec type.
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.
NvMediaStatus NvMediaVideoDecoderSliceDecode(const NvMediaVideoDecoder *decoder, const NvMediaVideoSurface *target, const NvMediaSliceDecodeData *sliceDecData)
This function is intended for use in low-latency decode mode.
NvMediaStatus NvMediaVideoDecoderGetBackwardUpdates(const NvMediaVideoDecoder *decoder, void *backupdates)
NvMediaVideoDecoder get backward updates counters for VP9 adaptive entropy contexts.
NvMedia_MB_Part_enum
MB part.
NvMediaStatus NvMediaVideoDecoderGetVersion(NvMediaVersion *version)
Gets the version information for the NvMedia Video Decoder library.
void NvMediaVideoDecoderDestroy(const NvMediaVideoDecoder *decoder)
Destroys a video decoder object.
NvMediaMacroBlockType
Macroblock types.
macroblock type P forward