Go to the documentation of this file.
30 #define RTP_VC2HQ_PL_HEADER_SIZE 4
32 #define DIRAC_DATA_UNIT_HEADER_SIZE 13
33 #define DIRAC_PIC_NR_SIZE 4
34 #define DIRAC_RTP_PCODE_HQ_PIC_FRAGMENT 0xEC
41 AV_WB8 (&rtp_ctx->
buf[2],
i ? (
f ? (0x03) : (0x02)) : 0x00);
44 memcpy(&rtp_ctx->
buf[4 + info_hdr_size], buf,
size);
52 int lvl, second_field;
53 uint32_t pic_nr, wavelet_depth, prefix_bytes, size_scaler;
55 char *info_hdr = &rtp_ctx->
buf[4];
74 for(lvl = 0; lvl < wavelet_depth; lvl++)
84 AV_WB16(&info_hdr[ 4], prefix_bytes);
85 AV_WB16(&info_hdr[ 6], size_scaler);
86 AV_WB16(&info_hdr[ 8], frag_len);
94 AV_WB16(&info_hdr[ 8], frag_len);
109 const uint8_t *unit = frame_buf;
114 parse_code = unit[4];
117 if (unit_size > end - unit)
120 switch (parse_code) {
#define DIRAC_RTP_PCODE_HQ_PIC_FRAGMENT
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
static int get_bits_count(const GetBitContext *s)
static unsigned get_interleaved_ue_golomb(GetBitContext *gb)
void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m)
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
static int send_picture(AVFormatContext *ctx, const uint8_t *buf, int size, int interlaced)
#define RTP_VC2HQ_PL_HEADER_SIZE
#define DIRAC_PIC_NR_SIZE
#define DIRAC_DATA_UNIT_HEADER_SIZE
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32
void avpriv_report_missing_feature(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
void ff_rtp_send_vc2hq(AVFormatContext *ctx, const uint8_t *frame_buf, int frame_size, int interlaced)
static void send_packet(AVFormatContext *ctx, uint8_t parse_code, int info_hdr_size, const uint8_t *buf, int size, int i, int f, int rtp_m)
#define i(width, name, range_min, range_max)
void * priv_data
Format private data.