/third_party/ffmpeg/libavcodec/ |
H A D | vc1_loopfilter.c | 363 static av_always_inline void vc1_p_h_loop_filter(VC1Context *v, uint8_t *dest, uint32_t *cbp, in vc1_p_h_loop_filter() argument 369 uint32_t left_cbp = cbp[0] >> (block_num * 4), right_cbp; in vc1_p_h_loop_filter() 385 right_cbp = cbp[1] >> (block_num * 4); in vc1_p_h_loop_filter() 388 right_cbp = cbp[1] >> ((block_num - 1) * 4); in vc1_p_h_loop_filter() 391 right_cbp = cbp[0] >> ((block_num + 1) * 4); in vc1_p_h_loop_filter() 416 static av_always_inline void vc1_p_v_loop_filter(VC1Context *v, uint8_t *dest, uint32_t *cbp, in vc1_p_v_loop_filter() argument 422 uint32_t top_cbp = cbp[0] >> (block_num * 4), bottom_cbp; in vc1_p_v_loop_filter() 438 bottom_cbp = cbp[s->mb_stride] >> (block_num * 4); in vc1_p_v_loop_filter() 441 bottom_cbp = cbp[0] >> ((block_num + 2) * 4); in vc1_p_v_loop_filter() 444 bottom_cbp = cbp[ in vc1_p_v_loop_filter() 475 uint32_t *cbp; ff_vc1_p_loop_filter() local 1112 vc1_b_h_intfi_loop_filter(VC1Context *v, uint8_t *dest, uint32_t *cbp, int *ttblk, uint32_t flags, int block_num) vc1_b_h_intfi_loop_filter() argument 1144 vc1_b_v_intfi_loop_filter(VC1Context *v, uint8_t *dest, uint32_t *cbp, int *ttblk, uint32_t flags, int block_num) vc1_b_v_intfi_loop_filter() argument 1177 uint32_t *cbp; ff_vc1_b_intfi_loop_filter() local [all...] |
H A D | mpegvideo_xvmc.c | 64 void ff_xvmc_pack_pblocks(MpegEncContext *s, int cbp) in ff_xvmc_pack_pblocks() argument 69 cbp <<= 12-mb_block_count; in ff_xvmc_pack_pblocks() 71 if (cbp & (1 << 11)) in ff_xvmc_pack_pblocks() 75 cbp += cbp; in ff_xvmc_pack_pblocks() 175 int i, cbp, blocks_per_mb; in ff_xvmc_decode_mb() local 293 // calculate cbp in ff_xvmc_decode_mb() 294 cbp = 0; in ff_xvmc_decode_mb() 296 cbp += cbp; in ff_xvmc_decode_mb() [all...] |
H A D | h263enc.h | 76 int cbp; in get_p_cbp() local 108 cbp = cbpc + 4 * cbpy; in get_p_cbp() 111 cbp= 0; in get_p_cbp() 115 if (s->block_last_index[i] >= 0 && !((cbp >> (5 - i)) & 1)) { in get_p_cbp() 121 cbp = 0; in get_p_cbp() 124 cbp |= 1 << (5 - i); in get_p_cbp() 127 return cbp; in get_p_cbp()
|
H A D | wmv2enc.c | 170 int cbp, coded_cbp, i; in ff_wmv2_encode_mb() local 177 /* compute cbp */ in ff_wmv2_encode_mb() 178 cbp = 0; in ff_wmv2_encode_mb() 181 cbp |= 1 << (5 - i); in ff_wmv2_encode_mb() 184 ff_wmv2_inter_table[w->cbp_table_index][cbp + 64][1], in ff_wmv2_encode_mb() 185 ff_wmv2_inter_table[w->cbp_table_index][cbp + 64][0]); in ff_wmv2_encode_mb() 194 /* compute cbp */ in ff_wmv2_encode_mb() 195 cbp = 0; in ff_wmv2_encode_mb() 200 cbp |= val << (5 - i); in ff_wmv2_encode_mb() 216 ff_wmv2_inter_table[w->cbp_table_index][cbp][ in ff_wmv2_encode_mb() [all...] |
H A D | h264_cavlc.c | 628 int mb_type, int cbp, int p) in decode_luma_residual() 641 av_assert2((cbp&15) == 0 || (cbp&15) == 15); in decode_luma_residual() 643 if(cbp&15){ in decode_luma_residual() 663 if(cbp & (1<<i8x8)){ in decode_luma_residual() 699 unsigned int mb_type, cbp; in ff_h264_decode_mb_cavlc() local 707 cbp = 0; /* avoid warning. FIXME: find a solution without slowing in ff_h264_decode_mb_cavlc() 762 cbp = ff_h264_i_mb_type_info[mb_type].cbp; in ff_h264_decode_mb_cavlc() 1063 cbp in ff_h264_decode_mb_cavlc() 625 decode_luma_residual(const H264Context *h, H264SliceContext *sl, GetBitContext *gb, const uint8_t *scan, const uint8_t *scan8x8, int pixel_shift, int mb_type, int cbp, int p) decode_luma_residual() argument [all...] |
H A D | hqx.c | 196 int cbp; in hqx_decode_422a() local 198 cbp = get_vlc2(gb, ctx->cbp_vlc.table, HQX_CBP_VLC_BITS, 1); in hqx_decode_422a() 204 if (cbp) { in hqx_decode_422a() 210 cbp |= cbp << 4; // alpha CBP in hqx_decode_422a() 211 if (cbp & 0x3) // chroma CBP - top in hqx_decode_422a() 212 cbp |= 0x500; in hqx_decode_422a() 213 if (cbp & 0xC) // chroma CBP - bottom in hqx_decode_422a() 214 cbp |= 0xA00; in hqx_decode_422a() 218 if (cbp in hqx_decode_422a() 282 int cbp; hqx_decode_444a() local [all...] |
H A D | msmpeg4enc.c | 376 int cbp, coded_cbp, i; in ff_msmpeg4_encode_mb() local 383 /* compute cbp */ in ff_msmpeg4_encode_mb() 384 cbp = 0; in ff_msmpeg4_encode_mb() 387 cbp |= 1 << (5 - i); in ff_msmpeg4_encode_mb() 389 if (s->use_skip_mb_code && (cbp | motion_x | motion_y) == 0) { in ff_msmpeg4_encode_mb() 403 ff_v2_mb_type[cbp&3][1], in ff_msmpeg4_encode_mb() 404 ff_v2_mb_type[cbp&3][0]); in ff_msmpeg4_encode_mb() 405 if((cbp&3) != 3) coded_cbp= cbp ^ 0x3C; in ff_msmpeg4_encode_mb() 406 else coded_cbp= cbp; in ff_msmpeg4_encode_mb() [all...] |
H A D | h261enc.c | 166 int i, cbp; in get_cbp() local 167 cbp = 0; in get_cbp() 170 cbp |= 1 << (5 - i); in get_cbp() 171 return cbp; in get_cbp() 254 int mvd, mv_diff_x, mv_diff_y, i, cbp; in ff_h261_encode_mb() local 255 cbp = 63; // avoid warning in ff_h261_encode_mb() 261 /* compute cbp */ in ff_h261_encode_mb() 262 cbp = get_cbp(s, block); in ff_h261_encode_mb() 267 if ((cbp | mvd) == 0) { in ff_h261_encode_mb() 292 if (cbp) in ff_h261_encode_mb() [all...] |
H A D | msmpeg4dec.c | 110 int cbp, code, i; in msmpeg4v12_decode_mb() local 141 cbp = code & 0x3; in msmpeg4v12_decode_mb() 145 cbp= get_vlc2(&s->gb, v2_intra_cbpc_vlc.table, V2_INTRA_CBPC_VLC_BITS, 1); in msmpeg4v12_decode_mb() 147 cbp= get_vlc2(&s->gb, ff_h263_intra_MCBPC_vlc.table, INTRA_MCBPC_VLC_BITS, 2); in msmpeg4v12_decode_mb() 148 if(cbp<0 || cbp>3){ in msmpeg4v12_decode_mb() 149 av_log(s->avctx, AV_LOG_ERROR, "cbpc %d invalid at %d %d\n", cbp, s->mb_x, s->mb_y); in msmpeg4v12_decode_mb() 159 av_log(s->avctx, AV_LOG_ERROR, "cbpy %d invalid at %d %d\n", cbp, s->mb_x, s->mb_y); in msmpeg4v12_decode_mb() 163 cbp|= cbpy<<2; in msmpeg4v12_decode_mb() 164 if(s->msmpeg4_version==1 || (cbp in msmpeg4v12_decode_mb() 211 int cbp, code, i; msmpeg4v34_decode_mb() local [all...] |
H A D | wmv2dec.c | 323 "per_mb_abt:%d abt_type:%d cbp:%d ii:%d\n", in ff_wmv2_decode_secondary_picture_header() 408 int n, int cbp) in wmv2_decode_inter_block() 414 if (!cbp) { in wmv2_decode_inter_block() 452 int cbp, code, i, ret; in ff_wmv2_decode_mb() local 479 cbp = code & 0x3f; in ff_wmv2_decode_mb() 486 cbp = 0; in ff_wmv2_decode_mb() 494 cbp |= val << (5 - i); in ff_wmv2_decode_mb() 502 if (cbp) { in ff_wmv2_decode_mb() 525 if ((ret = wmv2_decode_inter_block(w, block[i], i, (cbp >> (5 - i)) & 1)) < 0) { in ff_wmv2_decode_mb() 534 ff_dlog(s->avctx, "%d%d ", s->inter_intra_pred, cbp); in ff_wmv2_decode_mb() 407 wmv2_decode_inter_block(WMV2DecContext *w, int16_t *block, int n, int cbp) wmv2_decode_inter_block() argument [all...] |
H A D | mpeg12enc.c | 789 int i, cbp; in mpeg1_encode_mb_internal() local 794 /* compute cbp */ in mpeg1_encode_mb_internal() 795 cbp = 0; in mpeg1_encode_mb_internal() 798 cbp |= 1 << (mb_block_count - 1 - i); in mpeg1_encode_mb_internal() 800 if (cbp == 0 && !first_mb && s->mv_type == MV_TYPE_16X16 && in mpeg1_encode_mb_internal() 831 if (s->dquant && cbp) { in mpeg1_encode_mb_internal() 843 if (s->dquant && cbp) { in mpeg1_encode_mb_internal() 855 if (cbp != 0) { in mpeg1_encode_mb_internal() 868 put_mb_modes(s, 5, 2, 1, 0); /* motion + cbp */ in mpeg1_encode_mb_internal() 871 put_mb_modes(s, 1, 1, 1, 0); /* motion + cbp */ in mpeg1_encode_mb_internal() [all...] |
H A D | hq_hqa.c | 183 int i, ret, cbp; in hqa_decode_mb() local 188 cbp = get_vlc2(gb, c->hqa_cbp_vlc.table, 5, 1); in hqa_decode_mb() 195 if (cbp) { in hqa_decode_mb() 198 cbp |= cbp << 4; in hqa_decode_mb() 199 if (cbp & 0x3) in hqa_decode_mb() 200 cbp |= 0x500; in hqa_decode_mb() 201 if (cbp & 0xC) in hqa_decode_mb() 202 cbp |= 0xA00; in hqa_decode_mb() 204 if (!(cbp in hqa_decode_mb() [all...] |
H A D | rv34.c | 141 &intra_vlcs[i].cbp[j][k], rv34_cbp_code, &offset); in rv34_init_tables() 157 &inter_vlcs[i].cbp[0][j], rv34_cbp_code, &offset); in rv34_init_tables() 184 int pattern, code, cbp=0; in rv34_decode_cbp() local 199 cbp |= get_vlc2(gb, vlc->cbp[table][ones].table, vlc->cbp[table][ones].bits, 1) << curshift[0]; in rv34_decode_cbp() 205 cbp |= cbp_masks[get_bits1(gb)] << i; in rv34_decode_cbp() 207 cbp |= cbp_masks[2] << i; in rv34_decode_cbp() 209 return cbp; in rv34_decode_cbp() 1026 static void rv34_output_i16x16(RV34DecContext *r, int8_t *intra_types, int cbp) in rv34_output_i16x16() argument 1089 rv34_output_intra(RV34DecContext *r, int8_t *intra_types, int cbp) rv34_output_intra() argument 1202 int cbp, cbp2; rv34_decode_inter_macroblock() local 1306 int cbp, dist; rv34_decode_intra_macroblock() local [all...] |
H A D | h264_cabac.c | 1414 int cbp_b, cbp_a, ctx, cbp = 0; in decode_cabac_mb_cbp_luma() local 1420 cbp += get_cabac_noinline(&sl->cabac, &sl->cabac_state[73 + ctx]); in decode_cabac_mb_cbp_luma() 1421 ctx = !(cbp & 0x01) + 2 * !(cbp_b & 0x08); in decode_cabac_mb_cbp_luma() 1422 cbp += get_cabac_noinline(&sl->cabac, &sl->cabac_state[73 + ctx]) << 1; in decode_cabac_mb_cbp_luma() 1423 ctx = !(cbp_a & 0x08) + 2 * !(cbp & 0x01); in decode_cabac_mb_cbp_luma() 1424 cbp += get_cabac_noinline(&sl->cabac, &sl->cabac_state[73 + ctx]) << 2; in decode_cabac_mb_cbp_luma() 1425 ctx = !(cbp & 0x04) + 2 * !(cbp & 0x02); in decode_cabac_mb_cbp_luma() 1426 cbp += get_cabac_noinline(&sl->cabac, &sl->cabac_state[73 + ctx]) << 3; in decode_cabac_mb_cbp_luma() 1427 return cbp; in decode_cabac_mb_cbp_luma() 1870 decode_cabac_luma_residual(const H264Context *h, H264SliceContext *sl, const uint8_t *scan, const uint8_t *scan8x8, int pixel_shift, int mb_type, int cbp, int p) decode_cabac_luma_residual() argument 1924 int mb_type, partition_count, cbp = 0; ff_h264_decode_mb_cabac() local [all...] |
H A D | mpeg4videoenc.c | 442 int cbp = 0, i; in get_b_cbp() local 451 cbp |= 1 << (5 - i); in get_b_cbp() 455 if (cbp) { in get_b_cbp() 458 zero_score -= 4; // 2 * MV + mb_type + cbp bit in get_b_cbp() 462 cbp = 0; in get_b_cbp() 466 if (s->block_last_index[i] >= 0 && ((cbp >> (5 - i)) & 1) == 0) { in get_b_cbp() 474 cbp |= 1 << (5 - i); in get_b_cbp() 477 return cbp; in get_b_cbp() 493 int i, cbp; in ff_mpeg4_encode_mb() local 526 cbp in ff_mpeg4_encode_mb() 797 int cbp; ff_mpeg4_encode_mb() local [all...] |
H A D | vc1_block.c | 1293 int cbp; /* cbp decoding stuff */ in vc1_decode_p_mb() local 1332 cbp = 0; in vc1_decode_p_mb() 1336 cbp = get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); in vc1_decode_p_mb() 1340 cbp = 0; in vc1_decode_p_mb() 1352 val = ((cbp >> (5 - i)) & 1); in vc1_decode_p_mb() 1401 cbp = get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); in vc1_decode_p_mb() 1403 val = ((cbp >> (5 - i)) & 1); in vc1_decode_p_mb() 1510 v->cbp[s->mb_x] = block_cbp; in vc1_decode_p_mb() 1525 int cbp in vc1_decode_p_mb_intfr() local 1735 int cbp = 0; /* cbp decoding stuff */ vc1_decode_p_mb_intfi() local 1859 int cbp = 0; /* cbp decoding stuff */ vc1_decode_b_mb() local 2017 int cbp = 0; /* cbp decoding stuff */ vc1_decode_b_mb_intfi() local 2184 int cbp = 0; /* cbp decoding stuff */ vc1_decode_b_mb_intfr() local 2532 int cbp, val; vc1_decode_i_blocks() local 2657 int cbp, val; vc1_decode_i_blocks_adv() local [all...] |
H A D | ituh263enc.c | 498 int cbpc, cbpy, i, cbp, pred_x, pred_y; in ff_h263_encode_mb() local 505 /* compute cbp */ in ff_h263_encode_mb() 506 cbp= get_p_cbp(s, block, motion_x, motion_y); in ff_h263_encode_mb() 508 if ((cbp | motion_x | motion_y | s->dquant | (s->mv_type - MV_TYPE_16X16)) == 0) { in ff_h263_encode_mb() 521 cbpc = cbp & 3; in ff_h263_encode_mb() 522 cbpy = cbp >> 2; in ff_h263_encode_mb() 591 cbp = 0; in ff_h263_encode_mb() 634 cbp |= 1 << (5 - i); in ff_h263_encode_mb() 638 /* compute cbp */ in ff_h263_encode_mb() 640 cbp | in ff_h263_encode_mb() [all...] |
H A D | rv40.c | 364 int cbp[4]; in rv40_loop_filter() local 410 cbp [i] = r->cbp_luma[pos]; in rv40_loop_filter() 416 cbp [i] = 0; in rv40_loop_filter() 431 | ((cbp[POS_CUR] << 4) & ~MASK_Y_TOP_ROW) in rv40_loop_filter() 432 | ((cbp[POS_TOP] & MASK_Y_LAST_ROW) >> 12); in rv40_loop_filter() 440 | ((cbp[POS_CUR] << 1) & ~MASK_Y_LEFT_COL) in rv40_loop_filter() 441 | ((cbp[POS_LEFT] & MASK_Y_RIGHT_COL) >> 3); in rv40_loop_filter()
|
H A D | cavsdec.c | 599 if (h->cbp & (1 << 4)) { in decode_residual_chroma() 605 if (h->cbp & (1 << 5)) { in decode_residual_chroma() 619 int cbp = get_ue_golomb(&h->gb); in decode_residual_inter() local 620 if (cbp > 63U) { in decode_residual_inter() 621 av_log(h->avctx, AV_LOG_ERROR, "illegal inter cbp %d\n", cbp); in decode_residual_inter() 624 h->cbp = cbp_tab[cbp][1]; in decode_residual_inter() 627 if (h->cbp && !h->qp_fixed) in decode_residual_inter() 630 if (h->cbp in decode_residual_inter() [all...] |
H A D | h261dec.c | 304 // EOB Not possible for first level when cbp is available (that's why the table is different) in h261_decode_block() 369 int i, cbp, xy; in h261_decode_mb() local 371 cbp = 63; in h261_decode_mb() 444 // Read cbp in h261_decode_mb() 446 cbp = get_vlc2(&s->gb, h261_cbp_vlc.table, H261_CBP_VLC_BITS, 1) + 1; in h261_decode_mb() 472 if (h261_decode_block(h, s->block[i], i, cbp & 32) < 0) in h261_decode_mb() 474 cbp += cbp; in h261_decode_mb()
|
H A D | svq3.c | 110 int cbp; member 694 if (s->cbp & 0x30) { in hl_decode_mb() 714 int cbp = 0; in svq3_decode_mb() local 904 cbp = ff_h264_i_mb_type_info[mb_type - 8].cbp; in svq3_decode_mb() 932 cbp = IS_INTRA(mb_type) ? ff_h264_golomb_to_intra4x4_cbp[vlc] in svq3_decode_mb() 936 (s->pict_type != AV_PICTURE_TYPE_I && s->adaptive_quant && cbp)) { in svq3_decode_mb() 954 if (cbp) { in svq3_decode_mb() 959 if ((cbp & (1 << i))) { in svq3_decode_mb() 974 if ((cbp in svq3_decode_mb() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vsrc_mptestsrc.c | 78 { "cbp", "", 0, AV_OPT_TYPE_CONST, {.i64=TEST_CBP}, INT_MIN, INT_MAX, FLAGS, "test" }, 154 static void draw_cbp(uint8_t *dst[3], int dst_linesize[3], int cbp, int amp, int dc) in draw_cbp() argument 156 if (cbp&1) draw_basis(dst[0] , dst_linesize[0], amp, 1, dc); in draw_cbp() 157 if (cbp&2) draw_basis(dst[0]+8 , dst_linesize[0], amp, 1, dc); in draw_cbp() 158 if (cbp&4) draw_basis(dst[0]+ 8*dst_linesize[0], dst_linesize[0], amp, 1, dc); in draw_cbp() 159 if (cbp&8) draw_basis(dst[0]+8+8*dst_linesize[0], dst_linesize[0], amp, 1, dc); in draw_cbp() 160 if (cbp&16) draw_basis(dst[1] , dst_linesize[1], amp, 1, dc); in draw_cbp() 161 if (cbp&32) draw_basis(dst[2] , dst_linesize[2], amp, 1, dc); in draw_cbp() 203 int x, y, cbp = 0; in cbp_test() local 212 draw_cbp(dst1, dst_linesize, cbp, (6 in cbp_test() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
H A D | httpread.c | 534 char *cbp = h->body + h->chunk_start; in httpread_read_handler() local 535 if (bbp-cbp >= 2 && bbp[-2] == '\r' && in httpread_read_handler() 541 if (!isxdigit(*cbp)) { in httpread_read_handler() 546 h->chunk_size = strtoul(cbp, NULL, 16); in httpread_read_handler() 558 bbp = cbp; in httpread_read_handler()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
H A D | httpread.c | 534 char *cbp = h->body + h->chunk_start; in httpread_read_handler() local 535 if (bbp-cbp >= 2 && bbp[-2] == '\r' && in httpread_read_handler() 541 if (!isxdigit(*cbp)) { in httpread_read_handler() 546 h->chunk_size = strtoul(cbp, NULL, 16); in httpread_read_handler() 558 bbp = cbp; in httpread_read_handler()
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_mpeg12_bitstream.c | 714 int i, cbp, blk = 0; in decode_dct() local 718 mb->coded_block_pattern = cbp = intra ? 0x3F : vl_vlc_get_vlclbf(&bs->vlc, tbl_B9, 9); in decode_dct() 728 cbp <<= 1; in decode_dct() 729 cbp &= 0x3F; in decode_dct() 733 if (!cbp) in decode_dct() 736 while(!(cbp & 0x20)) { in decode_dct() 737 cbp <<= 1; in decode_dct()
|