![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <cstddef>#include <cstdint>

Go to the source code of this file.
Classes | |
| struct | huffman_table |
| struct | jpeg_info |
| struct | jpeg_rtp_data |
Enumerations | |
| enum | { JPEG_MAX_COMPONENT_COUNT = 4 } |
| enum | huff_type { LUM_DC = 0 , LUM_AC = 1 , CHR_DC = 2 , CHR_AC = 3 } |
| enum | jpeg_color_spec { JPEG_COLOR_SPEC_NONE = 0 , JPEG_COLOR_SPEC_YCBCR , JPEG_COLOR_SPEC_RGB , JPEG_COLOR_SPEC_CMYK , JPEG_COLOR_SPEC_YCCK } |
Functions | |
| bool | jpeg_get_rtp_hdr_data (uint8_t *jpeg_data, int len, struct jpeg_rtp_data *hdr_data) |
| int | jpeg_read_info (uint8_t *image, int len, struct jpeg_info *info) |
Variables | |
| const struct huffman_table | default_huffman_tables [4] |
Definition in file jpeg_reader.h.
| anonymous enum |
| Enumerator | |
|---|---|
| JPEG_MAX_COMPONENT_COUNT | |
Definition at line 58 of file jpeg_reader.h.
| enum huff_type |
| Enumerator | |
|---|---|
| LUM_DC | order of tables in default_huffman_tables |
| LUM_AC | |
| CHR_DC | |
| CHR_AC | |
Definition at line 101 of file jpeg_reader.h.
| enum jpeg_color_spec |
| Enumerator | |
|---|---|
| JPEG_COLOR_SPEC_NONE | |
| JPEG_COLOR_SPEC_YCBCR | |
| JPEG_COLOR_SPEC_RGB | |
| JPEG_COLOR_SPEC_CMYK | |
| JPEG_COLOR_SPEC_YCCK | |
Definition at line 50 of file jpeg_reader.h.
| bool jpeg_get_rtp_hdr_data | ( | uint8_t * | jpeg_data, |
| int | len, | ||
| struct jpeg_rtp_data * | hdr_data ) |
Definition at line 775 of file jpeg_reader.c.
References arr_eq3(), check_rtp_compatibility(), jpeg_info::com, jpeg_info::comp_table_quantization_map, jpeg_info::data, jpeg_rtp_data::data, jpeg_info::height, jpeg_rtp_data::height, jpeg_read_info(), len, LOG_LEVEL_ERROR, log_msg(), MSG, jpeg_rtp_data::q, jpeg_info::quantization_tables, jpeg_rtp_data::quantization_tables, jpeg_info::restart_interval, jpeg_rtp_data::restart_interval, jpeg_info::sampling_factor_h, jpeg_info::sampling_factor_v, jpeg_rtp_data::type, jpeg_info::width, and jpeg_rtp_data::width.
Referenced by tx_send_jpeg().

| int jpeg_read_info | ( | uint8_t * | image, |
| int | len, | ||
| struct jpeg_info * | info ) |
This function reads values from JPEG file.
| 0 | ok |
| -1 | general error |
| -2 | incomplete file (required markers missing) |
Definition at line 551 of file jpeg_reader.c.
References JPEG_COLOR_SPEC_CMYK, JPEG_COLOR_SPEC_RGB, JPEG_COLOR_SPEC_YCBCR, JPEG_MARKER_APP14, JPEG_MARKER_COM, JPEG_MARKER_DHT, JPEG_MARKER_DQT, JPEG_MARKER_DRI, JPEG_MARKER_EOI, jpeg_marker_name(), JPEG_MARKER_RST0, JPEG_MARKER_RST1, JPEG_MARKER_RST2, JPEG_MARKER_RST3, JPEG_MARKER_RST4, JPEG_MARKER_RST5, JPEG_MARKER_RST6, JPEG_MARKER_RST7, JPEG_MARKER_SOF0, JPEG_MARKER_SOI, JPEG_MARKER_SOS, len, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_WARNING, log_msg(), read_adobe_app14(), read_com(), read_dht(), read_dqt(), read_dri(), read_marker(), read_sof0(), read_sos(), and skip_marker_content().
Referenced by jpeg_get_rtp_hdr_data().

|
extern |