Home
last modified time | relevance | path

Searched refs:mb_height (Results 1 - 25 of 91) sorted by relevance

1234

/third_party/ffmpeg/libavcodec/
H A Dvc1dec.c332 int mb_height = FFALIGN(s->mb_height, 2); in ff_vc1_decode_init_alloc_tables() local
335 v->mv_type_mb_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
336 v->direct_mb_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
337 v->forward_mb_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
338 v->fieldtx_plane = av_mallocz(s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
339 v->acpred_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
340 v->over_flags_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
365 v->mb_type_base = av_malloc(s->b8_stride * (mb_height * 2 + 1) + s->mb_stride * (mb_height in ff_vc1_decode_init_alloc_tables()
635 int mb_height, n_slices1=-1; vc1_decode_frame() local
[all...]
H A Derror_resilience.c395 int mb_height = s->mb_height; in guess_mv() local
402 mb_height = FFMIN(mb_height, (s->last_pic.f->height+15)>>4); in guess_mv()
404 mb_height = FFMIN(mb_height, (s->next_pic.f->height+15)>>4); in guess_mv()
407 next_blocklist = blocklist + s->mb_stride * s->mb_height; in guess_mv()
408 fixed = (uint8_t *)(next_blocklist + s->mb_stride * s->mb_height); in guess_mv()
414 ff_thread_await_progress(s->last_pic.tf, mb_height-1, 0); in guess_mv()
415 for (i = 0; i < mb_width * mb_height; in guess_mv()
[all...]
H A Drv10enc.c54 if (s->mb_width * s->mb_height >= (1U << 12)) { in ff_rv10_encode_picture_header()
56 s->mb_width * s->mb_height); in ff_rv10_encode_picture_header()
61 put_bits(&s->pb, 12, s->mb_width * s->mb_height); in ff_rv10_encode_picture_header()
H A Dspeedhqenc.c263 static int ff_speedhq_mb_rows_in_slice(int slice_num, int mb_height) in ff_speedhq_mb_rows_in_slice() argument
265 return mb_height / 4 + (slice_num < (mb_height % 4)); in ff_speedhq_mb_rows_in_slice()
268 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
271 while (mb_y_order >= ff_speedhq_mb_rows_in_slice(slice_num, mb_height)) { in ff_speedhq_mb_y_order_to_mb()
272 mb_y_order -= ff_speedhq_mb_rows_in_slice(slice_num, mb_height); in ff_speedhq_mb_y_order_to_mb()
H A 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()
H A Ddnxhddec.c62 unsigned int mb_width, mb_height; member
299 ctx->mb_height = AV_RB16(buf + 0x16c); in dnxhd_decode_header()
301 if ((ctx->height + 15) >> 4 == ctx->mb_height && frame->interlaced_frame) in dnxhd_decode_header()
309 if (ctx->mb_height > 68 && ff_dnxhd_check_header_prefix_hr(header_prefix)) { in dnxhd_decode_header()
310 ctx->data_offset = 0x170 + (ctx->mb_height << 2); in dnxhd_decode_header()
312 if (ctx->mb_height > 68) { in dnxhd_decode_header()
314 "mb height too big: %d\n", ctx->mb_height); in dnxhd_decode_header()
319 if ((ctx->mb_height << frame->interlaced_frame) > (ctx->height + 15) >> 4) { in dnxhd_decode_header()
321 "mb height too big: %d\n", ctx->mb_height); in dnxhd_decode_header()
331 if (ctx->mb_height > FF_ARRAY_ELEM in dnxhd_decode_header()
[all...]
H A Dwmv2dec.c112 for (mb_y = 0; mb_y < s->mb_height; mb_y++) in parse_mb_skip()
118 if (get_bits_left(&s->gb) < s->mb_height * s->mb_width) in parse_mb_skip()
120 for (mb_y = 0; mb_y < s->mb_height; mb_y++) in parse_mb_skip()
126 for (mb_y = 0; mb_y < s->mb_height; mb_y++) { in parse_mb_skip()
145 for (mb_y = 0; mb_y < s->mb_height; mb_y++) in parse_mb_skip()
149 for (mb_y = 0; mb_y < s->mb_height; mb_y++) in parse_mb_skip()
157 for (mb_y = 0; mb_y < s->mb_height; mb_y++) in parse_mb_skip()
192 s->slice_height = s->mb_height / code; in decode_ext_header()
225 int run = skip_type == SKIP_TYPE_COL ? s->mb_width : s->mb_height; in ff_wmv2_decode_picture_header()
583 w->s.mb_width, w->s.mb_height); in wmv2_decode_init()
[all...]
H A Dmpegpicture.c206 int mb_stride, int mb_width, int mb_height, int b8_stride) in alloc_picture_tables()
208 const int big_mb_num = mb_stride * (mb_height + 1) + 1; in alloc_picture_tables()
209 const int mb_array_size = mb_stride * mb_height; in alloc_picture_tables()
210 const int b8_array_size = b8_stride * mb_height * 2; in alloc_picture_tables()
243 pic->alloc_mb_height = mb_height; in alloc_picture_tables()
256 int mb_stride, int mb_width, int mb_height, int b8_stride, in ff_alloc_picture()
263 || pic->alloc_mb_height != mb_height) in ff_alloc_picture()
282 mb_stride, mb_width, mb_height, b8_stride); in ff_alloc_picture()
205 alloc_picture_tables(AVCodecContext *avctx, Picture *pic, int encoding, int out_format, int mb_stride, int mb_width, int mb_height, int b8_stride) alloc_picture_tables() argument
253 ff_alloc_picture(AVCodecContext *avctx, Picture *pic, MotionEstContext *me, ScratchpadContext *sc, int shared, int encoding, int chroma_x_shift, int chroma_y_shift, int out_format, int mb_stride, int mb_width, int mb_height, int b8_stride, ptrdiff_t *linesize, ptrdiff_t *uvlinesize) ff_alloc_picture() argument
H A Dmpegvideo.c353 int y_size = s->b8_stride * (2 * s->mb_height + 1); in init_duplicate_context()
354 int c_size = s->mb_stride * (s->mb_height + 1); in init_duplicate_context()
358 if (s->mb_height & 1) in init_duplicate_context()
410 (s->mb_height * (i ) + nb_slices / 2) / nb_slices; in ff_mpv_init_duplicate_contexts()
412 (s->mb_height * (i + 1) + nb_slices / 2) / nb_slices; in ff_mpv_init_duplicate_contexts()
415 s->end_mb_y = nb_slices > 1 ? (s->mb_height + nb_slices / 2) / nb_slices in ff_mpv_init_duplicate_contexts()
416 : s->mb_height; in ff_mpv_init_duplicate_contexts()
532 mb_array_size = s->mb_height * s->mb_stride; in ff_mpv_init_context_frame()
533 mv_table_size = (s->mb_height + 2) * s->mb_stride + 1; in ff_mpv_init_context_frame()
538 s->v_edge_pos = s->mb_height * 1 in ff_mpv_init_context_frame()
[all...]
H A Dh264dec.c182 const int big_mb_num = h->mb_stride * (h->mb_height + 1); in ff_h264_alloc_tables()
205 for (y = 0; y < h->mb_height; y++) in ff_h264_alloc_tables()
215 const int er_size = h->mb_height * h->mb_stride * (4*sizeof(int) + 1); in ff_h264_alloc_tables()
216 int mb_array_size = h->mb_height * h->mb_stride; in ff_h264_alloc_tables()
217 int y_size = (2 * h->mb_width + 1) * (2 * h->mb_height + 1); in ff_h264_alloc_tables()
228 er->mb_height = h->mb_height; in ff_h264_alloc_tables()
239 for (y = 0; y < h->mb_height; y++) in ff_h264_alloc_tables()
243 er->mb_index2xy[h->mb_height * h->mb_width] = (h->mb_height in ff_h264_alloc_tables()
[all...]
H A Dintrax8.h74 int mb_width, mb_height; member
85 * @param mb_height macroblock height
92 int mb_width, int mb_height);
H A 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()
555 AV_WB16(buf + 0x16a, ctx->m.mb_height * 4 + 4); // MSIPS in dnxhd_write_header()
556 AV_WB16(buf + 0x16c, ctx->m.mb_height); // Ns in dnxhd_write_header()
760 if (mb_y + 1 == ctx->m.mb_height in dnxhd_get_blocks()
[all...]
H A Daic.c150 int mb_width, mb_height; member
316 int last_row = mb_y && mb_y == ctx->mb_height - 1; in aic_decode_slice()
399 off = FFALIGN(AIC_HDR_SIZE + ctx->num_x_slices * ctx->mb_height * 2, 4); in aic_decode_frame()
416 ctx->num_x_slices * ctx->mb_height * 2); in aic_decode_frame()
418 for (y = 0; y < ctx->mb_height; y++) { in aic_decode_frame()
462 ctx->mb_height = FFALIGN(avctx->height, 16) >> 4; in aic_decode_init()
H A Dh264_slice.c165 const int big_mb_num = h->mb_stride * (h->mb_height + 1) + 1; in init_table_pools()
166 const int mb_array_size = h->mb_stride * h->mb_height; in init_table_pools()
168 const int b4_array_size = b4_stride * h->mb_height * 4; in init_table_pools()
264 pic->mb_height = h->mb_height; in alloc_picture()
326 h->mb_height != h1->mb_height || in ff_h264_update_thread_context()
362 h->mb_height = h1->mb_height; in ff_h264_update_thread_context()
1059 h->mb_height ! in h264_init_ps()
[all...]
H A Dmpegutils.c105 int mb_width, int mb_height, int mb_stride, int quarter_sample) in ff_print_debug_info2()
117 AVMotionVector *mvs = av_malloc_array(mb_width * mb_height, 2 * 4 * sizeof(AVMotionVector)); in ff_print_debug_info2()
121 for (mb_y = 0; mb_y < mb_height; mb_y++) { in ff_print_debug_info2()
200 for (y = 0; y < mb_height; y++) { in ff_print_debug_info2()
103 ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, uint8_t *mbskip_table, uint32_t *mbtype_table, int8_t *qscale_table, int16_t (*motion_val[2])[2], int mb_width, int mb_height, int mb_stride, int quarter_sample) ff_print_debug_info2() argument
H A Dmxpegdec.c43 unsigned mb_width, mb_height; /* size of picture in MB's from MXM header */ member
97 s->mb_height = AV_RL16(buf_ptr+6); in mxpeg_decode_mxm()
98 mb_count = s->mb_width * s->mb_height; in mxpeg_decode_mxm()
162 (jpg->height + 0x0F)>>4 != s->mb_height) { in mxpeg_check_dimensions()
H A Dh264_ps.c498 sps->mb_height = get_ue_golomb(gb) + 1; in ff_h264_decode_seq_parameter_set()
502 if (sps->mb_height >= INT_MAX / 2U) { in ff_h264_decode_seq_parameter_set()
506 sps->mb_height *= 2 - sps->frame_mbs_only_flag; in ff_h264_decode_seq_parameter_set()
514 (unsigned)sps->mb_height >= INT_MAX / 16 || in ff_h264_decode_seq_parameter_set()
516 16 * sps->mb_height, 0, avctx)) { in ff_h264_decode_seq_parameter_set()
530 int height = 16 * sps->mb_height; in ff_h264_decode_seq_parameter_set()
594 sps->num_reorder_frames = FFMIN(level_max_dpb_mbs[i][1] / (sps->mb_width * sps->mb_height), in ff_h264_decode_seq_parameter_set()
611 sps->mb_width, sps->mb_height, in ff_h264_decode_seq_parameter_set()
H A Dtscc2.c45 int mb_width, mb_height; member
217 int num_mb = c->mb_width * c->mb_height; in tscc2_decode_frame()
281 for (i = 0; i < c->mb_height; i++) { in tscc2_decode_frame()
343 c->mb_height = FFALIGN(avctx->height, 8) >> 3; in tscc2_decode_init()
344 c->slice_quants = av_malloc(c->mb_width * c->mb_height); in tscc2_decode_init()
H A Dvaapi_vc1.c394 size_t size = (s->mb_width * s->mb_height + 1) / 2; in vaapi_vc1_start_frame()
429 for (y = 0; y < s->mb_height; y++) in vaapi_vc1_start_frame()
472 int mb_height; in vaapi_vc1_decode_slice() local
482 mb_height = avctx->coded_height + 31 >> 5; in vaapi_vc1_decode_slice()
484 mb_height = avctx->coded_height + 15 >> 4; in vaapi_vc1_decode_slice()
491 .slice_vertical_position = s->mb_y % mb_height, in vaapi_vc1_decode_slice()
H A Dvp8.c81 if (!(f->seg_map = av_buffer_allocz(s->mb_width * s->mb_height))) in vp8_alloc_frame()
197 if (width != s->avctx->width || ((width+15)/16 != s->mb_width || (height+15)/16 != s->mb_height) && s->macroblocks_base || in update_dimensions()
217 s->mb_height = (s->avctx->coded_height + 15) / 16; in update_dimensions()
222 s->macroblocks_base = av_mallocz((s->mb_width + s->mb_height * 2 + 1) * in update_dimensions()
226 s->macroblocks_base = av_mallocz((s->mb_width + 2) * (s->mb_height + 2) * in update_dimensions()
518 int height = s->mb_height * 16; in vp7_fade_frame()
642 (width + 15) / 16 != s->mb_width || (height + 15) / 16 != s->mb_height) { in vp7_decode_frame_header()
812 (width+15)/16 != s->mb_width || (height+15)/16 != s->mb_height) in vp8_decode_frame_header()
1048 (s->mb_height - edge_y - 1) * 2; in vp7_decode_mvs()
1986 int width = 16 * s->mb_width, height = 16 * s->mb_height; in inter_predict()
[all...]
H A Dmdec.c52 int mb_height; member
199 for (a->mb_y = 0; a->mb_y < a->mb_height; a->mb_y++) { in decode_frame()
218 a->mb_height = (avctx->coded_height + 15) / 16; in decode_init()
H A Dh261dec.c129 if (s->mb_height == 18) { // CIF in h261_decode_gob_header()
528 s->mb_height = 9; in h261_decode_picture_header()
533 s->mb_height = 18; in h261_decode_picture_header()
536 s->mb_num = s->mb_width * s->mb_height; in h261_decode_picture_header()
655 while (h->gob_number < (s->mb_height == 18 ? 12 : 5)) { in h261_decode_frame()
H A Dljpegenc.c197 const int mb_height = (avctx->height + s->vsample[0] - 1) / s->vsample[0]; in ljpeg_encode_yuv() local
200 for (mb_y = 0; mb_y < mb_height; mb_y++) { in ljpeg_encode_yuv()
222 const int mb_height = (height + s->vsample[0] - 1) / s->vsample[0]; in ljpeg_encode_frame() local
232 max_pkt_size += mb_width * mb_height * 3 * 4 in ljpeg_encode_frame()
H A Dspeedhqenc.h46 int ff_speedhq_mb_y_order_to_mb(int mb_y_order, int mb_height, int *first_in_slice);
H A Drv10.c151 mb_count = s->mb_width * s->mb_height; in rv10_decode_picture_header()
317 return s->mb_width * s->mb_height - mb_pos; in rv20_decode_picture_header()
463 s->mb_y >= s->mb_height) { in rv10_decode_packet()
468 left = s->mb_width * s->mb_height - mb_pos; in rv10_decode_packet()
474 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()

Completed in 24 milliseconds

1234