|
SmolRTSP 0.2.0
A small, portable, extensible RTSP 1.0 implementation in C99
|
An RFC 2435 main JPEG header (§3.1). More...
#include <jpeg.h>
Data Fields | |
| uint8_t | type_specific |
| Type-specific field (byte 0). | |
| uint32_t | fragment_offset |
| Fragment offset within the JPEG frame, in bytes (bytes 1..3, 24-bit big-endian). | |
| uint8_t | type |
| RTP/JPEG Type field (byte 4): subsampling + interlace flags. | |
| uint8_t | q |
| Quality factor (byte 5). | |
| uint8_t | width_blocks |
| Picture width in 8-pixel units (byte 6). | |
| uint8_t | height_blocks |
| Picture height in 8-pixel units (byte 7). | |
An RFC 2435 main JPEG header (§3.1).
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type-specific | Fragment Offset | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Q | Width | Height | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| uint32_t SmolRTSP_JpegPayloadHeader::fragment_offset |
Fragment offset within the JPEG frame, in bytes (bytes 1..3, 24-bit big-endian).
The transport stamps this per packet; callers populate 0 in a fresh header.
| uint8_t SmolRTSP_JpegPayloadHeader::q |
Quality factor (byte 5).
Values < SMOLRTSP_JPEG_Q_DYNAMIC reference the standard tables; values >= 128 mean a dynamic table is embedded.
| uint8_t SmolRTSP_JpegPayloadHeader::type_specific |
Type-specific field (byte 0).
Set 0 for baseline RFC 2435 use.