comparison rv40vlc2.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 rv40vlc2.h 23 * @file rv40vlc2.h
24 * RV40 VLC tables used for macroblock information decoding. 24 * RV40 VLC tables used for macroblock information decoding
25 */ 25 */
26 26
27 #ifndef FFMPEG_RV40VLC2_H 27 #ifndef FFMPEG_RV40VLC2_H
28 #define FFMPEG_RV40VLC2_H 28 #define FFMPEG_RV40VLC2_H
29 29
30 #include <stdint.h> 30 #include <stdint.h>
31 31
32 /** 32 /**
33 * Codes used for the first four block types 33 * codes used for the first four block types
34 */ 34 */
35 //@{ 35 //@{
36 #define AIC_TOP_BITS 8 36 #define AIC_TOP_BITS 8
37 #define AIC_TOP_SIZE 16 37 #define AIC_TOP_SIZE 16
38 static const uint8_t rv40_aic_top_vlc_codes[AIC_TOP_SIZE] = { 38 static const uint8_t rv40_aic_top_vlc_codes[AIC_TOP_SIZE] = {
44 1, 4, 5, 5, 5, 7, 6, 5, 4, 7, 7, 6, 5, 7, 5, 3 44 1, 4, 5, 5, 5, 7, 6, 5, 4, 7, 7, 6, 5, 7, 5, 3
45 }; 45 };
46 //@} 46 //@}
47 47
48 /** 48 /**
49 * Codes used for determining pair of block types 49 * codes used for determining a pair of block types
50 */ 50 */
51 //@{ 51 //@{
52 #define AIC_MODE2_NUM 20 52 #define AIC_MODE2_NUM 20
53 #define AIC_MODE2_SIZE 81 53 #define AIC_MODE2_SIZE 81
54 #define AIC_MODE2_BITS 9 54 #define AIC_MODE2_BITS 9
632 632
633 //@} 633 //@}
634 634
635 #define PBTYPE_ESCAPE 0xFF 635 #define PBTYPE_ESCAPE 0xFF
636 636
637 /** Tables used for P-frame macroblock type decoding */ 637 /** tables used for P-frame macroblock type decoding */
638 //@{ 638 //@{
639 #define NUM_PTYPE_VLCS 7 639 #define NUM_PTYPE_VLCS 7
640 #define PTYPE_VLC_SIZE 8 640 #define PTYPE_VLC_SIZE 8
641 #define PTYPE_VLC_BITS 7 641 #define PTYPE_VLC_BITS 7
642 642
668 static const uint8_t block_num_to_ptype_vlc_num[12] = { 668 static const uint8_t block_num_to_ptype_vlc_num[12] = {
669 0, 1, 2, 3, 0, 0, 0, 0, 4, 5, 0, 6 669 0, 1, 2, 3, 0, 0, 0, 0, 4, 5, 0, 6
670 }; 670 };
671 //@} 671 //@}
672 672
673 /** Tables used for P-frame macroblock type decoding */ 673 /** tables used for P-frame macroblock type decoding */
674 //@{ 674 //@{
675 #define NUM_BTYPE_VLCS 6 675 #define NUM_BTYPE_VLCS 6
676 #define BTYPE_VLC_SIZE 7 676 #define BTYPE_VLC_SIZE 7
677 #define BTYPE_VLC_BITS 6 677 #define BTYPE_VLC_BITS 6
678 678