Lines Matching defs:bitbuf
122 if (!get_bits1(bitbuf)) \
155 bit_cache = get_bits(bitbuf, 4 * stages); \
164 static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels,
191 stages = get_vlc2(bitbuf, svq1_intra_multistage[level].table, 3, 3) - 1;
207 mean = get_vlc2(bitbuf, svq1_intra_mean.table, 8, 3);
231 static int svq1_decode_block_non_intra(GetBitContext *bitbuf, uint8_t *pixels,
258 stages = get_vlc2(bitbuf, svq1_inter_multistage[level].table, 3, 2) - 1;
271 mean = get_vlc2(bitbuf, svq1_inter_mean.table, 9, 3) - 256;
291 static int svq1_decode_motion_vector(GetBitContext *bitbuf, svq1_pmv *mv,
299 diff = get_vlc2(bitbuf, svq1_motion_component.table, 7, 2);
303 if (get_bits1(bitbuf))
334 static int svq1_motion_inter_block(HpelDSPContext *hdsp, GetBitContext *bitbuf,
355 result = svq1_decode_motion_vector(bitbuf, &mv, pmv);
377 static int svq1_motion_inter_4v_block(HpelDSPContext *hdsp, GetBitContext *bitbuf,
398 result = svq1_decode_motion_vector(bitbuf, &mv, pmv);
410 result = svq1_decode_motion_vector(bitbuf, &motion[0], pmv);
418 result = svq1_decode_motion_vector(bitbuf, &motion[(x / 8) + 2], pmv);
426 result = svq1_decode_motion_vector(bitbuf, pmv[3], pmv);
455 GetBitContext *bitbuf,
464 block_type = get_vlc2(bitbuf, svq1_block_type.table,
483 result = svq1_motion_inter_block(hdsp, bitbuf, current, previous,
490 result = svq1_decode_block_non_intra(bitbuf, current, pitch);
494 result = svq1_motion_inter_4v_block(hdsp, bitbuf, current, previous,
501 result = svq1_decode_block_non_intra(bitbuf, current, pitch);
505 result = svq1_decode_block_intra(bitbuf, current, pitch);
512 static void svq1_parse_string(GetBitContext *bitbuf, uint8_t out[257])
517 out[0] = get_bits(bitbuf, 8);
521 out[i] = get_bits(bitbuf, 8) ^ seed;
530 GetBitContext *bitbuf = &s->gb;
535 skip_bits(bitbuf, 8); /* temporal_reference */
539 switch (get_bits(bitbuf, 2)) {
556 int csum = get_bits(bitbuf, 16);
558 csum = av_bswap16(av_crc(av_crc_get_table(AV_CRC_16_CCITT), av_bswap16(csum), bitbuf->buffer, bitbuf->size_in_bits >> 3));
567 svq1_parse_string(bitbuf, msg);
573 skip_bits(bitbuf, 2);
574 skip_bits(bitbuf, 2);
575 skip_bits1(bitbuf);
578 frame_size_code = get_bits(bitbuf, 3);
582 width = get_bits(bitbuf, 12);
583 height = get_bits(bitbuf, 12);
595 if (get_bits1(bitbuf)) {
596 skip_bits1(bitbuf); /* use packet checksum if (1) */
597 skip_bits1(bitbuf); /* component checksums after image data if (1) */
599 if (get_bits(bitbuf, 2) != 0)
603 if (get_bits1(bitbuf)) {
604 skip_bits1(bitbuf);
605 skip_bits(bitbuf, 4);
606 skip_bits1(bitbuf);
607 skip_bits(bitbuf, 2);
609 if (skip_1stop_8data_bits(bitbuf) < 0)
612 if (get_bits_left(bitbuf) <= 0)