comparison vp3data.h @ 1867:7f7aa6ac3723 libavcodec

cut over to using new VP3 DSP functions and remove the old ones; bring certain source code identifiers in line with official VP3 spec (well, *my* VP3 spec, anyway)
author melanson
date Mon, 08 Mar 2004 02:15:13 +0000
parents fe46bd7c64d4
children f65d87bfdd5a
comparison
equal deleted inserted replaced
1866:1755f959ab7f 1867:7f7aa6ac3723
1 #ifndef VP3DATA_H 1 #ifndef VP3DATA_H
2 #define VP3DATA_H 2 #define VP3DATA_H
3 3
4 /* these coefficients dequantize intraframe Y plane coefficients */ 4 /* these coefficients dequantize intraframe Y plane coefficients
5 * (note: same as JPEG) */
5 static int16_t vp31_intra_y_dequant[64] = 6 static int16_t vp31_intra_y_dequant[64] =
6 { 16, 11, 10, 16, 24, 40, 51, 61, 7 { 16, 11, 10, 16, 24, 40, 51, 61,
7 12, 12, 14, 19, 26, 58, 60, 55, 8 12, 12, 14, 19, 26, 58, 60, 55,
8 14, 13, 16, 24, 40, 57, 69, 56, 9 14, 13, 16, 24, 40, 57, 69, 56,
9 14, 17, 22, 29, 51, 87, 80, 62, 10 14, 17, 22, 29, 51, 87, 80, 62,
11 24, 35, 55, 64, 81, 104, 113, 92, 12 24, 35, 55, 64, 81, 104, 113, 92,
12 49, 64, 78, 87, 103, 121, 120, 101, 13 49, 64, 78, 87, 103, 121, 120, 101,
13 72, 92, 95, 98, 112, 100, 103, 99 14 72, 92, 95, 98, 112, 100, 103, 99
14 }; 15 };
15 16
16 /* these coefficients dequantize intraframe C plane coefficients */ 17 /* these coefficients dequantize intraframe C plane coefficients
18 * (note: same as JPEG) */
17 static int16_t vp31_intra_c_dequant[64] = 19 static int16_t vp31_intra_c_dequant[64] =
18 { 17, 18, 24, 47, 99, 99, 99, 99, 20 { 17, 18, 24, 47, 99, 99, 99, 99,
19 18, 21, 26, 66, 99, 99, 99, 99, 21 18, 21, 26, 66, 99, 99, 99, 99,
20 24, 26, 56, 99, 99, 99, 99, 99, 22 24, 26, 56, 99, 99, 99, 99, 99,
21 47, 66, 99, 99, 99, 99, 99, 99, 23 47, 66, 99, 99, 99, 99, 99, 99,
46 40, 40, 30, 30, 30, 30, 30, 30, 48 40, 40, 30, 30, 30, 30, 30, 30,
47 30, 20, 20, 20, 20, 20, 20, 20, 49 30, 20, 20, 20, 20, 20, 20, 20,
48 20, 10, 10, 10, 10, 10, 10, 10 50 20, 10, 10, 10, 10, 10, 10, 10
49 }; 51 };
50 52
51 static uint32_t vp31_quality_threshold[64] = 53 static uint32_t vp31_ac_scale_factor[64] =
52 { 500, 450, 400, 370, 340, 310, 285, 265, 54 { 500, 450, 400, 370, 340, 310, 285, 265,
53 245, 225, 210, 195, 185, 180, 170, 160, 55 245, 225, 210, 195, 185, 180, 170, 160,
54 150, 145, 135, 130, 125, 115, 110, 107, 56 150, 145, 135, 130, 125, 115, 110, 107,
55 100, 96, 93, 89, 85, 82, 75, 74, 57 100, 96, 93, 89, 85, 82, 75, 74,
56 70, 68, 64, 60, 57, 56, 52, 50, 58 70, 68, 64, 60, 57, 56, 52, 50,