Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Encode images with the use of the JPEG encoding. More...
Go to the source code of this file.
Macros | |
#define | FOUR_ZERO_ZERO 0 |
#define | FOUR_TWO_ZERO 1 |
#define | FOUR_TWO_TWO 2 |
#define | FOUR_FOUR_FOUR 3 |
#define | RGB 4 |
Functions | |
void | jpeg_encode_image (struct image_t *in, struct image_t *out, uint32_t quality_factor, bool add_dri_header) |
Encode an YUV422 image. More... | |
int | jpeg_create_svs_header (unsigned char *buf, int32_t size, int w) |
Encode images with the use of the JPEG encoding.
Definition in file jpeg.h.
int jpeg_create_svs_header | ( | unsigned char * | buf, |
int32_t | size, | ||
int | w | ||
) |
Definition at line 44 of file jpeg.c.
References p, s, and svs_size_code().
void jpeg_encode_image | ( | struct image_t * | in, |
struct image_t * | out, | ||
uint32_t | quality_factor, | ||
bool | add_dri_header | ||
) |
Encode an YUV422 image.
[in] | *in | The input image |
[out] | *out | The output JPEG image |
[in] | quality_factor | Quality factor of the encoding (0-99) |
[in] | add_dri_header | Add the DRI header (needed for full JPEG) |
Definition at line 408 of file jpeg.c.
References image_t::buf, image_t::buf_size, JPEG_ENCODER_STRUCTURE::cols, JPEG_ENCODER_STRUCTURE::cols_in_right_mcus, FOUR_TWO_TWO, FOUR_ZERO_ZERO, image_t::h, JPEG_ENCODER_STRUCTURE::horizontal_mcus, IMAGE_GRAYSCALE, IMAGE_YUV422, JPEG_ENCODER_STRUCTURE::incr, jpeg_close_bitstream(), jpeg_encodeMCU(), jpeg_initialization(), jpeg_write_markers(), JPEG_ENCODER_STRUCTURE::length_minus_mcu_width, JPEG_ENCODER_STRUCTURE::length_minus_width, MakeTables(), JPEG_ENCODER_STRUCTURE::mcu_height, JPEG_ENCODER_STRUCTURE::mcu_width, JPEG_ENCODER_STRUCTURE::mcu_width_size, JPEG_ENCODER_STRUCTURE::offset, read_format, JPEG_ENCODER_STRUCTURE::rows, JPEG_ENCODER_STRUCTURE::rows_in_bottom_mcus, image_t::type, JPEG_ENCODER_STRUCTURE::vertical_mcus, and image_t::w.
Referenced by save_shot_on_disk(), video_capture_save(), and viewvideo_function().