/third_party/ffmpeg/libavcodec/ |
D | ratecontrol.c | 243 const double mb_num = s->mb_num; in get_qscale() local 253 rce->mv_bits / mb_num, in get_qscale() 255 rce->i_count / mb_num, in get_qscale() 256 rce->mc_mb_var_sum / mb_num, in get_qscale() 257 rce->mb_var_sum / mb_num, in get_qscale() 566 rce->misc_bits = s->mb_num + 10; in ff_rate_control_init() 567 rce->mb_var_sum = s->mb_num * 100; in ff_rate_control_init() 625 double bits = s->rc_initial_cplx * (i / 10000.0 + 1.0) * s->mb_num; in ff_rate_control_init() 636 rce.mc_mb_var_sum = bits * s->mb_num / 100000; in ff_rate_control_init() 637 rce.mb_var_sum = s->mb_num; in ff_rate_control_init() [all …]
|
D | mpeg4videodec.c | 220 return s->mb_num; in mpeg4_is_resync() 223 int len, mb_num; in mpeg4_is_resync() local 224 int mb_num_bits = av_log2(s->mb_num - 1) + 1; in mpeg4_is_resync() 234 mb_num = get_bits(&s->gb, mb_num_bits); in mpeg4_is_resync() 235 if (!mb_num || mb_num > s->mb_num || get_bits_count(&s->gb)+6 > s->gb.size_in_bits) in mpeg4_is_resync() 236 mb_num= -1; in mpeg4_is_resync() 241 return mb_num; in mpeg4_is_resync() 520 int mb_num_bits = av_log2(s->mb_num - 1) + 1; in ff_mpeg4_decode_video_packet_header() 521 int header_extension = 0, mb_num, len; in ff_mpeg4_decode_video_packet_header() local 541 mb_num = get_bits(&s->gb, mb_num_bits); in ff_mpeg4_decode_video_packet_header() [all …]
|
D | dnxhdenc.c | 339 if (!FF_ALLOCZ_TYPED_ARRAY(ctx->mb_rc, (ctx->m.avctx->qmax + 1) * ctx->m.mb_num)) in dnxhd_init_rc() 343 if (!FF_ALLOCZ_TYPED_ARRAY(ctx->mb_cmp, ctx->m.mb_num) || in dnxhd_init_rc() 344 !FF_ALLOCZ_TYPED_ARRAY(ctx->mb_cmp_tmp, ctx->m.mb_num)) in dnxhd_init_rc() 466 ctx->m.mb_num = ctx->m.mb_height * ctx->m.mb_width; in dnxhd_encode_init() 499 !FF_ALLOCZ_TYPED_ARRAY(ctx->mb_bits, ctx->m.mb_num) || in dnxhd_encode_init() 500 !FF_ALLOCZ_TYPED_ARRAY(ctx->mb_qscale, ctx->m.mb_num)) in dnxhd_encode_init() 872 ctx->mb_rc[(qscale * ctx->m.mb_num) + mb].ssd = ssd; in dnxhd_calc_bits_thread() 873 ctx->mb_rc[(qscale * ctx->m.mb_num) + mb].bits = ac_bits + dc_bits + 12 + in dnxhd_calc_bits_thread() 1033 int i = (q*ctx->m.mb_num) + mb; in dnxhd_encode_rdo() 1101 bits += ctx->mb_rc[(qscale*ctx->m.mb_num) + (y*ctx->m.mb_width+x)].bits; in dnxhd_find_qscale() [all …]
|
D | error_resilience.c | 729 for (i = 0; i < s->mb_num; i++) { in is_intra_more_likely() 801 atomic_init(&s->error_count, 3 * s->mb_num); in ff_er_frame_start() 825 const int start_i = av_clip(startx + starty * s->mb_width, 0, s->mb_num - 1); in ff_er_add_slice() 826 const int end_i = av_clip(endx + endy * s->mb_width, 0, s->mb_num); in ff_er_add_slice() 871 if (end_i == s->mb_num) in ff_er_add_slice() 983 for (i = s->mb_num - 1; i >= 0; i--) { in ff_er_frame_end() 1005 for (i = s->mb_num - 1; i >= 0; i--) { in ff_er_frame_end() 1029 for (i = s->mb_num - 2; i >= s->mb_width + 100; i--) { in ff_er_frame_end() 1054 for (i = s->mb_num - 1; i >= 0; i--) { in ff_er_frame_end() 1079 for (i = 0; i < s->mb_num; i++) { in ff_er_frame_end() [all …]
|
D | mpeg_er.c | 109 er->mb_num = s->mb_num; in ff_mpeg_er_init()
|
D | ituh263enc.c | 255 if(s->mb_num > 1583) in ff_h263_encode_gob_header() 278 for(i=1; i<s->mb_num; i++){ in ff_clean_h263_qscales() 282 for(i=s->mb_num-2; i>=0; i--){ in ff_clean_h263_qscales() 288 for(i=1; i<s->mb_num; i++){ in ff_clean_h263_qscales() 876 if(s->mb_num-1 <= ff_mba_max[i]) break; in ff_h263_encode_mba()
|
D | error_resilience.h | 60 int mb_num; member
|
D | mpeg4videoenc.c | 233 for (i = 0; i < s->mb_num; i++) { in ff_clean_mpeg4_qscales() 238 if (2 * odd > s->mb_num) in ff_clean_mpeg4_qscales() 243 for (i = 0; i < s->mb_num; i++) { in ff_clean_mpeg4_qscales() 251 for (i = 1; i < s->mb_num; i++) { in ff_clean_mpeg4_qscales() 1363 int mb_num_bits = av_log2(s->mb_num - 1) + 1; in ff_mpeg4_encode_video_packet_header()
|
D | h264dec.c | 226 er->mb_num = h->mb_num; in ff_h264_alloc_tables() 233 if (!FF_ALLOCZ_TYPED_ARRAY(er->mb_index2xy, h->mb_num + 1) || in ff_h264_alloc_tables()
|
D | h263dec.c | 555 if (s->pict_type != AV_PICTURE_TYPE_B && s->mb_num/2 > get_bits_left(&s->gb)) in ff_h263_decode_frame() 672 s->er.error_status_table[s->mb_num - 1] = ER_MB_ERROR; in ff_h263_decode_frame()
|
D | svq3.c | 123 int mb_stride, mb_num; member 1062 i = (s->mb_num < 64) ? 6 : (1 + av_log2(s->mb_num - 1)); in svq3_decode_slice_header() 1292 s->mb_num = s->mb_width * s->mb_height; in svq3_decode_init()
|
D | mpegvideo.h | 116 int mb_num; ///< number of MBs of a picture member
|
D | ituh263dec.c | 146 if (s->mb_num - 1 <= ff_mba_max[i]) in ff_h263_decode_mba() 186 if(s->mb_num > 1583) in h263_decode_gob_header() 1315 s->mb_num = s->mb_width * s->mb_height; in ff_h263_decode_picture_header()
|
D | h264_slice.c | 364 h->mb_num = h1->mb_num; in ff_h264_update_thread_context() 1093 h->mb_num = h->mb_width * h->mb_height; in h264_init_ps() 2061 av_assert1(h->mb_num == h->mb_width * h->mb_height); in h264_slice_init() 2062 if (sl->first_mb_addr << FIELD_OR_MBAFF_PICTURE(h) >= h->mb_num || in h264_slice_init() 2063 sl->first_mb_addr >= h->mb_num) { in h264_slice_init() 2708 … const int start_i = av_clip(sl->resync_mb_x + sl->resync_mb_y * h->mb_width, 0, h->mb_num - 1); in decode_slice()
|
D | h264dec.h | 435 int mb_num; member
|
D | h261dec.c | 536 s->mb_num = s->mb_width * s->mb_height; in h261_decode_picture_header()
|
D | rv40.c | 243 if(r->s.mb_skip_run > (unsigned)s->mb_num) in rv40_decode_mb_info()
|
D | rv10.c | 144 if (show_bits(&s->gb, 12) == 0 || (mb_xy && mb_xy < s->mb_num)) { in rv10_decode_picture_header()
|
D | mpegvideo.c | 540 s->mb_num = s->mb_width * s->mb_height; in ff_mpv_init_context_frame() 556 if (!FF_ALLOCZ_TYPED_ARRAY(s->mb_index2xy, s->mb_num + 1)) in ff_mpv_init_context_frame()
|
D | h264_cavlc.c | 712 if (mb_skip_run > h->mb_num) { in ff_h264_decode_mb_cavlc()
|
D | motion_est.c | 1614 for(i=0; i<8; i++) score[i]= s->mb_num*(8-i); in ff_get_best_fcode()
|
D | mpegvideo_enc.c | 241 for (i = 0; i < s->mb_num; i++) { in ff_init_qscale_tab() 1428 s->mb_num / s->b_sensitivity) in select_input_picture()
|
D | snowenc.c | 79 s->m.mb_num = (avctx->width * avctx->height + 255) / 256; // For ratecontrol in encode_init()
|