36 #ifndef __NV_JPEG_DECODER_H__
37 #define __NV_JPEG_DECODER_H__
50 #ifndef TEGRA_ACCELERATE
55 #define TEGRA_ACCELERATE
68 #define MAX_CHANNELS 3
118 unsigned char *in_buf,
unsigned long in_buf_size,
119 uint32_t &pixfmt, uint32_t &width, uint32_t &height);
147 unsigned char *in_buf,
unsigned long in_buf_size,
148 uint32_t *pixfmt, uint32_t *width, uint32_t *height);
153 struct jpeg_decompress_struct cinfo;
154 struct jpeg_error_mgr jerr;
156 static const NvElementProfiler::ProfilerField valid_fields =
157 NvElementProfiler::PROFILER_FIELD_TOTAL_UNITS |
158 NvElementProfiler::PROFILER_FIELD_LATENCIES;
int decodeToBuffer(NvBuffer **buffer, unsigned char *in_buf, unsigned long in_buf_size, uint32_t *pixfmt, uint32_t *width, uint32_t *height)
Decodes a JPEG image to software buffer memory.
NVIDIA Multimedia API: NvElement Base Class
Class representing a buffer.
NVIDIA Multimedia API: Buffer API
Every element has a unique name that can be used for identifying the element in debug logs...
const char * comp_name
Specifies the name of the component, for debugging.
Helper class for decoding JPEG images using libjpeg APIs.
int decodeToFd(int &fd, unsigned char *in_buf, unsigned long in_buf_size, uint32_t &pixfmt, uint32_t &width, uint32_t &height)
Decodes a JPEG image to hardware buffer memory.
static NvJPEGDecoder * createJPEGDecoder(const char *comp_name)
Creates a new JPEG Decoder named comp_name.