comparison mpegvideo.c @ 2291:c4e882a7c07c libavcodec

h.261 loop filter fix closes bug #1033108
author michael
date Fri, 08 Oct 2004 22:57:39 +0000
parents 5443c3fc2448
children 8556f080fcc2
comparison
equal deleted inserted replaced
2290:89a5e4601343 2291:c4e882a7c07c
2606 2606
2607 if(!(s->flags&CODEC_FLAG_GRAY)){ 2607 if(!(s->flags&CODEC_FLAG_GRAY)){
2608 pix_op[s->chroma_x_shift][uvdxy](dest_cb, ptr_cb, uvlinesize, h >> s->chroma_y_shift); 2608 pix_op[s->chroma_x_shift][uvdxy](dest_cb, ptr_cb, uvlinesize, h >> s->chroma_y_shift);
2609 pix_op[s->chroma_x_shift][uvdxy](dest_cr, ptr_cr, uvlinesize, h >> s->chroma_y_shift); 2609 pix_op[s->chroma_x_shift][uvdxy](dest_cr, ptr_cr, uvlinesize, h >> s->chroma_y_shift);
2610 } 2610 }
2611 if(s->out_format == FMT_H261){
2612 ff_h261_loop_filter(s);
2613 }
2611 } 2614 }
2612 2615
2613 /* apply one mpeg motion vector to the three components */ 2616 /* apply one mpeg motion vector to the three components */
2614 static always_inline void mpeg_motion_lowres(MpegEncContext *s, 2617 static always_inline void mpeg_motion_lowres(MpegEncContext *s,
2615 uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, 2618 uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
2702 uvsx <<= 2 - lowres; 2705 uvsx <<= 2 - lowres;
2703 uvsy <<= 2 - lowres; 2706 uvsy <<= 2 - lowres;
2704 pix_op[lowres](dest_cb, ptr_cb, uvlinesize, h >> s->chroma_y_shift, uvsx, uvsy); 2707 pix_op[lowres](dest_cb, ptr_cb, uvlinesize, h >> s->chroma_y_shift, uvsx, uvsy);
2705 pix_op[lowres](dest_cr, ptr_cr, uvlinesize, h >> s->chroma_y_shift, uvsx, uvsy); 2708 pix_op[lowres](dest_cr, ptr_cr, uvlinesize, h >> s->chroma_y_shift, uvsx, uvsy);
2706 } 2709 }
2710 //FIXME h261 lowres loop filter
2707 } 2711 }
2708 2712
2709 //FIXME move to dsputil, avg variant, 16x16 version 2713 //FIXME move to dsputil, avg variant, 16x16 version
2710 static inline void put_obmc(uint8_t *dst, uint8_t *src[5], int stride){ 2714 static inline void put_obmc(uint8_t *dst, uint8_t *src[5], int stride){
2711 int x; 2715 int x;