Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 143:35e3ced6cfd9 | 144:cb5dabd00ba2 |
|---|---|
| 2 /* intra MCBPC, mb_type = (intra), then (intraq) */ | 2 /* intra MCBPC, mb_type = (intra), then (intraq) */ |
| 3 static const UINT8 intra_MCBPC_code[8] = { 1, 1, 2, 3, 1, 1, 2, 3 }; | 3 static const UINT8 intra_MCBPC_code[8] = { 1, 1, 2, 3, 1, 1, 2, 3 }; |
| 4 static const UINT8 intra_MCBPC_bits[8] = { 1, 3, 3, 3, 4, 6, 6, 6 }; | 4 static const UINT8 intra_MCBPC_bits[8] = { 1, 3, 3, 3, 4, 6, 6, 6 }; |
| 5 | 5 |
| 6 /* inter MCBPC, mb_type = (inter), (intra), (interq), (intraq), (inter4v) */ | 6 /* inter MCBPC, mb_type = (inter), (intra), (interq), (intraq), (inter4v) */ |
| 7 /* Changed the tables for interq, following the standard ** Juanjo ** */ | |
| 8 static const UINT8 inter_MCBPC_code[20] = { | |
| 9 1, 3, 2, 5, | |
| 10 3, 4, 3, 3, | |
| 11 3, 7, 6, 5, | |
| 12 4, 4, 3, 2, | |
| 13 2, 5, 4, 5, | |
| 14 }; | |
| 15 static const UINT8 inter_MCBPC_bits[20] = { | |
| 16 1, 4, 4, 6, | |
| 17 5, 8, 8, 7, | |
| 18 3, 7, 7, 9, | |
| 19 6, 9, 9, 9, | |
| 20 3, 7, 7, 8, | |
| 21 }; | |
| 22 | |
| 23 /* This is the old table | |
| 7 static const UINT8 inter_MCBPC_code[20] = { | 24 static const UINT8 inter_MCBPC_code[20] = { |
| 8 1, 3, 2, 5, | 25 1, 3, 2, 5, |
| 9 3, 4, 3, 3, | 26 3, 4, 3, 3, |
| 10 0, 1, 2, 3, | 27 0, 1, 2, 3, |
| 11 4, 4, 3, 2, | 28 4, 4, 3, 2, |
| 15 1, 4, 4, 6, | 32 1, 4, 4, 6, |
| 16 5, 8, 8, 7, | 33 5, 8, 8, 7, |
| 17 12, 12, 12, 12, | 34 12, 12, 12, 12, |
| 18 6, 9, 9, 9, | 35 6, 9, 9, 9, |
| 19 3, 7, 7, 8, | 36 3, 7, 7, 8, |
| 20 }; | 37 };*/ |
| 21 | 38 |
| 22 static const UINT8 cbpy_tab[16][2] = | 39 static const UINT8 cbpy_tab[16][2] = |
| 23 { | 40 { |
| 24 {3,4}, {5,5}, {4,5}, {9,4}, {3,5}, {7,4}, {2,6}, {11,4}, | 41 {3,4}, {5,5}, {4,5}, {9,4}, {3,5}, {7,4}, {2,6}, {11,4}, |
| 25 {2,5}, {3,6}, {5,4}, {10,4}, {4,4}, {8,4}, {6,4}, {3,2} | 42 {2,5}, {3,6}, {5,4}, {10,4}, {4,4}, {8,4}, {6,4}, {3,2} |
