15 #ifndef _NVMEDIA_VIDDEC_H
16 #define _NVMEDIA_VIDDEC_H
42 #define NVMEDIA_VIDEODEC_VERSION_MAJOR 1
44 #define NVMEDIA_VIDEODEC_VERSION_MINOR 6
194 #define NVMEDIA_VIDEO_DECODER_10BIT_DECODE (1<<0)
201 #define NVMEDIA_VIDEO_DECODER_PIXEL_REC_2020 (1<<1)
208 #define NVMEDIA_VIDEO_DECODER_OUTPUT_16BIT_SURFACES (1<<2)
215 #define NVMEDIA_VIDEO_DECODER_ENABLE_AES (1<<3)
222 #define NVMEDIA_VIDEO_DECODER_NV24_OUTPUT (1<<4)
229 #define NVMEDIA_VIDEO_DECODER_PROFILING (1<<5)
236 #define NVMEDIA_VIDEO_DECODER_DUMP_MV (1<<6)
305 uint16_t maxReferences,
306 uint64_t maxBitstreamSize,
307 uint8_t inputBuffering,
356 uint32_t numBitstreamBuffers,
446 uint32_t ringEntryIdx,
uint32_t NvMediaBool
A boolean value, holding NVMEDIA_TRUE or NVMEDIA_FALSE.
NvMediaDecoderInstanceId
Specifies the decoder instance ID.
macroblock type P backward
NvMediaStatus NvMediaVideoDecoderGetBackwardUpdates(NvMediaVideoDecoder *decoder, void *backupdates)
NvMediaVideoDecoder get backward updates counters for VP9 adaptive entropy contexts.
NvMediaVideoDecoder * NvMediaVideoDecoderCreateEx(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 NvMediaVideoDecoderSliceDecode(NvMediaVideoDecoder *decoder, NvMediaVideoSurface *target, NvMediaSliceDecodeData *sliceDecData)
This function is intended for use in low-latency decode mode.
void NvMediaVideoDecoderDestroy(NvMediaVideoDecoder *decoder)
Destroys a video decoder object.
NvMediaStatus
The set of all possible error codes.
NvMediaStatus NvMediaVideoDecoderGetFrameDecodeStatus(NvMediaVideoDecoder *decoder, uint32_t ringEntryIdx, NvMediaVideoDecodeFrameStatus *FrameStatus)
Retrieves the HW decode status available.
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.
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 NvMediaDevice
An opaque handle representing a NvMediaDevice object.
void NvMediaPictureInfo
A generic "picture information" pointer type.
NvMediaVideoCodec
Video codec type.
NvMedia_MB_Part_enum
MB part.
NvMediaStatus NvMediaVideoDecoderGetVersion(NvMediaVersion *version)
Gets the version information for the NvMedia Video Decoder library.
NvMediaMacroBlockType
Macroblock types.
macroblock type P forward