Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
Loading...
Searching...
No Matches
nal_transport.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <compy/droppable.h>
14#include <compy/nal.h>
15#include <compy/rtp_transport.h>
16
17#include <stddef.h>
18#include <stdint.h>
19
20#include <compy/priv/compiler_attrs.h>
21
25#define COMPY_MAX_H264_NALU_SIZE 1200
26
30#define COMPY_MAX_H265_NALU_SIZE 4096
31
46
56Compy_NalTransportConfig_default(void) COMPY_PRIV_MUST_USE;
57
62
71Compy_NalTransport_new(Compy_RtpTransport *t) COMPY_PRIV_MUST_USE;
72
82 Compy_RtpTransport *t, Compy_NalTransportConfig config) COMPY_PRIV_MUST_USE;
83
102 Compy_NalTransport *self, Compy_RtpTimestamp ts,
103 Compy_NalUnit nalu) COMPY_PRIV_MUST_USE;
104
112
113bool Compy_NalTransport_is_full(Compy_NalTransport *self);
Droppable types support.
A generic NAL (Network Abstraction Layer) representation.
Compy_NalTransport * Compy_NalTransport_new(Compy_RtpTransport *t) COMPY_PRIV_MUST_USE
Creates a new RTP/NAL transport with the default configuration.
Definition nal_transport.c:30
Compy_NalTransport * Compy_NalTransport_new_with_config(Compy_RtpTransport *t, Compy_NalTransportConfig config) COMPY_PRIV_MUST_USE
Creates a new RTP/NAL transport with a custom configuration.
Definition nal_transport.c:37
int Compy_NalTransport_send_packet(Compy_NalTransport *self, Compy_RtpTimestamp ts, Compy_NalUnit nalu) COMPY_PRIV_MUST_USE
Sends an RTP/NAL packet.
Definition nal_transport.c:65
declImplExtern99(Compy_Droppable, Compy_NalTransport)
Implements Compy_Droppable_IFACE for Compy_NalTransport.
Compy_NalTransportConfig Compy_NalTransportConfig_default(void) COMPY_PRIV_MUST_USE
Returns the default Compy_NalTransportConfig.
Definition nal_transport.c:18
An RTP data transport.
The configuration structure for Compy_NalTransport.
Definition nal_transport.h:35
size_t max_h265_nalu_size
The maximum size of an H.265 NAL unit (including the header).
Definition nal_transport.h:44
size_t max_h264_nalu_size
The maximum size of an H.264 NAL unit (including the header).
Definition nal_transport.h:39
Definition nal_transport.c:25
A generic NAL unit (either H.264 or H.265).
Definition nal.h:112
Definition rtp_transport.c:11