Go to the documentation of this file.
44 uint32_t *timestamp,
const uint8_t *buf,
49 int packing_scheme, has_payload_desc, has_packet_info, alen,
81 if ((packing_scheme =
get_bits(&gb, 2)) == 0)
88 if (has_payload_desc) {
89 int data_len,
pos, is_start, is_finish;
99 if (!is_start || !is_finish) {
101 "split over several packets");
125 #define MKTAG16(a,b) MKTAG(a,b,0,0)
143 s->nb_streams = st->
index + 1;
163 if (has_packet_info) {
172 switch (packing_scheme) {
192 if (has_marker_bit) {
243 #define RTP_QT_HANDLER(m, n, s, t) \
244 RTPDynamicProtocolHandler ff_ ## m ## _rtp_ ## n ## _handler = { \
247 .codec_id = AV_CODEC_ID_NONE, \
248 .priv_data_size = sizeof(PayloadContext), \
249 .close = qt_rtp_close, \
250 .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.
#define MKTAG(a, b, c, d)
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.
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)
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 ffio_init_context(AVIOContext *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))
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.
void * av_realloc(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory.
#define RTP_QT_HANDLER(m, n, s, t)
unsigned int bytes_per_frame
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.
RTP/JPEG specific private data.
void av_init_packet(AVPacket *pkt)
Initialize optional fields of a packet with default values.