Go to the documentation of this file.
54 uint32_t *timestamp,
const uint8_t *buf,
60 int packing_scheme, has_payload_desc, has_packet_info, alen,
94 if ((packing_scheme =
get_bits(&gb, 2)) == 0)
101 if (has_payload_desc) {
102 int data_len,
pos, is_start, is_finish;
112 if (!is_start || !is_finish) {
114 "split over several packets");
138 #define MKTAG16(a,b) MKTAG(a,b,0,0)
156 s->nb_streams = st->
index + 1;
176 if (has_packet_info) {
185 switch (packing_scheme) {
205 if (has_marker_bit) {
257 #define RTP_QT_HANDLER(m, n, s, t) \
258 const RTPDynamicProtocolHandler ff_ ## m ## _rtp_ ## n ## _handler = { \
261 .codec_id = AV_CODEC_ID_NONE, \
262 .priv_data_size = sizeof(PayloadContext), \
263 .init = qt_rtp_init, \
264 .close = qt_rtp_close, \
265 .parse_packet = qt_rtp_parse_packet, \
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
enum AVMediaType codec_type
General type of the encoded data.
static int get_bits_count(const GetBitContext *s)
#define RTP_FLAG_MARKER
RTP marker bit was set for this packet.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
void av_packet_free(AVPacket **pkt)
Free the packet, if the packet is reference counted, it will be unreferenced first.
uint32_t timestamp
current frame timestamp
static void skip_bits(GetBitContext *s, int n)
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
unsigned int avio_rl16(AVIOContext *s)
static av_cold int qt_rtp_init(AVFormatContext *ctx, int st_index, PayloadContext *qt)
unsigned int avio_rb32(AVIOContext *s)
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
static unsigned int get_bits1(GetBitContext *s)
static int FUNC() aud(CodedBitstreamContext *ctx, RWContext *rw, H264RawAUD *current)
unsigned int avio_rl32(AVIOContext *s)
int av_packet_from_data(AVPacket *pkt, uint8_t *data, int size)
Initialize a reference-counted packet from av_malloc()ed data.
int av_reallocp(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory through a pointer to a pointer.
int flags
A combination of AV_PKT_FLAG values.
AVPacket * av_packet_alloc(void)
Allocate an AVPacket and set its fields to default values.
#define RTP_QT_HANDLER(m, n, s, t)
unsigned int bytes_per_frame
void ffio_init_context(FFIOContext *s, unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int(*read_packet)(void *opaque, uint8_t *buf, int buf_size), int(*write_packet)(void *opaque, uint8_t *buf, int buf_size), int64_t(*seek)(void *opaque, int64_t offset, int whence))
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
unsigned int avio_rb16(AVIOContext *s)
static void qt_rtp_close(PayloadContext *qt)
#define AV_INPUT_BUFFER_PADDING_SIZE
int index
stream index in AVFormatContext
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
#define avpriv_request_sample(...)
This structure stores compressed data.
int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
#define flags(name, subs,...)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define MKTAG(a, b, c, d)
RTP/JPEG specific private data.
void * av_realloc(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory.