Revision 00f0564f libavcodec/mpegvideo.c

View differences:

libavcodec/mpegvideo.c
70 70
//#define DEBUG
71 71

  
72 72

  
73
static const uint8_t h263_chroma_roundtab[16] = {
74
//  0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
75
    0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2,
76
};
77

  
78 73
static const uint8_t ff_default_chroma_qscale_table[32]={
79 74
//  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
80 75
    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 1587
    //FIXME h261 lowres loop filter
1593 1588
}
1594 1589

  
1595
inline int ff_h263_round_chroma(int x){
1596
    if (x >= 0)
1597
        return  (h263_chroma_roundtab[x & 0xf] + ((x >> 3) & ~1));
1598
    else {
1599
        x = -x;
1600
        return -(h263_chroma_roundtab[x & 0xf] + ((x >> 3) & ~1));
1601
    }
1602
}
1603

  
1604 1590
static inline void chroma_4mv_motion_lowres(MpegEncContext *s,
1605 1591
                                     uint8_t *dest_cb, uint8_t *dest_cr,
1606 1592
                                     uint8_t **ref_picture,

Also available in: Unified diff