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];
79 if (prefix_bytes > UINT16_MAX || size_scaler > UINT16_MAX)
84 for(lvl = 0; lvl < wavelet_depth; lvl++)
99 AV_WB16(&info_hdr[ 4], prefix_bytes);
100 AV_WB16(&info_hdr[ 6], size_scaler);
101 AV_WB16(&info_hdr[ 8], frag_len);
110 AV_WB16(&info_hdr[ 8], frag_len);
126 const uint8_t *unit = frame_buf;
131 parse_code = unit[4];
134 unit_size = end - unit;
136 if (unit_size < DIRAC_DATA_UNIT_HEADER_SIZE || unit_size > end - unit)
139 switch (parse_code) {
static AVFormatContext * ctx
#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_left(GetBitContext *gb)
static unsigned int get_bits1(GetBitContext *s)
static int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
static int get_bits_count(const GetBitContext *s)
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)