Revision 00f0564f libavcodec/mpegvideo.h

View differences:

libavcodec/mpegvideo.h
762 762
    return bits - last;
763 763
}
764 764

  
765
static inline int ff_h263_round_chroma(int x){
766
    static const uint8_t h263_chroma_roundtab[16] = {
767
    //  0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
768
        0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2,
769
    };
770
    if (x >= 0)
771
        return  (h263_chroma_roundtab[x & 0xf] + ((x >> 3) & ~1));
772
    else {
773
        x = -x;
774
        return -(h263_chroma_roundtab[x & 0xf] + ((x >> 3) & ~1));
775
    }
776
}
777

  
765 778
/* motion_est.c */
766 779
void ff_estimate_p_frame_motion(MpegEncContext * s,
767 780
                             int mb_x, int mb_y);
......
871 884
int ff_h263_get_gob_height(MpegEncContext *s);
872 885
void ff_mpeg4_init_direct_mv(MpegEncContext *s);
873 886
int ff_mpeg4_set_direct_mv(MpegEncContext *s, int mx, int my);
874
inline int ff_h263_round_chroma(int x);
875 887
void ff_h263_encode_motion(MpegEncContext * s, int val, int f_code);
876 888

  
877 889

  

Also available in: Unified diff