|
SmolRTSP 0.2.0
A small, portable, extensible RTSP 1.0 implementation in C99
|
An RFC 2435 Quantization Table header (§3.1.8). More...
#include <jpeg.h>
Data Fields | |
| uint8_t | mbz |
| MBZ (must be zero) field, byte 0. | |
| uint8_t | precision |
| Per-table precision bitmap, byte 1. | |
| uint16_t | length |
| Total length in bytes of the quantization-table data that follows this header (bytes 2..3, big-endian). | |
An RFC 2435 Quantization Table header (§3.1.8).
Bit layout, transmitted in network byte order:
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MBZ | Precision | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| uint16_t SmolRTSP_JpegQtHeader::length |
Total length in bytes of the quantization-table data that follows this header (bytes 2..3, big-endian).
Two 8-bit tables = 128.
| uint8_t SmolRTSP_JpegQtHeader::precision |
Per-table precision bitmap, byte 1.
Bit N set = table N uses 16-bit coefficients (twice the size). 0 means all tables are 8-bit, which is the baseline RFC 2435 use.