comparison rv40data.h @ 5943:337a95c66190 libavcodec

spelling cosmetics
author diego
date Tue, 27 Nov 2007 15:38:54 +0000
parents 7b5731b088ed
children 266b2501216a
comparison
equal deleted inserted replaced
5942:60016f2e3aa1 5943:337a95c66190
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */ 20 */
21 21
22 /** 22 /**
23 * @file rv40data.h 23 * @file rv40data.h
24 * Miscellaneous RV40 tables. 24 * miscellaneous RV40 tables
25 */ 25 */
26 26
27 #ifndef FFMPEG_RV40DATA_H 27 #ifndef FFMPEG_RV40DATA_H
28 #define FFMPEG_RV40DATA_H 28 #define FFMPEG_RV40DATA_H
29 29
30 #include <stdint.h> 30 #include <stdint.h>
31 31
32 /** 32 /**
33 * Standard widths and heights coded in RV40 33 * standard widths and heights coded in RV40
34 */ 34 */
35 //@{ 35 //@{
36 static const int rv40_standard_widths[] = { 160, 172, 240, 320, 352, 640, 704, 0}; 36 static const int rv40_standard_widths[] = { 160, 172, 240, 320, 352, 640, 704, 0};
37 static const int rv40_standard_heights[] = { 120, 132, 144, 240, 288, 480, 0, 0}; 37 static const int rv40_standard_heights[] = { 120, 132, 144, 240, 288, 480, 0, 0};
38 static const int rv40_standard_heights2[] = { 180, 360, 576, 0}; 38 static const int rv40_standard_heights2[] = { 180, 360, 576, 0};
39 //@} 39 //@}
40 40
41 #define MODE2_PATTERNS_NUM 20 41 #define MODE2_PATTERNS_NUM 20
42 /** 42 /**
43 * Intra types table 43 * intra types table
44 * 44 *
45 * These values are actually coded 3-tuples 45 * These values are actually coded 3-tuples
46 * used for detecting standard block configurations 46 * used for detecting standard block configurations.
47 */ 47 */
48 static const uint16_t rv40_aic_table_index[MODE2_PATTERNS_NUM] = { 48 static const uint16_t rv40_aic_table_index[MODE2_PATTERNS_NUM] = {
49 0x000, 0x100, 0x200, 49 0x000, 0x100, 0x200,
50 0x011, 0x111, 0x211, 0x511, 0x611, 50 0x011, 0x111, 0x211, 0x511, 0x611,
51 0x022, 0x122, 0x222, 0x722, 51 0x022, 0x122, 0x222, 0x722,
53 0x822, 0x282, 0x228, 53 0x822, 0x282, 0x228,
54 0x112, 0x116, 0x221 54 0x112, 0x116, 0x221
55 }; 55 };
56 56
57 /** 57 /**
58 * Luma quantizer values 58 * luma quantizer values
59 * Second table is used for inter blocks 59 * The second table is used for inter blocks.
60 */ 60 */
61 static const uint8_t rv40_luma_dc_quant[2][32] = { 61 static const uint8_t rv40_luma_dc_quant[2][32] = {
62 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 62 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
63 16, 17, 17, 18, 18, 18, 19, 19, 19, 20, 20, 20, 22, 22, 22, 22 }, 63 16, 17, 17, 18, 18, 18, 19, 19, 19, 20, 20, 20, 22, 22, 22, 22 },
64 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 64 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
65 16, 17, 18, 19, 20, 20, 21, 21, 22, 23, 23, 23, 24, 24, 24, 24 } 65 16, 17, 18, 19, 20, 20, 21, 21, 22, 23, 23, 23, 24, 24, 24, 24 }
66 }; 66 };
67 67
68 /** 68 /**
69 * @begingroup loopfilter coefficients used by RV40 loop filter 69 * @begingroup loopfilter coefficients used by the RV40 loop filter
70 * @{ 70 * @{
71 */ 71 */
72 /** 72 /**
73 * Dither values for deblocking filter - left/top values 73 * dither values for deblocking filter - left/top values
74 */ 74 */
75 static const uint8_t rv40_dither_l[16] = { 75 static const uint8_t rv40_dither_l[16] = {
76 0x40, 0x50, 0x20, 0x60, 0x30, 0x50, 0x40, 0x30, 76 0x40, 0x50, 0x20, 0x60, 0x30, 0x50, 0x40, 0x30,
77 0x50, 0x40, 0x50, 0x30, 0x60, 0x20, 0x50, 0x40 77 0x50, 0x40, 0x50, 0x30, 0x60, 0x20, 0x50, 0x40
78 }; 78 };
79 /** 79 /**
80 * Dither values for deblocking filter - right/bottom values 80 * dither values for deblocking filter - right/bottom values
81 */ 81 */
82 static const uint8_t rv40_dither_r[16] = { 82 static const uint8_t rv40_dither_r[16] = {
83 0x40, 0x30, 0x60, 0x20, 0x50, 0x30, 0x30, 0x40, 83 0x40, 0x30, 0x60, 0x20, 0x50, 0x30, 0x30, 0x40,
84 0x40, 0x40, 0x50, 0x30, 0x20, 0x60, 0x30, 0x40 84 0x40, 0x40, 0x50, 0x30, 0x20, 0x60, 0x30, 0x40
85 }; 85 };