comparison svq1_vlc.h @ 2017:f089d25c82f0 libavcodec

motion estimation for SVQ1
author michael
date Wed, 12 May 2004 02:03:24 +0000
parents b7c82b9ef098
children ef2149182f1c
comparison
equal deleted inserted replaced
2016:f8ef6f664234 2017:f089d25c82f0
4 /* values in this table range from 0..3; adjust retrieved value by +0 */ 4 /* values in this table range from 0..3; adjust retrieved value by +0 */
5 static const uint8_t svq1_block_type_vlc[4][2] = { 5 static const uint8_t svq1_block_type_vlc[4][2] = {
6 /* { code, length } */ 6 /* { code, length } */
7 { 0x1, 1 }, { 0x1, 2 }, { 0x1, 3 }, { 0x0, 3 } 7 { 0x1, 1 }, { 0x1, 2 }, { 0x1, 3 }, { 0x0, 3 }
8 8
9 };
10
11 /* values in this table range from -32..32; adjust retrieved value by -32 */
12 static const uint8_t svq1_motion_component_vlc[65][2] = {
13 /* { code, length } */
14 { 0x5, 13 }, { 0x7, 13 }, { 0x5, 12 }, { 0x7, 12 },
15 { 0x9, 12 }, { 0xB, 12 }, { 0xD, 12 }, { 0xF, 12 },
16 { 0x9, 11 }, { 0xB, 11 }, { 0xD, 11 }, { 0xF, 11 },
17 { 0x11, 11 }, { 0x13, 11 }, { 0x15, 11 }, { 0x17, 11 },
18 { 0x19, 11 }, { 0x1B, 11 }, { 0x1D, 11 }, { 0x1F, 11 },
19 { 0x21, 11 }, { 0x23, 11 }, { 0x13, 10 }, { 0x15, 10 },
20 { 0x17, 10 }, { 0x7, 8 }, { 0x9, 8 }, { 0xB, 8 },
21 { 0x7, 7 }, { 0x3, 5 }, { 0x3, 4 }, { 0x3, 3 },
22 { 0x1, 1 }, { 0x2, 3 }, { 0x2, 4 }, { 0x2, 5 },
23 { 0x6, 7 }, { 0xA, 8 }, { 0x8, 8 }, { 0x6, 8 },
24 { 0x16, 10 }, { 0x14, 10 }, { 0x12, 10 }, { 0x22, 11 },
25 { 0x20, 11 }, { 0x1E, 11 }, { 0x1C, 11 }, { 0x1A, 11 },
26 { 0x18, 11 }, { 0x16, 11 }, { 0x14, 11 }, { 0x12, 11 },
27 { 0x10, 11 }, { 0xE, 11 }, { 0xC, 11 }, { 0xA, 11 },
28 { 0x8, 11 }, { 0xE, 12 }, { 0xC, 12 }, { 0xA, 12 },
29 { 0x8, 12 }, { 0x6, 12 }, { 0x4, 12 }, { 0x6, 13 },
30 { 0x4, 13 }
31 }; 9 };
32 10
33 /* values in this table range from -1..6; adjust retrieved value by -1 */ 11 /* values in this table range from -1..6; adjust retrieved value by -1 */
34 static const uint8_t svq1_intra_multistage_vlc[6][8][2] = { 12 static const uint8_t svq1_intra_multistage_vlc[6][8][2] = {
35 /* { code, length } */ 13 /* { code, length } */