|
Jetson Linux API Reference
|
35.3.1 Release
|
Go to the documentation of this file.
36 #ifndef __NV_JPEG_ENCODER_H__
37 #define __NV_JPEG_ENCODER_H__
51 #ifndef TEGRA_ACCELERATE
56 #define TEGRA_ACCELERATE
69 #define MAX_CHANNELS 3
119 unsigned char **out_buf,
unsigned long &out_buf_size,
148 unsigned char **out_buf,
unsigned long &out_buf_size,
165 void setCropRect(uint32_t left, uint32_t top, uint32_t width,
182 struct jpeg_compress_struct cinfo;
183 struct jpeg_error_mgr jerr;
const char * comp_name
Specifies the name of the component, for debugging.
void setScaledEncodeParams(uint32_t scale_width, uint32_t scale_height)
Sets scaling parameters by which image needs to be scaled and encoded.
NvJpegEncoder uses the libjpeg APIs for decoding JPEG images.
static const ProfilerField PROFILER_FIELD_LATENCIES
int encodeFromBuffer(NvBuffer &buffer, J_COLOR_SPACE color_space, unsigned char **out_buf, unsigned long &out_buf_size, int quality=75)
Encodes a JPEG image from software buffer memory.
void setCropRect(uint32_t left, uint32_t top, uint32_t width, uint32_t height)
Sets the cropping rectangle used by the JPEG encoder.
int encodeFromFd(int fd, J_COLOR_SPACE color_space, unsigned char **out_buf, unsigned long &out_buf_size, int quality=75)
Encodes a JPEG image from a file descriptor (FD) of hardware 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
static NvJPEGEncoder * createJPEGEncoder(const char *comp_name)
Creates a new JPEG encoder named comp_name.
Class representing a buffer.