|
Jetson Linux API Reference
|
32.7.5 Release
|
Go to the documentation of this file.
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 void decodeIndirect(
NvBuffer *out_buf, uint32_t pixel_format);
154 void decodeDirect(
NvBuffer *out_buf, uint32_t pixel_format);
155 struct jpeg_decompress_struct cinfo;
156 struct jpeg_error_mgr jerr;
static NvJPEGDecoder * createJPEGDecoder(const char *comp_name)
Creates a new JPEG Decoder named comp_name.
Helper class for decoding JPEG images using libjpeg APIs.
const char * comp_name
Specifies the name of the component, for debugging.
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 const ProfilerField 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.
Every element has a unique name that can be used for identifying the element in debug logs.
static const ProfilerField PROFILER_FIELD_TOTAL_UNITS
Class representing a buffer.