15 #ifndef NVMEDIA_IJPD_H
16 #define NVMEDIA_IJPD_H
36 #define NVMEDIA_IJPD_VERSION_MAJOR 1
38 #define NVMEDIA_IJPD_VERSION_MINOR 7
44 #define NVMEDIA_JPEG_DEC_ATTRIBUTE_ALPHA_VALUE (1 << 0)
49 #define NVMEDIA_JPEG_DEC_ATTRIBUTE_COLOR_STANDARD (1 << 1)
54 #define NVMEDIA_IJPD_RENDER_FLAG_ROTATE_0 0
59 #define NVMEDIA_IJPD_RENDER_FLAG_ROTATE_90 1
64 #define NVMEDIA_IJPD_RENDER_FLAG_ROTATE_180 2
69 #define NVMEDIA_IJPD_RENDER_FLAG_ROTATE_270 3
74 #define NVMEDIA_IJPD_RENDER_FLAG_FLIP_HORIZONTAL (1 << 2)
79 #define NVMEDIA_IJPD_RENDER_FLAG_FLIP_VERTICAL (1 << 3)
84 #define NVMEDIA_MAX_JPEG_APP_MARKERS 16
189 uint32_t maxBitstreamBytes,
190 uint8_t supportPartialAccel
216 uint32_t maxBitstreamBytes
238 uint32_t attributeMask,
239 const void *attributes
269 uint32_t numBitstreamBuffers,
370 uint8_t downscaleLog2,
371 uint32_t numBitstreamBuffers,
425 uint8_t downscaleLog2,
426 uint32_t numBitstreamBuffers,
NvMediaStatus NvMediaIJPDGetVersion(NvMediaVersion *version)
Gets the version compatibility for the NvMedia IJPGD library.
NvMediaIJPD * NvMediaIJPDCreate(const NvMediaDevice *device, uint16_t maxWidth, uint16_t maxHeight, uint32_t maxBitstreamBytes, uint8_t supportPartialAccel)
Creates a JPEG decoder object capable of decoding a JPEG stream into an image surface.
NvMediaStatus NvMediaIJPDRender(const NvMediaIJPD *decoder, NvMediaImage *output, const NvMediaRect *srcRect, const NvMediaRect *dstRect, uint8_t downscaleLog2, uint32_t numBitstreamBuffers, const NvMediaBitstreamBuffer *bitstreams, uint32_t flags)
Decodes a JPEG image.
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
void NvMediaIJPDDestroy(NvMediaIJPD *decoder)
Destroys an NvMedia image JPEG decoder.
NvMediaColorStandard
Defines color standards.
NvMediaStatus
Defines all possible error codes.
NvMediaStatus NvMediaIJPDGetInfo(NVMEDIAJPEGDecInfo *info, uint32_t numBitstreamBuffers, const NvMediaBitstreamBuffer *bitstreams)
A helper function that determines whether the JPEG decoder HW engine can decode the input JPEG stream...
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t uint32_t uint32_t flags
#define NVMEDIA_MAX_JPEG_APP_MARKERS
JPEG decode max number of app markers supported.
NvMediaStatus NvMediaIJPDRenderYUV(const NvMediaIJPD *decoder, NvMediaImage *output, uint8_t downscaleLog2, uint32_t numBitstreamBuffers, const NvMediaBitstreamBuffer *bitstreams, uint32_t flags)
Decodes a JPEG image into YUV format.
NvMediaStatus NvMediaIJPDSetAttributes(const NvMediaIJPD *decoder, uint32_t attributeMask, const void *attributes)
Sets attributes of an existing image JPEG decoder.
NvMediaStatus NvMediaIJPDResize(NvMediaIJPD *decoder, uint16_t maxWidth, uint16_t maxHeight, uint32_t maxBitstreamBytes)
Resizes an existing image JPEG decoder.