Lines Matching defs:mb_count
326 static void calc_plane_dct(FDCTDSPContext *fdsp, uint8_t *src, int16_t * blocks, int src_stride, int mb_count, int chroma, int is_422)
334 for (i = 0; i < mb_count; i++) {
344 for (i = 0; i < mb_count; i++) {
351 for (i = 0; i < mb_count; i++) {
363 static int encode_slice_plane(int16_t *blocks, int mb_count, uint8_t *buf, unsigned buf_size, int *qmat, int sub_sample_chroma,
369 blocks_per_slice = mb_count << (2 - sub_sample_chroma);
381 unsigned mb_count, uint8_t *buf, unsigned data_size,
387 *y_data_size = encode_slice_plane(blocks_y, mb_count,
391 *u_data_size = encode_slice_plane(blocks_u, mb_count, buf + *y_data_size, data_size - *y_data_size,
394 *v_data_size = encode_slice_plane(blocks_v, mb_count, buf + *y_data_size + *u_data_size,
436 unsigned mb_count, uint8_t *buf, unsigned data_size, unsigned* a_data_size)
440 const int num_coeffs = mb_count * 256;
540 int mb_y, unsigned mb_count, uint8_t *buf, unsigned data_size,
550 int tgt_bits = (mb_count * bitrate_table[avctx->profile]) >> 2;
582 (uint16_t *) ctx->fill_y, mb_count << 4, 16, is_interlaced, is_top_field);
585 (uint16_t *) ctx->fill_u, mb_count << (4 - ctx->is_422), 16, is_interlaced, is_top_field);
588 (uint16_t *) ctx->fill_v, mb_count << (4 - ctx->is_422), 16, is_interlaced, is_top_field);
591 calc_plane_dct(fdsp, ctx->fill_y, blocks_y, mb_count << 5, mb_count, 0, 0);
592 calc_plane_dct(fdsp, ctx->fill_u, blocks_u, mb_count << (5 - ctx->is_422), mb_count, 1, ctx->is_422);
593 calc_plane_dct(fdsp, ctx->fill_v, blocks_v, mb_count << (5 - ctx->is_422), mb_count, 1, ctx->is_422);
596 mb_count, buf + hdr_size, data_size - hdr_size,
601 calc_plane_dct(fdsp, dest_y, blocks_y, luma_stride, mb_count, 0, 0);
602 calc_plane_dct(fdsp, dest_u, blocks_u, chroma_stride, mb_count, 1, ctx->is_422);
603 calc_plane_dct(fdsp, dest_v, blocks_v, chroma_stride, mb_count, 1, ctx->is_422);
605 calc_plane_dct(fdsp, dest_y, blocks_y, luma_stride * 2, mb_count, 0, 0);
606 calc_plane_dct(fdsp, dest_u, blocks_u, chroma_stride * 2, mb_count, 1, ctx->is_422);
607 calc_plane_dct(fdsp, dest_v, blocks_v, chroma_stride * 2, mb_count, 1, ctx->is_422);
611 mb_count, buf + hdr_size, data_size - hdr_size,
619 mb_count, buf + hdr_size, data_size - hdr_size,
628 mb_count, buf + hdr_size, data_size - hdr_size,
645 (uint16_t *) ctx->fill_a, mb_count << 4, 16, is_interlaced, is_top_field);
646 ret = encode_alpha_slice_data(avctx, ctx->fill_a, mb_count,