/third_party/ffmpeg/libavcodec/ |
D | vc1_loopfilter.c | 110 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in ff_vc1_i_overlap_filter() 127 if (s->mb_x == 0 && (i & 5) != 1) in ff_vc1_i_overlap_filter() 135 s->mb_x ? left_blk : cur_blk, cur_blk, in ff_vc1_i_overlap_filter() 136 v->fcm == ILACE_FRAME && s->mb_x && v->fieldtx_plane[mb_pos - 1], in ff_vc1_i_overlap_filter() 146 if (s->mb_x && in ff_vc1_i_overlap_filter() 152 if (s->mb_x == s->mb_width - 1 && in ff_vc1_i_overlap_filter() 166 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in ff_vc1_p_overlap_filter() 175 if (s->mb_x == 0 && (i & 5) != 1) in ff_vc1_p_overlap_filter() 180 s->mb_x ? left_blk : cur_blk, cur_blk, in ff_vc1_p_overlap_filter() 181 v->fcm == ILACE_FRAME && s->mb_x && v->fieldtx_plane[mb_pos - 1], in ff_vc1_p_overlap_filter() [all …]
|
D | wmv2dec.c | 35 int mb_x, mb_y; in parse_mb_skip() local 44 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 45 mb_type[mb_y * s->mb_stride + mb_x] = in parse_mb_skip() 52 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 53 mb_type[mb_y * s->mb_stride + mb_x] = in parse_mb_skip() 61 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 62 mb_type[mb_y * s->mb_stride + mb_x] = in parse_mb_skip() 65 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 66 mb_type[mb_y * s->mb_stride + mb_x] = in parse_mb_skip() 72 for (mb_x = 0; mb_x < s->mb_width; mb_x++) { in parse_mb_skip() [all …]
|
D | error_resilience.c | 60 uint8_t *dest_cr, int mb_x, int mb_y) in put_dc() argument 65 dc = s->dc_val[0][mb_x * 2 + (i & 1) + (mb_y * 2 + (i >> 1)) * s->b8_stride]; in put_dc() 76 dcu = s->dc_val[1][mb_x + mb_y * s->mb_stride]; in put_dc() 77 dcv = s->dc_val[2][mb_x + mb_y * s->mb_stride]; in put_dc() 381 …blocklist(int (*blocklist)[2], int *blocklist_length, uint8_t *fixed, int mb_x, int mb_y, int mb_x… in add_blocklist() argument 386 blocklist[ *blocklist_length ][0] = mb_x; in add_blocklist() 398 int mb_x, mb_y; in guess_mv() local 431 const int mb_x= mb_xy % s->mb_stride; in guess_mv() local 432 const int mot_index= (mb_x + mb_y*mot_stride) * mot_step; in guess_mv() 442 for (mb_x = 0; mb_x < s->mb_width; mb_x++) { in guess_mv() [all …]
|
D | rv30.c | 154 int mb_pos, mb_x; in rv30_loop_filter() local 160 for(mb_x = 0; mb_x < s->mb_width; mb_x++, mb_pos++){ in rv30_loop_filter() 172 for(mb_x = 0; mb_x < s->mb_width; mb_x++, mb_pos++){ in rv30_loop_filter() 174 if(mb_x) in rv30_loop_filter() 177 … Y = s->current_picture_ptr->f->data[0] + mb_x*16 + (row*16 + j) * s->linesize + 4 * !mb_x; in rv30_loop_filter() 178 for(i = !mb_x; i < 4; i++, Y += 4){ in rv30_loop_filter() 194 if(mb_x) in rv30_loop_filter() 197 … C = s->current_picture_ptr->f->data[k + 1] + mb_x*8 + (row*8 + j) * s->uvlinesize + 4 * !mb_x; in rv30_loop_filter() 198 for(i = !mb_x; i < 2; i++, C += 4){ in rv30_loop_filter() 214 for(mb_x = 0; mb_x < s->mb_width; mb_x++, mb_pos++){ in rv30_loop_filter() [all …]
|
D | mjpegdec.c | 1067 int i, mb_x, mb_y; in ljpeg_decode_rgb_scan() local 1120 for (mb_x = 0; mb_x < width; mb_x++) { in ljpeg_decode_rgb_scan() 1130 resync_mb_x = mb_x; in ljpeg_decode_rgb_scan() 1135 if (mb_y == resync_mb_y || mb_y == resync_mb_y+1 && mb_x < resync_mb_x || !mb_x) in ljpeg_decode_rgb_scan() 1142 top[i] = buffer[mb_x][i]; in ljpeg_decode_rgb_scan() 1148 if (!s->bayer || mb_x) { in ljpeg_decode_rgb_scan() 1157 left[i] = buffer[mb_x][i] = in ljpeg_decode_rgb_scan() 1167 for (mb_x = 0; mb_x < s->mb_width; mb_x++) { in ljpeg_decode_rgb_scan() 1168 … ptr[4*mb_x + 2] = buffer[mb_x][0] - ((buffer[mb_x][1] + buffer[mb_x][2] - 0x200) >> 2); in ljpeg_decode_rgb_scan() 1169 ptr[4*mb_x + 1] = buffer[mb_x][1] + ptr[4*mb_x + 2]; in ljpeg_decode_rgb_scan() [all …]
|
D | mpegutils.c | 114 int mb_x, mb_y, mbcount = 0; in ff_print_debug_info2() local 123 for (mb_x = 0; mb_x < mb_width; mb_x++) { in ff_print_debug_info2() 124 int i, direction, mb_type = mbtype_table[mb_x + mb_y * mb_stride]; in ff_print_debug_info2() 130 int sx = mb_x * 16 + 4 + 8 * (i & 1); in ff_print_debug_info2() 132 int xy = (mb_x * 2 + (i & 1) + in ff_print_debug_info2() 140 int sx = mb_x * 16 + 8; in ff_print_debug_info2() 142 … int xy = (mb_x * 2 + (mb_y * 2 + i) * mv_stride) << (mv_sample_log2 - 1); in ff_print_debug_info2() 153 int sx = mb_x * 16 + 4 + 8 * i; in ff_print_debug_info2() 155 int xy = (mb_x * 2 + i + mb_y * 2 * mv_stride) << (mv_sample_log2 - 1); in ff_print_debug_info2() 165 int sx = mb_x * 16 + 8; in ff_print_debug_info2() [all …]
|
D | asvdec.c | 194 static inline void idct_put(ASV1Context *a, AVFrame *frame, int mb_x, int mb_y) in idct_put() argument 199 uint8_t *dest_y = frame->data[0] + (mb_y * 16 * linesize) + mb_x * 16; in idct_put() 200 uint8_t *dest_cb = frame->data[1] + (mb_y * 8 * frame->linesize[1]) + mb_x * 8; in idct_put() 201 uint8_t *dest_cr = frame->data[2] + (mb_y * 8 * frame->linesize[2]) + mb_x * 8; in idct_put() 221 int mb_x, mb_y, ret; in decode_frame() local 247 for (mb_x = 0; mb_x < a->mb_width2; mb_x++) { in decode_frame() 251 idct_put(a, p, mb_x, mb_y); in decode_frame() 256 mb_x = a->mb_width2; in decode_frame() 261 idct_put(a, p, mb_x, mb_y); in decode_frame() 267 for (mb_x = 0; mb_x < a->mb_width; mb_x++) { in decode_frame() [all …]
|
D | eamad.c | 62 int mb_x; member 95 int mb_x, int mb_y, in comp_block() argument 99 …unsigned offset = (mb_y*16 + ((j&2)<<2) + mv_y)*t->last_frame->linesize[0] + mb_x*16 + ((j&1)<<3) … in comp_block() 102 comp(frame->data[0] + (mb_y*16 + ((j&2)<<2))*frame->linesize[0] + mb_x*16 + ((j&1)<<3), in comp_block() 108 … unsigned offset = (mb_y * 8 + (mv_y/2))*t->last_frame->linesize[index] + mb_x * 8 + (mv_x/2); in comp_block() 111 comp(frame->data[index] + (mb_y*8)*frame->linesize[index] + mb_x * 8, in comp_block() 119 int mb_x, int mb_y, int j) in idct_put() argument 123 frame->data[0] + (mb_y*16 + ((j&2)<<2))*frame->linesize[0] + mb_x*16 + ((j&1)<<3), in idct_put() 128 frame->data[index] + (mb_y*8)*frame->linesize[index] + mb_x*8, in idct_put() 158 "ac-tex damaged at %d %d\n", s->mb_x, s->mb_y); in decode_block_intra() [all …]
|
D | asvenc.c | 184 int mb_x, int mb_y) in dct_get() argument 190 uint8_t *ptr_y = frame->data[0] + (mb_y * 16 * linesize) + mb_x * 16; in dct_get() 191 uint8_t *ptr_cb = frame->data[1] + (mb_y * 8 * frame->linesize[1]) + mb_x * 8; in dct_get() 192 uint8_t *ptr_cr = frame->data[2] + (mb_y * 8 * frame->linesize[2]) + mb_x * 8; in dct_get() 214 int mb_x, mb_y; in encode_frame() local 265 for (mb_x = 0; mb_x < a->mb_width2; mb_x++) { in encode_frame() 266 dct_get(a, pict, mb_x, mb_y); in encode_frame() 272 mb_x = a->mb_width2; in encode_frame() 274 dct_get(a, pict, mb_x, mb_y); in encode_frame() 281 for (mb_x = 0; mb_x < a->mb_width; mb_x++) { in encode_frame() [all …]
|
D | h263.c | 55 const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; in ff_h263_update_motion_val() 113 x = 2 * s->mb_x + (n & 1); in ff_h263_pred_dc() 118 x = s->mb_x; in ff_h263_pred_dc() 132 if(n!=1 && s->mb_x == s->resync_mb_x) a= 1024; in ff_h263_pred_dc() 151 const int xy = s->mb_y * s->mb_stride + s->mb_x; in ff_h263_loop_filter() 192 if(s->mb_x){ in ff_h263_loop_filter() 213 if(s->mb_x){ in ff_h263_loop_filter() 239 x = 2 * s->mb_x + (n & 1); in ff_h263_pred_acdc() 246 x = s->mb_x; in ff_h263_pred_acdc() 266 if(n!=1 && s->mb_x == s->resync_mb_x) a= 1024; in ff_h263_pred_acdc() [all …]
|
D | mdec.c | 52 int mb_x, mb_y; member 94 "ac-tex damaged at %d %d\n", a->mb_x, a->mb_y); in mdec_decode_block_intra() 109 "ac-tex damaged at %d %d\n", a->mb_x, a->mb_y); in mdec_decode_block_intra() 149 static inline void idct_put(MDECContext *a, AVFrame *frame, int mb_x, int mb_y) in idct_put() argument 154 uint8_t *dest_y = frame->data[0] + (mb_y * 16* linesize ) + mb_x * 16; in idct_put() 155 uint8_t *dest_cb = frame->data[1] + (mb_y * 8 * frame->linesize[1]) + mb_x * 8; in idct_put() 156 uint8_t *dest_cr = frame->data[2] + (mb_y * 8 * frame->linesize[2]) + mb_x * 8; in idct_put() 199 for (a->mb_x = 0; a->mb_x < a->mb_width; a->mb_x++) { in decode_frame() 204 idct_put(a, frame.f, a->mb_x, a->mb_y); in decode_frame()
|
D | eatgq.c | 111 int mb_x, int mb_y) in tgq_idct_put_mb() argument 114 uint8_t *dest_y = frame->data[0] + (mb_y * 16 * linesize) + mb_x * 16; in tgq_idct_put_mb() 115 uint8_t *dest_cb = frame->data[1] + (mb_y * 8 * frame->linesize[1]) + mb_x * 8; in tgq_idct_put_mb() 116 uint8_t *dest_cr = frame->data[2] + (mb_y * 8 * frame->linesize[2]) + mb_x * 8; in tgq_idct_put_mb() 138 int mb_x, int mb_y, const int8_t *dc) in tgq_idct_put_mb_dconly() argument 141 uint8_t *dest_y = frame->data[0] + (mb_y * 16 * linesize) + mb_x * 16; in tgq_idct_put_mb_dconly() 142 uint8_t *dest_cb = frame->data[1] + (mb_y * 8 * frame->linesize[1]) + mb_x * 8; in tgq_idct_put_mb_dconly() 143 uint8_t *dest_cr = frame->data[2] + (mb_y * 8 * frame->linesize[2]) + mb_x * 8; in tgq_idct_put_mb_dconly() 154 static int tgq_decode_mb(TgqContext *s, AVFrame *frame, int mb_y, int mb_x) in tgq_decode_mb() argument 169 tgq_idct_put_mb(s, s->block, frame, mb_x, mb_y); in tgq_decode_mb() [all …]
|
D | eatqi.c | 52 int mb_x, mb_y; member 87 t->mb_x, t->mb_y); in tqi_decode_mb() 100 uint8_t *dest_y = frame->data[0] + t->mb_y * 16 * linesize + t->mb_x * 16; in tqi_idct_put() 101 uint8_t *dest_cb = frame->data[1] + t->mb_y * 8 * frame->linesize[1] + t->mb_x * 8; in tqi_idct_put() 102 uint8_t *dest_cr = frame->data[2] + t->mb_y * 8 * frame->linesize[2] + t->mb_x * 8; in tqi_idct_put() 165 for (t->mb_x = 0; t->mb_x < (w + 15) / 16; t->mb_x++) { in tqi_decode_frame()
|
D | vp8.c | 999 static int vp7_calculate_mb_offset(int mb_x, int mb_y, int mb_width, in vp7_calculate_mb_offset() argument 1004 int new = (mb_y + yoffset) * vwidth + mb_x + xoffset; in vp7_calculate_mb_offset() 1019 int mb_x, int mb_y, int layout) in vp7_decode_mvs() argument 1038 if (vp7_calculate_mb_offset(mb_x, mb_y, s->mb_width, pred->xoffset, in vp7_decode_mvs() 1110 int mb_x, int mb_y, int layout) in vp8_decode_mvs() argument 1210 int mb_x, int keyframe, int layout) in decode_intra4x4_modes() argument 1225 top = s->intra4x4_pred_mode_top + 4 * mb_x; in decode_intra4x4_modes() 1245 VP8Macroblock *mb, int mb_x, int mb_y, in decode_mb_mode() argument 1281 decode_intra4x4_modes(s, c, mb, mb_x, 1, layout); in decode_mb_mode() 1288 AV_WN32A(s->intra4x4_pred_mode_top + 4 * mb_x, modes); in decode_mb_mode() [all …]
|
D | intrax8.c | 349 …w->prediction_table[w->mb_x * 2 + (w->mb_y & 1)] = (est_run << 2) + 1 * (orient == 4) + 2 * (orien… in x8_update_predictions() 358 w->edges = 1 * !(w->mb_x >> 1); in x8_get_prediction_chroma() 360 w->edges |= 4 * (w->mb_x >= (2 * w->mb_width - 1)); // mb_x for chroma would always be odd in x8_get_prediction_chroma() 369 w->chroma_orient = (w->prediction_table[2 * w->mb_x - 2] & 0x03) << 2; in x8_get_prediction_chroma() 376 w->edges = 1 * !w->mb_x; in x8_get_prediction() 378 w->edges |= 4 * (w->mb_x >= (2 * w->mb_width - 1)); in x8_get_prediction() 390 w->est_run = w->prediction_table[2 * w->mb_x - 2] >> 2; in x8_get_prediction() 399 b = w->prediction_table[2 * w->mb_x + !(w->mb_y & 1)]; // block[x ][y - 1] in x8_get_prediction() 400 a = w->prediction_table[2 * w->mb_x - 2 + (w->mb_y & 1)]; // block[x - 1][y ] in x8_get_prediction() 401 c = w->prediction_table[2 * w->mb_x - 2 + !(w->mb_y & 1)]; // block[x - 1][y - 1] in x8_get_prediction() [all …]
|
D | h263dec.c | 202 s->resync_mb_x = s->mb_x; in decode_slice() 229 s->mb_x = s->resync_mb_x; in decode_slice() 239 s->mb_x - 1, s->mb_y, ER_MB_END); in decode_slice() 252 for (; s->mb_x < s->mb_width; s->mb_x++) { in decode_slice() 257 if (s->resync_mb_x == s->mb_x && s->resync_mb_y + 1 == s->mb_y) in decode_slice() 267 ff_tlog(NULL, "Decoding MB at %dx%d\n", s->mb_x, s->mb_y); in decode_slice() 274 const int xy = s->mb_x + s->mb_y * s->mb_stride; in decode_slice() 281 s->mb_x, s->mb_y, ER_MB_END & part_mask); in decode_slice() 285 if (++s->mb_x >= s->mb_width) { in decode_slice() 286 s->mb_x = 0; in decode_slice() [all …]
|
D | snowenc.c | 296 s->m.mb_x= in encode_q_branch() 513 static int get_dc(SnowContext *s, int mb_x, int mb_y, int plane_index){ in get_dc() argument 527 int index= mb_x + mb_y*b_stride; in get_dc() 540 int mb_x2= mb_x + (i &1) - 1; in get_dc() 550 … int index= x2-(block_w*mb_x - block_w/2) + (y2-(block_h*mb_y - block_h/2))*obmc_stride; in get_dc() 609 static int get_block_rd(SnowContext *s, int mb_x, int mb_y, int plane_index, uint8_t (*obmc_edged)[… in get_block_rd() argument 628 int sx= block_w*mb_x - block_w/2; in get_block_rd() 638 …ff_snow_pred_block(s, cur, tmp, ref_stride, sx, sy, block_w*2, block_h*2, &s->block[mb_x + mb_y*b_… in get_block_rd() 659 && (mb_x == 0 || mb_x == b_stride-1) in get_block_rd() 661 if(mb_x == 0) in get_block_rd() [all …]
|
D | ljpegenc.c | 135 int mb_x, int mb_y) in ljpeg_encode_yuv_mb() argument 139 if (mb_x == 0 || mb_y == 0) { in ljpeg_encode_yuv_mb() 151 … ptr = frame->data[i] + (linesize * (v * mb_y + y)) + (h * mb_x + x); //FIXME optimize this crap in ljpeg_encode_yuv_mb() 153 if (x == 0 && mb_x == 0) in ljpeg_encode_yuv_mb() 158 if (x == 0 && mb_x == 0) { in ljpeg_encode_yuv_mb() 185 … ptr = frame->data[i] + (linesize * (v * mb_y + y)) + (h * mb_x + x); //FIXME optimize this crap in ljpeg_encode_yuv_mb() 204 int mb_x, mb_y; in ljpeg_encode_yuv() local 220 for (mb_x = 0; mb_x < mb_width; mb_x++) in ljpeg_encode_yuv() 221 ljpeg_encode_yuv_mb(s, pb, frame, s->pred, mb_x, mb_y); in ljpeg_encode_yuv()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_minterpolate.c | 425 static void search_mv(MIContext *mi_ctx, Block *blocks, int mb_x, int mb_y, int dir) in search_mv() argument 429 Block *block = &blocks[mb_x + mb_y * mi_ctx->b_width]; in search_mv() 431 const int x_mb = mb_x << mi_ctx->log2_mb_size; in search_mv() 433 const int mb_i = mb_x + mb_y * mi_ctx->b_width; in search_mv() 466 if (mb_x > 0) in search_mv() 474 if (mb_y > 0 && mb_x + 1 < mi_ctx->b_width) in search_mv() 500 if (mb_x > 0) in search_mv() 508 if (mb_x + 1 < mi_ctx->b_width) in search_mv() 528 if (mb_x > 0) in search_mv() 536 if (mb_x + 1 < mi_ctx->b_width) in search_mv() [all …]
|
D | vf_mestimate.c | 133 for (mb_x = 0; mb_x < s->b_width; mb_x++) {\ 134 const int x_mb = mb_x << s->log2_mb_size;\ 156 int mb_x, mb_y, dir; in filter_frame() local 214 for (mb_x = 0; mb_x < s->b_width; mb_x++) { in filter_frame() 215 const int mb_i = mb_x + mb_y * s->b_width; in filter_frame() 216 const int x_mb = mb_x << s->log2_mb_size; in filter_frame() 226 if (mb_x > 0) in filter_frame() 234 if (mb_x + 1 < s->b_width) in filter_frame() 237 else if (mb_x > 0) in filter_frame() 266 for (mb_x = 0; mb_x < s->b_width; mb_x++) { in filter_frame() [all …]
|
/third_party/flutter/skia/third_party/externals/libwebp/src/dec/ |
D | frame_dec.c | 28 static int CheckMode(int mb_x, int mb_y, int mode) { in CheckMode() argument 30 if (mb_x == 0) { in CheckMode() 74 int mb_x; in ReconstructRow() local 102 for (mb_x = 0; mb_x < dec->mb_w_; ++mb_x) { in ReconstructRow() 103 const VP8MBData* const block = ctx->mb_data_ + mb_x; in ReconstructRow() 107 if (mb_x > 0) { in ReconstructRow() 118 VP8TopSamples* const top_yuv = dec->yuv_t_ + mb_x; in ReconstructRow() 134 if (mb_x >= dec->mb_w_ - 1) { // on rightmost border in ReconstructRow() 150 const int pred_func = CheckMode(mb_x, mb_y, block->imodes_[0]); in ReconstructRow() 161 const int pred_func = CheckMode(mb_x, mb_y, block->uvmode_); in ReconstructRow() [all …]
|
D | tree_dec.c | 290 VP8Decoder* const dec, int mb_x) { in ParseIntraMode() argument 291 uint8_t* const top = dec->intra_t_ + 4 * mb_x; in ParseIntraMode() 293 VP8MBData* const block = dec->mb_data_ + mb_x; in ParseIntraMode() 361 int mb_x; in VP8ParseIntraModeRow() local 362 for (mb_x = 0; mb_x < dec->mb_w_; ++mb_x) { in VP8ParseIntraModeRow() 363 ParseIntraMode(br, dec, mb_x); in VP8ParseIntraModeRow()
|
/third_party/skia/third_party/externals/libwebp/src/dec/ |
D | frame_dec.c | 28 static int CheckMode(int mb_x, int mb_y, int mode) { in CheckMode() argument 30 if (mb_x == 0) { in CheckMode() 74 int mb_x; in ReconstructRow() local 102 for (mb_x = 0; mb_x < dec->mb_w_; ++mb_x) { in ReconstructRow() 103 const VP8MBData* const block = ctx->mb_data_ + mb_x; in ReconstructRow() 107 if (mb_x > 0) { in ReconstructRow() 118 VP8TopSamples* const top_yuv = dec->yuv_t_ + mb_x; in ReconstructRow() 134 if (mb_x >= dec->mb_w_ - 1) { // on rightmost border in ReconstructRow() 150 const int pred_func = CheckMode(mb_x, mb_y, block->imodes_[0]); in ReconstructRow() 161 const int pred_func = CheckMode(mb_x, mb_y, block->uvmode_); in ReconstructRow() [all …]
|
D | tree_dec.c | 290 VP8Decoder* const dec, int mb_x) { in ParseIntraMode() argument 291 uint8_t* const top = dec->intra_t_ + 4 * mb_x; in ParseIntraMode() 293 VP8MBData* const block = dec->mb_data_ + mb_x; in ParseIntraMode() 361 int mb_x; in VP8ParseIntraModeRow() local 362 for (mb_x = 0; mb_x < dec->mb_w_; ++mb_x) { in VP8ParseIntraModeRow() 363 ParseIntraMode(br, dec, mb_x); in VP8ParseIntraModeRow()
|
/third_party/ffmpeg/tools/ |
D | yuvcmp.c | 47 int mb_x, mb_y; in main() local 71 mb_x = width / 16; in main() 74 mberrors = malloc(mb_x * mb_y); in main() 77 memset(mberrors, 0, mb_x * mb_y); in main() 95 mb = x / 16 + (y / 16) * mb_x; in main() 128 mb = x / 8 + (y / 8) * mb_x; in main() 148 for(i = 0; i < mb_x * mb_y; i++) { in main() 149 x = i % mb_x; in main() 150 y = i / mb_x; in main()
|