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
47 AV_WB8 (&rtp_ctx->
buf[2],
i ? (
f ? (0x03) : (0x02)) : 0x00);
50 memcpy(&rtp_ctx->
buf[4 + info_hdr_size], buf,
size);
59 int lvl, second_field;
60 uint32_t pic_nr, wavelet_depth, prefix_bytes, size_scaler;
62 char *info_hdr = &rtp_ctx->
buf[4];
81 for(lvl = 0; lvl < wavelet_depth; lvl++)
91 AV_WB16(&info_hdr[ 4], prefix_bytes);
92 AV_WB16(&info_hdr[ 6], size_scaler);
93 AV_WB16(&info_hdr[ 8], frag_len);
102 AV_WB16(&info_hdr[ 8], frag_len);
118 const uint8_t *unit = frame_buf;
123 parse_code = unit[4];
126 if (unit_size > end - unit)
129 switch (parse_code) {
#define i(width, name, range_min, range_max)
Interface to Dirac Decoder/Encoder.
static const uint8_t frame_size[4]
bitstream reader API header.
static int get_bits_count(const GetBitContext *s)
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
static unsigned get_interleaved_ue_golomb(GetBitContext *gb)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void avpriv_report_missing_feature(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
#define RTP_VC2HQ_PL_HEADER_SIZE
#define DIRAC_DATA_UNIT_HEADER_SIZE
#define DIRAC_PIC_NR_SIZE
#define DIRAC_RTP_PCODE_HQ_PIC_FRAGMENT
void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m)
static int send_picture(AVFormatContext *ctx, const uint8_t *buf, int size, int interlaced)
void ff_rtp_send_vc2hq(AVFormatContext *ctx, const uint8_t *frame_buf, int frame_size, int interlaced)
static int 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)
static AVFormatContext * ctx