Mercurial > libavcodec.hg
comparison vc1.c @ 6099:a2b438bcb1d2 libavcodec
Make decode210() common function.
author | kostya |
---|---|
date | Thu, 03 Jan 2008 09:16:56 +0000 |
parents | 2c4164b26d53 |
children | ddf5d7fae101 |
comparison
equal
deleted
inserted
replaced
6098:b7905ea98b8f | 6099:a2b438bcb1d2 |
---|---|
41 #define MB_INTRA_VLC_BITS 9 | 41 #define MB_INTRA_VLC_BITS 9 |
42 #define DC_VLC_BITS 9 | 42 #define DC_VLC_BITS 9 |
43 #define AC_VLC_BITS 9 | 43 #define AC_VLC_BITS 9 |
44 static const uint16_t table_mb_intra[64][2]; | 44 static const uint16_t table_mb_intra[64][2]; |
45 | 45 |
46 | |
47 static inline int decode210(GetBitContext *gb){ | |
48 if (get_bits1(gb)) | |
49 return 0; | |
50 else | |
51 return 2 - get_bits1(gb); | |
52 } | |
53 | 46 |
54 /** | 47 /** |
55 * Init VC-1 specific tables and VC1Context members | 48 * Init VC-1 specific tables and VC1Context members |
56 * @param v The VC1Context to initialize | 49 * @param v The VC1Context to initialize |
57 * @return Status | 50 * @return Status |