15 #ifndef _NVMEDIA_IMGDEC_H
16 #define _NVMEDIA_IMGDEC_H
43 #define NVMEDIA_IMAGEDEC_VERSION_MAJOR 2
45 #define NVMEDIA_IMAGEDEC_VERSION_MINOR 0
83 #define NVMEDIA_IMAGE_DECODER_ATTRIBUTE_PROGRESSIVE_SEQUENCE (1<<0)
90 #define NVMEDIA_IMAGE_DECODER_10BIT_DECODE (1<<1)
97 #define NVMEDIA_IMAGE_DECODER_PIXEL_REC_2020 (1<<2)
157 uint16_t maxReferences,
158 uint64_t maxBitstreamSize,
159 uint8_t inputBuffering,
202 uint32_t numBitstreamBuffers,
NvMediaStatus NvMediaImageDecoderGetVersion(NvMediaVersion *version)
Checks the version compatibility for the NvMedia Image decoder library.
void NvMediaImageDecoderDestroy(NvMediaImageDecoder *decoder)
Destroys a image decoder object.
NvMediaDecoderInstanceId
Specifies the decoder instance ID.
NvMediaImageCodec
Image codec type.
NvMediaStatus
The set of 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 NvMediaDevice
An opaque handle representing a NvMediaDevice object.
void NvMediaPictureInfo
A generic "picture information" pointer type.
NvMediaStatus NvMediaImageDecoderRender(NvMediaImageDecoder *decoder, NvMediaImage *target, NvMediaPictureInfo *pictureInfo, uint32_t numBitstreamBuffers, const NvMediaBitstreamBuffer *bitstreams, NvMediaDecoderInstanceId instanceId)
Decodes a compressed field/frame and render the result into a NvMediaImage.
NvMediaImageDecoder * NvMediaImageDecoderCreate(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.