Mercurial > libavcodec.hg
diff h263data.h @ 144:cb5dabd00ba2 libavcodec
- Bug fix on inter MCBPC table for inter+q.
- H.263/H.263+ decoder now knows GOB start codes.
- H.263/H.263+ decoder now returns the size of the stream on the first call.
- Added show_bits() functions to see the buffer without loosing the bits.
- TODO: H.263v1 UMV parsing is buggy.
author | pulento |
---|---|
date | Sat, 03 Nov 2001 00:49:53 +0000 |
parents | 986e461dc072 |
children | 7ce36cf13055 |
line wrap: on
line diff
--- a/h263data.h Wed Oct 31 19:40:53 2001 +0000 +++ b/h263data.h Sat Nov 03 00:49:53 2001 +0000 @@ -4,6 +4,23 @@ static const UINT8 intra_MCBPC_bits[8] = { 1, 3, 3, 3, 4, 6, 6, 6 }; /* inter MCBPC, mb_type = (inter), (intra), (interq), (intraq), (inter4v) */ +/* Changed the tables for interq, following the standard ** Juanjo ** */ +static const UINT8 inter_MCBPC_code[20] = { + 1, 3, 2, 5, + 3, 4, 3, 3, + 3, 7, 6, 5, + 4, 4, 3, 2, + 2, 5, 4, 5, +}; +static const UINT8 inter_MCBPC_bits[20] = { + 1, 4, 4, 6, + 5, 8, 8, 7, + 3, 7, 7, 9, + 6, 9, 9, 9, + 3, 7, 7, 8, +}; + +/* This is the old table static const UINT8 inter_MCBPC_code[20] = { 1, 3, 2, 5, 3, 4, 3, 3, @@ -17,7 +34,7 @@ 12, 12, 12, 12, 6, 9, 9, 9, 3, 7, 7, 8, -}; +};*/ static const UINT8 cbpy_tab[16][2] = {