Mercurial > libavcodec.hg
diff mpegvideo.c @ 5286:4393e09e32ec libavcodec
move ff_h263_round_chroma() to mpegvideo.h as static inline
author | mru |
---|---|
date | Wed, 11 Jul 2007 21:04:53 +0000 |
parents | c6bc608d2659 |
children | 07844149dfa9 |
line wrap: on
line diff
--- a/mpegvideo.c Wed Jul 11 15:21:24 2007 +0000 +++ b/mpegvideo.c Wed Jul 11 21:04:53 2007 +0000 @@ -70,11 +70,6 @@ //#define DEBUG -static const uint8_t h263_chroma_roundtab[16] = { -// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 - 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, -}; - static const uint8_t ff_default_chroma_qscale_table[32]={ // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 @@ -1592,15 +1587,6 @@ //FIXME h261 lowres loop filter } -inline int ff_h263_round_chroma(int x){ - if (x >= 0) - return (h263_chroma_roundtab[x & 0xf] + ((x >> 3) & ~1)); - else { - x = -x; - return -(h263_chroma_roundtab[x & 0xf] + ((x >> 3) & ~1)); - } -} - static inline void chroma_4mv_motion_lowres(MpegEncContext *s, uint8_t *dest_cb, uint8_t *dest_cr, uint8_t **ref_picture,