|
SmolRTSP 0.2.0
A small, portable, extensible RTSP 1.0 implementation in C99
|
JPEG XS RTP payload-header types and serialization. More...
#include <stdbool.h>#include <stdint.h>#include <smolrtsp/priv/compiler_attrs.h>

Go to the source code of this file.
Data Structures | |
| struct | SmolRTSP_JpegXsPayloadHeader |
| A JPEG XS RTP payload header (RFC 9134 §4.3). More... | |
Macros | |
| #define | SMOLRTSP_JPEGXS_PAYLOAD_HEADER_SIZE 4 |
| The size in bytes of a JPEG XS RTP payload header (RFC 9134 §4.3). | |
| #define | SMOLRTSP_JPEGXS_SEP_HEADER_SEGMENT 0x7FF |
| The SEP-counter sentinel that identifies the header-segment packetization unit in slice mode (K=1). | |
Enumerations | |
| enum | SmolRTSP_JpegXsPackMode { SMOLRTSP_JPEGXS_PACK_CODESTREAM = 0 , SMOLRTSP_JPEGXS_PACK_SLICE = 1 } |
| JPEG XS packetization mode – the K bit of the payload header (RFC 9134 §4.3). More... | |
| enum | SmolRTSP_JpegXsInterlace { SMOLRTSP_JPEGXS_INTERLACE_PROGRESSIVE = 0 , SMOLRTSP_JPEGXS_INTERLACE_FIELD_1 = 2 , SMOLRTSP_JPEGXS_INTERLACE_FIELD_2 = 3 } |
| Interlaced-scan information – the I field (2 bits) of the payload header (RFC 9134 §4.3). More... | |
Functions | |
| void | SmolRTSP_JpegXsPayloadHeader_serialize (SmolRTSP_JpegXsPayloadHeader self, uint8_t buffer[restrict]) |
Serializes self into buffer in network byte order. | |
JPEG XS RTP payload-header types and serialization.
| #define SMOLRTSP_JPEGXS_SEP_HEADER_SEGMENT 0x7FF |
The SEP-counter sentinel that identifies the header-segment packetization unit in slice mode (K=1).
See RFC 9134 §4.3.
Interlaced-scan information – the I field (2 bits) of the payload header (RFC 9134 §4.3).
JPEG XS packetization mode – the K bit of the payload header (RFC 9134 §4.3).
| void SmolRTSP_JpegXsPayloadHeader_serialize | ( | SmolRTSP_JpegXsPayloadHeader | self, |
| uint8_t | buffer[restrict] | ||
| ) |
Serializes self into buffer in network byte order.
| [in] | self | The header to write. |
| [out] | buffer | The memory area capable of storing SMOLRTSP_JPEGXS_PAYLOAD_HEADER_SIZE bytes. |