Lines Matching refs:mb_y
78 av_log(h->s.avctx, AV_LOG_ERROR, "top block unavailable for requested intra4x4 mode %d at %d %d\n", status, s->mb_x, s->mb_y);
92 av_log(h->s.avctx, AV_LOG_ERROR, "left block unavailable for requested intra4x4 mode %d at %d %d\n", status, s->mb_x, s->mb_y);
114 av_log(h->s.avctx, AV_LOG_ERROR, "out of range intra chroma pred mode at %d %d\n", s->mb_x, s->mb_y);
121 av_log(h->s.avctx, AV_LOG_ERROR, "top block unavailable for requested intra mode at %d %d\n", s->mb_x, s->mb_y);
132 av_log(h->s.avctx, AV_LOG_ERROR, "left block unavailable for requested intra mode at %d %d\n", s->mb_x, s->mb_y);
258 y_offset += 16*(s->mb_y >> MB_FIELD);
516 my += 2 * ((s->mb_y & 1) - (pic->f.reference - 1));
566 y_offset += 8*(s->mb_y >> MB_FIELD);
614 y_offset += 8*(s->mb_y >> MB_FIELD);
635 int weight0 = h->implicit_weight[refn0][refn1][s->mb_y&1];
683 && (h->implicit_weight[ h->ref_cache[0][scan8[n]] ][ h->ref_cache[1][scan8[n]] ][h->s.mb_y&1] != 32))
704 const int my= (h->mv_cache[list][scan8[0]][1]>>2) + 16*s->mb_y;
1563 if(s->mb_y&1){
1656 if(s->mb_y&1){
1669 deblock_top = (s->mb_y > !!MB_FIELD);
1798 assert(s->mb_y || linesize <= block_offset[i]);
1899 const int mb_y= s->mb_y;
1913 dest_y = s->current_picture.f.data[0] + ((mb_x << pixel_shift) + mb_y * s->linesize ) * 16;
1914 dest_cb = s->current_picture.f.data[1] + (mb_x << pixel_shift)*8 + mb_y * s->uvlinesize * block_h;
1915 dest_cr = s->current_picture.f.data[2] + (mb_x << pixel_shift)*8 + mb_y * s->uvlinesize * block_h;
1926 if(mb_y&1){ //FIXME move out of this function?
1938 fill_rectangle(ref, 4, 4, 8, (16+*ref)^(s->mb_y&1), 1);
1943 fill_rectangle(&h->ref_cache[list][scan8[i]], 2, 2, 8, (16+ref)^(s->mb_y&1), 1);
2108 const int mb_y= s->mb_y;
2120 dest[p] = s->current_picture.f.data[p] + ((mb_x << pixel_shift) + mb_y * s->linesize) * 16;
2129 if(mb_y&1) //FIXME move out of this function?
2139 fill_rectangle(ref, 4, 4, 8, (16+*ref)^(s->mb_y&1), 1);
2144 fill_rectangle(&h->ref_cache[list][scan8[i]], 2, 2, 8, (16+ref)^(s->mb_y&1), 1);
2522 s->mb_y= 0;
2558 * INT_MAX when called for bottom field, because mb_y is
2674 av_log(h->s.avctx, AV_LOG_ERROR, "slice type too large (%d) at %d %d\n", h->slice_type, s->mb_x, s->mb_y);
3072 s->resync_mb_y = s->mb_y = (first_mb_in_slice / s->mb_width) << FIELD_OR_MBAFF_PICTURE;
3074 s->resync_mb_y = s->mb_y = s->mb_y + 1;
3075 assert(s->mb_y < s->mb_height);
3419 int16_t (*mv_src)[2] = &s->current_picture.f.motion_val[list][4*s->mb_x + 4*s->mb_y*b_stride];
3448 if(s->mb_y&1){
3561 int linesize, uvlinesize, mb_x, mb_y;
3562 const int end_mb_y= s->mb_y + FRAME_MBAFF;
3569 for(mb_y=end_mb_y - FRAME_MBAFF; mb_y<= end_mb_y; mb_y++){
3571 mb_xy = h->mb_xy = mb_x + mb_y*s->mb_stride;
3580 s->mb_y= mb_y;
3581 dest_y = s->current_picture.f.data[0] + ((mb_x << pixel_shift) + mb_y * s->linesize ) * 16;
3582 dest_cb = s->current_picture.f.data[1] + (mb_x << pixel_shift) * (8 << CHROMA444) + mb_y * s->uvlinesize * block_h;
3583 dest_cr = s->current_picture.f.data[2] + (mb_x << pixel_shift) * (8 << CHROMA444) + mb_y * s->uvlinesize * block_h;
3589 if(mb_y&1){ //FIXME move out of this function?
3605 ff_h264_filter_mb (h, mb_x, mb_y, dest_y, dest_cb, dest_cr, linesize, uvlinesize);
3607 ff_h264_filter_mb_fast(h, mb_x, mb_y, dest_y, dest_cb, dest_cr, linesize, uvlinesize);
3614 s->mb_y= end_mb_y - FRAME_MBAFF;
3621 const int mb_xy= s->mb_x + s->mb_y*s->mb_stride;
3635 int top = 16*(s->mb_y >> FIELD_PICTURE);
3696 s->mb_y++;
3701 s->mb_y--;
3706 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x-1, s->mb_y, ER_MB_END&part_mask);
3711 av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding MB %d %d, bytestream (%td)\n", s->mb_x, s->mb_y, h->cabac.bytestream_end - h->cabac.bytestream);
3712 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y, ER_MB_ERROR&part_mask);
3720 ++s->mb_y;
3722 ++s->mb_y;
3723 if(FRAME_MBAFF && s->mb_y < s->mb_height)
3728 if( eos || s->mb_y >= s->mb_height ) {
3730 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x-1, s->mb_y, ER_MB_END&part_mask);
3743 s->mb_y++;
3747 s->mb_y--;
3751 av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding MB %d %d\n", s->mb_x, s->mb_y);
3752 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y, ER_MB_ERROR&part_mask);
3760 ++s->mb_y;
3762 ++s->mb_y;
3763 if(FRAME_MBAFF && s->mb_y < s->mb_height)
3766 if(s->mb_y >= s->mb_height){
3770 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x-1, s->mb_y, ER_MB_END&part_mask);
3775 s->mb_x - 1, s->mb_y,
3785 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x-1, s->mb_y, ER_MB_END&part_mask);
3790 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y, ER_MB_ERROR&part_mask);
3828 s->mb_y = hx->s.mb_y;
4200 if(!(s->flags2 & CODEC_FLAG2_CHUNKS) || (s->mb_y >= s->mb_height && s->mb_height)){
4225 const int mb_xy= s->mb_x + s->mb_y*s->mb_stride;
4227 if(s->mb_y){