Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Encode images with the use of the JPEG encoding. More...
#include "jpeg.h"
Go to the source code of this file.
Data Structures | |
struct | JPEG_ENCODER_STRUCTURE |
Macros | |
#define | JPEG_BLOCK_SIZE 64 |
#define | PUTBITS |
Typedefs | |
typedef struct JPEG_ENCODER_STRUCTURE | JPEG_ENCODER_STRUCTURE |
Encode images with the use of the JPEG encoding.
Definition in file jpeg.c.
struct JPEG_ENCODER_STRUCTURE |
Data Fields | ||
---|---|---|
uint16_t | bitindex | |
int16_t | CB[JPEG_BLOCK_SIZE] | |
uint16_t | cols | |
uint16_t | cols_in_right_mcus | |
uint8_t | Cqt[JPEG_BLOCK_SIZE] | |
int16_t | CR[JPEG_BLOCK_SIZE] | |
uint16_t | horizontal_mcus | |
uint16_t | ICqt[JPEG_BLOCK_SIZE] | |
uint16_t | ILqt[JPEG_BLOCK_SIZE] | |
uint16_t | incr | |
uint32_t | lcode | |
int16_t | ldc1 | |
int16_t | ldc2 | |
int16_t | ldc3 | |
uint16_t | length_minus_mcu_width | |
uint16_t | length_minus_width | |
uint8_t | Lqt[JPEG_BLOCK_SIZE] | |
uint16_t | mcu_height | |
uint16_t | mcu_width | |
uint16_t | mcu_width_size | |
uint16_t | offset | |
uint16_t | rows | |
uint16_t | rows_in_bottom_mcus | |
int16_t | Temp[JPEG_BLOCK_SIZE] | |
uint16_t | vertical_mcus | |
int16_t | Y1[JPEG_BLOCK_SIZE] | |
int16_t | Y2[JPEG_BLOCK_SIZE] |
#define PUTBITS |
|
static |
Definition at line 722 of file jpeg.c.
References foo.
Referenced by jpeg_encode_image().
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, foo, FOUR_TWO_TWO, FOUR_ZERO_ZERO, image_t::h, IMAGE_GRAYSCALE, IMAGE_YUV422, jpeg_close_bitstream(), jpeg_encodeMCU(), jpeg_initialization(), jpeg_write_markers(), MakeTables(), read_format, and image_t::w.
Referenced by save_shot_on_disk(), video_capture_save(), and viewvideo_function().
|
static |
Definition at line 472 of file jpeg.c.
References foo, FOUR_TWO_TWO, jpeg_DCT(), jpeg_huffman(), jpeg_levelshift(), and jpeg_quantization().
Referenced by jpeg_encode_image().
|
static |
Definition at line 623 of file jpeg.c.
References bitsize, chrominance_ac_code_table, chrominance_ac_size_table, chrominance_dc_code_table, chrominance_dc_size_table, foo, luminance_ac_code_table, luminance_ac_size_table, luminance_dc_code_table, luminance_dc_size_table, and PUTBITS.
Referenced by jpeg_encodeMCU().
|
static |
Definition at line 288 of file jpeg.c.
References foo, FOUR_ZERO_ZERO, jpeg_read_400_format(), jpeg_read_422_format(), and read_format.
Referenced by jpeg_encode_image().
Definition at line 499 of file jpeg.c.
Referenced by jpeg_encodeMCU().
|
static |
Definition at line 936 of file jpeg.c.
References foo, and zigzag_table.
Referenced by jpeg_encodeMCU().
|
static |
Definition at line 949 of file jpeg.c.
References foo.
Referenced by jpeg_initialization().
|
static |
Definition at line 979 of file jpeg.c.
References foo.
Referenced by jpeg_initialization().
|
static |
Definition at line 748 of file jpeg.c.
References foo, FOUR_TWO_TWO, FOUR_ZERO_ZERO, and markerdata.
Referenced by jpeg_encode_image().
void MakeTables | ( | JPEG_ENCODER_STRUCTURE * | jpeg_encoder_structure, |
int | q | ||
) |
Definition at line 369 of file jpeg.c.
References foo, jpeg_chroma_quantizer, and jpeg_luma_quantizer.
Referenced by jpeg_encode_image().
Definition at line 23 of file jpeg.c.
Referenced by jpeg_create_svs_header().
Definition at line 228 of file jpeg.c.
Referenced by jpeg_huffman().
Definition at line 186 of file jpeg.c.
Referenced by jpeg_huffman().
Definition at line 207 of file jpeg.c.
Referenced by jpeg_huffman().
Definition at line 134 of file jpeg.c.
Referenced by jpeg_huffman().
Definition at line 139 of file jpeg.c.
Referenced by jpeg_huffman().
Definition at line 354 of file jpeg.c.
Referenced by MakeTables().
Definition at line 340 of file jpeg.c.
Referenced by MakeTables().
Definition at line 144 of file jpeg.c.
Referenced by jpeg_huffman().
Definition at line 165 of file jpeg.c.
Referenced by jpeg_huffman().
Definition at line 124 of file jpeg.c.
Referenced by jpeg_huffman().
Definition at line 129 of file jpeg.c.
Referenced by jpeg_huffman().
Definition at line 263 of file jpeg.c.
Referenced by jpeg_write_markers().
void(* read_format) (JPEG_ENCODER_STRUCTURE *jpeg_encoder_structure, uint8_t *input_ptr) | ( | JPEG_ENCODER_STRUCTURE * | jpeg_encoder_structure, |
uint8_t * | input_ptr | ||
) |
Definition at line 286 of file jpeg.c.
Referenced by jpeg_encode_image(), and jpeg_initialization().
Definition at line 274 of file jpeg.c.
Referenced by jpeg_quantization().