Home
last modified time | relevance | path

Searched refs:mb_height (Results 1 – 25 of 99) sorted by relevance

1234

/third_party/ffmpeg/libavcodec/
Dvc1dec.c328 int mb_height = FFALIGN(s->mb_height, 2); in ff_vc1_decode_init_alloc_tables() local
331 v->mv_type_mb_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
332 v->direct_mb_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
333 v->forward_mb_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
334 v->fieldtx_plane = av_mallocz(s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
335 v->acpred_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
336 v->over_flags_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
361 …v->mb_type_base = av_malloc(s->b8_stride * (mb_height * 2 + 1) + s->mb_stride * (mb_height + 1) * … in ff_vc1_decode_init_alloc_tables()
365 v->mb_type[1] = v->mb_type_base + s->b8_stride * (mb_height * 2 + 1) + s->mb_stride + 1; in ff_vc1_decode_init_alloc_tables()
366 v->mb_type[2] = v->mb_type[1] + s->mb_stride * (mb_height + 1); in ff_vc1_decode_init_alloc_tables()
[all …]
Derror_resilience.c396 int mb_height = s->mb_height; in guess_mv() local
403 mb_height = FFMIN(mb_height, (s->last_pic.f->height+15)>>4); in guess_mv()
405 mb_height = FFMIN(mb_height, (s->next_pic.f->height+15)>>4); in guess_mv()
408 next_blocklist = blocklist + s->mb_stride * s->mb_height; in guess_mv()
409 fixed = (uint8_t *)(next_blocklist + s->mb_stride * s->mb_height); in guess_mv()
415 ff_thread_await_progress(s->last_pic.tf, mb_height-1, 0); in guess_mv()
416 for (i = 0; i < mb_width * mb_height; i++) { in guess_mv()
440 num_avail <= FFMAX(mb_width, mb_height) / 2) { in guess_mv()
441 for (mb_y = 0; mb_y < mb_height; mb_y++) { in guess_mv()
461 for (mb_y = 0; mb_y < mb_height; mb_y++) { in guess_mv()
[all …]
Drv10enc.c52 if (s->mb_width * s->mb_height >= (1U << 12)) { in ff_rv10_encode_picture_header()
54 s->mb_width * s->mb_height); in ff_rv10_encode_picture_header()
59 put_bits(&s->pb, 12, s->mb_width * s->mb_height); in ff_rv10_encode_picture_header()
Dspeedhqenc.c268 static int ff_speedhq_mb_rows_in_slice(int slice_num, int mb_height) in ff_speedhq_mb_rows_in_slice() argument
270 return mb_height / 4 + (slice_num < (mb_height % 4)); in ff_speedhq_mb_rows_in_slice()
273 int ff_speedhq_mb_y_order_to_mb(int mb_y_order, int mb_height, int *first_in_slice) in ff_speedhq_mb_y_order_to_mb() argument
276 while (mb_y_order >= ff_speedhq_mb_rows_in_slice(slice_num, mb_height)) { in ff_speedhq_mb_y_order_to_mb()
277 mb_y_order -= ff_speedhq_mb_rows_in_slice(slice_num, mb_height); in ff_speedhq_mb_y_order_to_mb()
Dwmv2dec.c43 for (mb_y = 0; mb_y < s->mb_height; mb_y++) in parse_mb_skip()
49 if (get_bits_left(&s->gb) < s->mb_height * s->mb_width) in parse_mb_skip()
51 for (mb_y = 0; mb_y < s->mb_height; mb_y++) in parse_mb_skip()
57 for (mb_y = 0; mb_y < s->mb_height; mb_y++) { in parse_mb_skip()
76 for (mb_y = 0; mb_y < s->mb_height; mb_y++) in parse_mb_skip()
80 for (mb_y = 0; mb_y < s->mb_height; mb_y++) in parse_mb_skip()
88 for (mb_y = 0; mb_y < s->mb_height; mb_y++) in parse_mb_skip()
123 s->slice_height = s->mb_height / code; in decode_ext_header()
156 int run = skip_type == SKIP_TYPE_COL ? s->mb_width : s->mb_height; in ff_wmv2_decode_picture_header()
505 w->s.mb_width, w->s.mb_height); in wmv2_decode_init()
Dmpeg_er.c103 int mb_array_size = s->mb_height * s->mb_stride; in ff_mpeg_er_init()
111 er->mb_height = s->mb_height; in ff_mpeg_er_init()
115 er->er_temp_buffer = av_malloc(s->mb_height * s->mb_stride * (4*sizeof(int) + 1)); in ff_mpeg_er_init()
Dmpegpicture.c185 int mb_stride, int mb_width, int mb_height, int b8_stride) in alloc_picture_tables() argument
187 const int big_mb_num = mb_stride * (mb_height + 1) + 1; in alloc_picture_tables()
188 const int mb_array_size = mb_stride * mb_height; in alloc_picture_tables()
189 const int b8_array_size = b8_stride * mb_height * 2; in alloc_picture_tables()
222 pic->alloc_mb_height = mb_height; in alloc_picture_tables()
235 int mb_stride, int mb_width, int mb_height, int b8_stride, in ff_alloc_picture() argument
242 || pic->alloc_mb_height != mb_height) in ff_alloc_picture()
261 mb_stride, mb_width, mb_height, b8_stride); in ff_alloc_picture()
Ddnxhddec.c61 unsigned int mb_width, mb_height; member
298 ctx->mb_height = AV_RB16(buf + 0x16c); in dnxhd_decode_header()
300 if ((ctx->height + 15) >> 4 == ctx->mb_height && frame->interlaced_frame) in dnxhd_decode_header()
308 if (ctx->mb_height > 68 && ff_dnxhd_check_header_prefix_hr(header_prefix)) { in dnxhd_decode_header()
309 ctx->data_offset = 0x170 + (ctx->mb_height << 2); in dnxhd_decode_header()
311 if (ctx->mb_height > 68) { in dnxhd_decode_header()
313 "mb height too big: %d\n", ctx->mb_height); in dnxhd_decode_header()
318 if ((ctx->mb_height << frame->interlaced_frame) > (ctx->height + 15) >> 4) { in dnxhd_decode_header()
320 "mb height too big: %d\n", ctx->mb_height); in dnxhd_decode_header()
330 if (ctx->mb_height > FF_ARRAY_ELEMS(ctx->mb_scan_index)) { in dnxhd_decode_header()
[all …]
Dh264dec.c183 const int big_mb_num = h->mb_stride * (h->mb_height + 1); in ff_h264_alloc_tables()
206 for (y = 0; y < h->mb_height; y++) in ff_h264_alloc_tables()
225 int mb_array_size = h->mb_height * h->mb_stride; in ff_h264_slice_context_init()
226 int y_size = (2 * h->mb_width + 1) * (2 * h->mb_height + 1); in ff_h264_slice_context_init()
227 int c_size = h->mb_stride * (h->mb_height + 1); in ff_h264_slice_context_init()
241 const int er_size = h->mb_height * h->mb_stride * (4*sizeof(int) + 1); in ff_h264_slice_context_init()
251 er->mb_height = h->mb_height; in ff_h264_slice_context_init()
262 for (y = 0; y < h->mb_height; y++) in ff_h264_slice_context_init()
266 er->mb_index2xy[h->mb_height * h->mb_width] = (h->mb_height - 1) * in ff_h264_slice_context_init()
793 unsigned int nb_mb = p->mb_height * p->mb_width; in h264_export_enc_params()
[all …]
Dintrax8.h74 int mb_width, mb_height; member
92 int mb_width, int mb_height);
Daic.c150 int mb_width, mb_height; member
316 int last_row = mb_y && mb_y == ctx->mb_height - 1; in aic_decode_slice()
400 off = FFALIGN(AIC_HDR_SIZE + ctx->num_x_slices * ctx->mb_height * 2, 4); in aic_decode_frame()
417 ctx->num_x_slices * ctx->mb_height * 2); in aic_decode_frame()
419 for (y = 0; y < ctx->mb_height; y++) { in aic_decode_frame()
463 ctx->mb_height = FFALIGN(avctx->height, 16) >> 4; in aic_decode_init()
Dmpegvideo.c355 s->mb_stride, s->mb_width, s->mb_height, s->b8_stride, in alloc_picture()
361 int y_size = s->b8_stride * (2 * s->mb_height + 1); in init_duplicate_context()
362 int c_size = s->mb_stride * (s->mb_height + 1); in init_duplicate_context()
366 if (s->mb_height & 1) in init_duplicate_context()
428 (s->mb_height * (i ) + nb_slices / 2) / nb_slices; in init_duplicate_contexts()
430 (s->mb_height * (i + 1) + nb_slices / 2) / nb_slices; in init_duplicate_contexts()
433 s->end_mb_y = nb_slices > 1 ? (s->mb_height + nb_slices / 2) / nb_slices in init_duplicate_contexts()
434 : s->mb_height; in init_duplicate_contexts()
723 mb_array_size = s->mb_height * s->mb_stride; in init_context_frame()
724 mv_table_size = (s->mb_height + 2) * s->mb_stride + 1; in init_context_frame()
[all …]
Ddnxhdenc.c452 ctx->m.mb_height = (avctx->height + 15) / 16; in dnxhd_encode_init()
457 ctx->m.mb_height /= 2; in dnxhd_encode_init()
466 ctx->m.mb_num = ctx->m.mb_height * ctx->m.mb_width; in dnxhd_encode_init()
478 if (ctx->m.mb_height > 68) in dnxhd_encode_init()
479 ctx->data_offset = 0x170 + (ctx->m.mb_height << 2); in dnxhd_encode_init()
497 if (!FF_ALLOCZ_TYPED_ARRAY(ctx->slice_size, ctx->m.mb_height) || in dnxhd_encode_init()
498 !FF_ALLOCZ_TYPED_ARRAY(ctx->slice_offs, ctx->m.mb_height) || in dnxhd_encode_init()
562 AV_WB16(buf + 0x16a, ctx->m.mb_height * 4 + 4); // MSIPS in dnxhd_write_header()
563 AV_WB16(buf + 0x16c, ctx->m.mb_height); // Ns in dnxhd_write_header()
767 if (mb_y + 1 == ctx->m.mb_height && ctx->m.avctx->height == 1080) { in dnxhd_get_blocks()
[all …]
Dtscc2.c44 int mb_width, mb_height; member
216 int num_mb = c->mb_width * c->mb_height; in tscc2_decode_frame()
280 for (i = 0; i < c->mb_height; i++) { in tscc2_decode_frame()
342 c->mb_height = FFALIGN(avctx->height, 8) >> 3; in tscc2_decode_init()
343 c->slice_quants = av_malloc(c->mb_width * c->mb_height); in tscc2_decode_init()
Dmpegutils.c106 int mb_width, int mb_height, int mb_stride, int quarter_sample) in ff_print_debug_info2() argument
118 AVMotionVector *mvs = av_malloc_array(mb_width * mb_height, 2 * 4 * sizeof(AVMotionVector)); in ff_print_debug_info2()
122 for (mb_y = 0; mb_y < mb_height; mb_y++) { in ff_print_debug_info2()
201 for (y = 0; y < mb_height; y++) { in ff_print_debug_info2()
Dmxpegdec.c42 unsigned mb_width, mb_height; /* size of picture in MB's from MXM header */ member
96 s->mb_height = AV_RL16(buf_ptr+6); in mxpeg_decode_mxm()
97 mb_count = s->mb_width * s->mb_height; in mxpeg_decode_mxm()
161 (jpg->height + 0x0F)>>4 != s->mb_height) { in mxpeg_check_dimensions()
Dh264_slice.c162 const int big_mb_num = h->mb_stride * (h->mb_height + 1) + 1; in init_table_pools()
163 const int mb_array_size = h->mb_stride * h->mb_height; in init_table_pools()
165 const int b4_array_size = b4_stride * h->mb_height * 4; in init_table_pools()
252 pic->mb_height = h->mb_height; in alloc_picture()
314 h->mb_height != h1->mb_height || in ff_h264_update_thread_context()
350 h->mb_height = h1->mb_height; in ff_h264_update_thread_context()
1037 h->mb_height != h->ps.sps->mb_height || in h264_init_ps()
1051 || 16*sps->mb_height != h->avctx->coded_height in h264_init_ps()
1055 || h->mb_height != sps->mb_height in h264_init_ps()
1070 h->mb_height = sps->mb_height; in h264_init_ps()
[all …]
Dvaapi_vc1.c392 size_t size = (s->mb_width * s->mb_height + 1) / 2; in vaapi_vc1_start_frame()
427 for (y = 0; y < s->mb_height; y++) in vaapi_vc1_start_frame()
470 int mb_height; in vaapi_vc1_decode_slice() local
480 mb_height = avctx->coded_height + 31 >> 5; in vaapi_vc1_decode_slice()
482 mb_height = avctx->coded_height + 15 >> 4; in vaapi_vc1_decode_slice()
489 .slice_vertical_position = s->mb_y % mb_height, in vaapi_vc1_decode_slice()
Dljpegenc.c203 const int mb_height = (avctx->height + s->vsample[0] - 1) / s->vsample[0]; in ljpeg_encode_yuv() local
213 for (mb_y = 0; mb_y < mb_height; mb_y++) { in ljpeg_encode_yuv()
235 const int mb_height = (height + s->vsample[0] - 1) / s->vsample[0]; in ljpeg_encode_frame() local
245 max_pkt_size += mb_width * mb_height * 3 * 4 in ljpeg_encode_frame()
Dh264_ps.c495 sps->mb_height = get_ue_golomb(gb) + 1; in ff_h264_decode_seq_parameter_set()
499 if (sps->mb_height >= INT_MAX / 2U) { in ff_h264_decode_seq_parameter_set()
503 sps->mb_height *= 2 - sps->frame_mbs_only_flag; in ff_h264_decode_seq_parameter_set()
511 (unsigned)sps->mb_height >= INT_MAX / 16 || in ff_h264_decode_seq_parameter_set()
513 16 * sps->mb_height, 0, avctx)) { in ff_h264_decode_seq_parameter_set()
532 int height = 16 * sps->mb_height; in ff_h264_decode_seq_parameter_set()
596 … sps->num_reorder_frames = FFMIN(level_max_dpb_mbs[i][1] / (sps->mb_width * sps->mb_height), in ff_h264_decode_seq_parameter_set()
613 sps->mb_width, sps->mb_height, in ff_h264_decode_seq_parameter_set()
Dmdec.c51 int mb_height; member
200 for (a->mb_y = 0; a->mb_y < a->mb_height; a->mb_y++) { in decode_frame()
219 a->mb_height = (avctx->coded_height + 15) / 16; in decode_init()
Dproresenc_anatoliy.c661 int mb_y, sl_data_size, qp, mb_height, picture_height, unsafe_mb_height_limit; in prores_encode_picture() local
667 mb_height = (avctx->height + 15) >> 4; in prores_encode_picture()
668 unsafe_mb_height_limit = mb_height; in prores_encode_picture()
675 mb_height = (picture_height + 15) >> 4; in prores_encode_picture()
676 unsafe_mb_height_limit = mb_height; in prores_encode_picture()
687 sl_data = sl_data_sizes + (slice_per_line * mb_height * 2); in prores_encode_picture()
688 for (mb_y = 0; mb_y < mb_height; mb_y++) { in prores_encode_picture()
713 AV_WB16(buf + 5, slice_per_line * mb_height); /* picture size */ in prores_encode_picture()
Drv10.c148 mb_count = s->mb_width * s->mb_height; in rv10_decode_picture_header()
316 return s->mb_width * s->mb_height - mb_pos; in rv20_decode_picture_header()
462 s->mb_y >= s->mb_height) { in rv10_decode_packet()
467 left = s->mb_width * s->mb_height - mb_pos; in rv10_decode_packet()
473 if (whole_size < s->mb_width * s->mb_height / 8) in rv10_decode_packet()
657 if (s->current_picture_ptr && s->mb_y >= s->mb_height) { in rv10_decode_frame()
/third_party/openh264/codec/processing/src/vaacalc/
Dvaacalcfuncs.cpp43 int32_t mb_height = (iPicHeight >> 4); in VAACalcSadSsd_c() local
49 for (int32_t i = 0; i < mb_height; i ++) { in VAACalcSadSsd_c()
155 int32_t mb_height = (iPicHeight >> 4); in VAACalcSadVar_c() local
161 for (int32_t i = 0; i < mb_height; i ++) { in VAACalcSadVar_c()
260 int32_t mb_height = (iPicHeight >> 4); in VAACalcSad_c() local
266 for (int32_t i = 0; i < mb_height; i ++) { in VAACalcSad_c()
347 int32_t mb_height = (iPicHeight >> 4); in VAACalcSadSsdBgd_c() local
353 for (int32_t i = 0; i < mb_height; i ++) { in VAACalcSadSsdBgd_c()
492 int32_t mb_height = (iPicHeight >> 4); in VAACalcSadBgd_c() local
498 for (int32_t i = 0; i < mb_height; i ++) { in VAACalcSadBgd_c()
/third_party/openh264/test/processing/
DProcessUT_VaaCalc.cpp17 int32_t mb_height = (iPicHeight >> 4); in VAACalcSadSsd_ref() local
23 for (int32_t i = 0; i < mb_height; i ++) { in VAACalcSadSsd_ref()
129 int32_t mb_height = (iPicHeight >> 4); in VAACalcSadVar_ref() local
135 for (int32_t i = 0; i < mb_height; i ++) { in VAACalcSadVar_ref()
233 int32_t mb_height = (iPicHeight >> 4); in VAACalcSad_ref() local
239 for (int32_t i = 0; i < mb_height; i ++) { in VAACalcSad_ref()
318 int32_t mb_height = (iPicHeight >> 4); in VAACalcSadSsdBgd_ref() local
324 for (int32_t i = 0; i < mb_height; i ++) { in VAACalcSadSsdBgd_ref()
463 int32_t mb_height = (iPicHeight >> 4); in VAACalcSadBgd_ref() local
469 for (int32_t i = 0; i < mb_height; i ++) { in VAACalcSadBgd_ref()

1234