Mercurial > libavcodec.hg
comparison mpegvideo.c @ 2265:c93da911905e libavcodec
lowres chroma fix
author | michael |
---|---|
date | Sun, 26 Sep 2004 23:01:42 +0000 |
parents | d7fdb7be7df4 |
children | 514949de5d15 |
comparison
equal
deleted
inserted
replaced
2264:d7fdb7be7df4 | 2265:c93da911905e |
---|---|
2638 sy= motion_y & s_mask; | 2638 sy= motion_y & s_mask; |
2639 src_x = s->mb_x*2*block_s + (motion_x >> (lowres+1)); | 2639 src_x = s->mb_x*2*block_s + (motion_x >> (lowres+1)); |
2640 src_y =(s->mb_y*2*block_s>>field_based) + (motion_y >> (lowres+1)); | 2640 src_y =(s->mb_y*2*block_s>>field_based) + (motion_y >> (lowres+1)); |
2641 | 2641 |
2642 if (s->out_format == FMT_H263) { | 2642 if (s->out_format == FMT_H263) { |
2643 uvsx = sx | ((motion_x & 2)>>1); | 2643 uvsx = ((motion_x>>1) & s_mask) | (sx&1); |
2644 uvsy = sy | ((motion_y & 2)>>1); | 2644 uvsy = ((motion_y>>1) & s_mask) | (sy&1); |
2645 uvsrc_x = src_x>>1; | 2645 uvsrc_x = src_x>>1; |
2646 uvsrc_y = src_y>>1; | 2646 uvsrc_y = src_y>>1; |
2647 }else if(s->out_format == FMT_H261){//even chroma mv's are full pel in H261 | 2647 }else if(s->out_format == FMT_H261){//even chroma mv's are full pel in H261 |
2648 mx = motion_x / 4; | 2648 mx = motion_x / 4; |
2649 my = motion_y / 4; | 2649 my = motion_y / 4; |