|
Jetson Linux API Reference
|
38.2 Release
|
Go to the documentation of this file.
38 #ifndef __NV_JPEG_DECODER_H__
39 #define __NV_JPEG_DECODER_H__
52 #ifndef TEGRA_ACCELERATE
57 #define TEGRA_ACCELERATE
70 #define MAX_CHANNELS 3
120 unsigned char *in_buf,
unsigned long in_buf_size,
121 uint32_t &pixfmt, uint32_t &width, uint32_t &height);
149 unsigned char *in_buf,
unsigned long in_buf_size,
150 uint32_t *pixfmt, uint32_t *width, uint32_t *height);
194 void decodeIndirect(
NvBuffer *out_buf, uint32_t pixel_format);
195 void decodeDirect(
NvBuffer *out_buf, uint32_t pixel_format);
196 struct jpeg_decompress_struct cinfo;
197 struct jpeg_error_mgr jerr;
static NvJPEGDecoder * createJPEGDecoder(const char *comp_name)
Creates a new JPEG Decoder named comp_name.
void setGPUId(uint32_t gpu_id)
Set GPU ID to be used by decoder.
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.
bool isGPUEnabled()
Checks if the GPU node is present returns true for success, false otherwise.
void disableMjpegDecode()
Disable MJPEG decode.
static const ProfilerField PROFILER_FIELD_LATENCIES
void setMemType(uint32_t mem_type)
Set memory type to be used by decoder.
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
void setUseExternalBuffer(bool use_external_buffer)
Set use external buffer for decoder output.
Class representing a buffer.