SmolRTSP 0.2.0
A small, portable, extensible RTSP 1.0 implementation in C99
Loading...
Searching...
No Matches
jpegxs.h
Go to the documentation of this file.
1
9#pragma once
10
11#include <stdbool.h>
12#include <stdint.h>
13
14#include <smolrtsp/priv/compiler_attrs.h>
15
19#define SMOLRTSP_JPEGXS_PAYLOAD_HEADER_SIZE 4
20
33
46
51#define SMOLRTSP_JPEGXS_SEP_HEADER_SEGMENT 0x7FF
52
80
89 SmolRTSP_JpegXsPayloadHeader self, uint8_t buffer[restrict]);
SmolRTSP_JpegXsPackMode
JPEG XS packetization mode – the K bit of the payload header (RFC 9134 §4.3).
Definition jpegxs.h:25
@ SMOLRTSP_JPEGXS_PACK_SLICE
K=1: slice mode.
Definition jpegxs.h:31
@ SMOLRTSP_JPEGXS_PACK_CODESTREAM
K=0: codestream mode.
Definition jpegxs.h:28
SmolRTSP_JpegXsInterlace
Interlaced-scan information – the I field (2 bits) of the payload header (RFC 9134 §4....
Definition jpegxs.h:38
@ SMOLRTSP_JPEGXS_INTERLACE_PROGRESSIVE
I=00: progressively scanned.
Definition jpegxs.h:40
@ SMOLRTSP_JPEGXS_INTERLACE_FIELD_2
I=11: second field of an interlaced frame.
Definition jpegxs.h:44
@ SMOLRTSP_JPEGXS_INTERLACE_FIELD_1
I=10: first field of an interlaced frame.
Definition jpegxs.h:42
void SmolRTSP_JpegXsPayloadHeader_serialize(SmolRTSP_JpegXsPayloadHeader self, uint8_t buffer[restrict])
Serializes self into buffer in network byte order.
A JPEG XS RTP payload header (RFC 9134 §4.3).
Definition jpegxs.h:64
bool sequential
T – packets are sent sequentially by the transmitter.
Definition jpegxs.h:66
uint8_t frame_counter
F – frame counter, mod 32 (5 bits).
Definition jpegxs.h:74
uint16_t sep_counter
SEP – slice/extended-packet counter, 11 bits.
Definition jpegxs.h:76
uint16_t packet_counter
P – packet counter within the unit, mod 2048 (11 bits).
Definition jpegxs.h:78
SmolRTSP_JpegXsPackMode pack_mode
K – packetization mode.
Definition jpegxs.h:68
bool last_in_unit
L – last packet of the current packetization unit.
Definition jpegxs.h:70
SmolRTSP_JpegXsInterlace interlace
I – 2-bit interlaced-scan field.
Definition jpegxs.h:72