15 #ifndef NVMEDIA_IMGDEC_H
16 #define NVMEDIA_IMGDEC_H
44 #define NVMEDIA_IMAGEDEC_VERSION_MAJOR 2
46 #define NVMEDIA_IMAGEDEC_VERSION_MINOR 4
86 #define NVMEDIA_IMAGE_DECODER_ATTRIBUTE_PROGRESSIVE_SEQUENCE (1U<<0)
93 #define NVMEDIA_IMAGE_DECODER_10BIT_DECODE (1U<<1)
100 #define NVMEDIA_IMAGE_DECODER_PIXEL_REC_2020 (1U<<2)
160 uint16_t maxReferences,
161 uint64_t maxBitstreamSize,
162 uint8_t inputBuffering,
205 uint32_t numBitstreamBuffers,
NvMediaStatus NvMediaImageDecoderGetVersion(NvMediaVersion *version)
Checks the version compatibility for the NvMedia Image decoder library.
NvMediaDecoderInstanceId
Specifies the decoder instance ID.
NvMediaImageDecoder * NvMediaImageDecoderCreate(const NvMediaDevice *device, NvMediaImageCodec codec, uint16_t width, uint16_t height, uint16_t maxReferences, uint64_t maxBitstreamSize, uint8_t inputBuffering, uint32_t flags, NvMediaDecoderInstanceId instanceId)
Creates a image decoder object.
NvMediaImageCodec
Image codec type.
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
NvMediaStatus
Defines all possible error codes.
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.
void NvMediaImageDecoderDestroy(const NvMediaImageDecoder *decoder)
Destroys a image decoder object.
NvMediaStatus NvMediaImageDecoderRender(const NvMediaImageDecoder *decoder, NvMediaImage *target, const NvMediaPictureInfo *pictureInfo, uint32_t numBitstreamBuffers, const NvMediaBitstreamBuffer *bitstreams, NvMediaDecoderInstanceId instanceId)
Decodes a compressed field/frame and render the result into a NvMediaImage.