comparison mjpeg.c @ 7136:7a73d76aaaa0 libavcodec

remove duplicate tables
author stefang
date Wed, 25 Jun 2008 11:33:49 +0000
parents 470601203f44
children 04423b2f6e0b
comparison
equal deleted inserted replaced
7135:6bd6a2da306e 7136:7a73d76aaaa0
62 62
63 /* Set up the standard Huffman tables (cf. JPEG standard section K.3) */ 63 /* Set up the standard Huffman tables (cf. JPEG standard section K.3) */
64 /* IMPORTANT: these are only valid for 8-bit data precision! */ 64 /* IMPORTANT: these are only valid for 8-bit data precision! */
65 const uint8_t ff_mjpeg_bits_dc_luminance[17] = 65 const uint8_t ff_mjpeg_bits_dc_luminance[17] =
66 { /* 0-base */ 0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 }; 66 { /* 0-base */ 0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 };
67 const uint8_t ff_mjpeg_val_dc_luminance[] = 67 const uint8_t ff_mjpeg_val_dc[12] =
68 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; 68 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };
69 69
70 const uint8_t ff_mjpeg_bits_dc_chrominance[17] = 70 const uint8_t ff_mjpeg_bits_dc_chrominance[17] =
71 { /* 0-base */ 0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }; 71 { /* 0-base */ 0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 };
72 const uint8_t ff_mjpeg_val_dc_chrominance[] =
73 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };
74 72
75 const uint8_t ff_mjpeg_bits_ac_luminance[17] = 73 const uint8_t ff_mjpeg_bits_ac_luminance[17] =
76 { /* 0-base */ 0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 0x7d }; 74 { /* 0-base */ 0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 0x7d };
77 const uint8_t ff_mjpeg_val_ac_luminance[] = 75 const uint8_t ff_mjpeg_val_ac_luminance[] =
78 { 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, 76 { 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12,