SmolRTSP 0.2.0
A small, portable, extensible RTSP 1.0 implementation in C99
Loading...
Searching...
No Matches
av1_transport.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <smolrtsp/av1.h>
14#include <smolrtsp/droppable.h>
16
17#include <stdbool.h>
18#include <stddef.h>
19#include <stdint.h>
20
21#include <slice99.h>
22
23#include <smolrtsp/priv/compiler_attrs.h>
24
32#define SMOLRTSP_MAX_AV1_PACKET_SIZE 1200
33
37typedef struct {
46
52SmolRTSP_Av1TransportConfig_default(void) SMOLRTSP_PRIV_MUST_USE;
53
58
68
80 SmolRTSP_Av1TransportConfig config) SMOLRTSP_PRIV_MUST_USE;
81
120 SmolRTSP_Av1Transport *self, SmolRTSP_RtpTimestamp ts, U8Slice99 obus,
121 bool is_new_cvs) SMOLRTSP_PRIV_MUST_USE;
122
130
131bool SmolRTSP_Av1Transport_is_full(SmolRTSP_Av1Transport *self);
AV1 RTP aggregation-header types, LEB128 helpers, and OBU constants.
SmolRTSP_Av1TransportConfig SmolRTSP_Av1TransportConfig_default(void) SMOLRTSP_PRIV_MUST_USE
Returns the default SmolRTSP_Av1TransportConfig: SMOLRTSP_MAX_AV1_PACKET_SIZE.
SmolRTSP_Av1Transport * SmolRTSP_Av1Transport_new_with_config(SmolRTSP_RtpTransport *t, SmolRTSP_Av1TransportConfig config) SMOLRTSP_PRIV_MUST_USE
Creates a new RTP/AV1 transport with a custom configuration.
struct SmolRTSP_Av1Transport SmolRTSP_Av1Transport
An RTP/AV1 data transport.
Definition av1_transport.h:57
SmolRTSP_Av1Transport * SmolRTSP_Av1Transport_new(SmolRTSP_RtpTransport *t) SMOLRTSP_PRIV_MUST_USE
Creates a new RTP/AV1 transport with the default configuration.
declImplExtern99(SmolRTSP_Droppable, SmolRTSP_Av1Transport)
Implements SmolRTSP_Droppable_IFACE for SmolRTSP_Av1Transport.
int SmolRTSP_Av1Transport_send_temporal_unit(SmolRTSP_Av1Transport *self, SmolRTSP_RtpTimestamp ts, U8Slice99 obus, bool is_new_cvs) SMOLRTSP_PRIV_MUST_USE
Sends a complete AV1 temporal unit (TU) as a sequence of RTP packets.
Droppable types support.
An RTP data transport.
struct SmolRTSP_RtpTransport SmolRTSP_RtpTransport
An RTP data transport.
Definition rtp_transport.h:22
The configuration structure for SmolRTSP_Av1Transport.
Definition av1_transport.h:37
size_t max_packet_size
Maximum size in bytes of the RTP payload (i.e.
Definition av1_transport.h:44