Mercurial > libavcodec.hg
comparison svq1.h @ 10832:f20726a6d538 libavcodec
Add a function to match a 2 element vector of uint16_t and use it in h263 and svq1
instead of custom and bloated code to find an index into a w/h array.
author | michael |
---|---|
date | Sat, 09 Jan 2010 18:33:21 +0000 |
parents | e9d9d946f213 |
children | 7dd2a45249a9 |
comparison
equal
deleted
inserted
replaced
10831:94982978af3b | 10832:f20726a6d538 |
---|---|
41 #define SVQ1_BLOCK_INTER 1 | 41 #define SVQ1_BLOCK_INTER 1 |
42 #define SVQ1_BLOCK_INTER_4V 2 | 42 #define SVQ1_BLOCK_INTER_4V 2 |
43 #define SVQ1_BLOCK_INTRA 3 | 43 #define SVQ1_BLOCK_INTRA 3 |
44 | 44 |
45 struct svq1_frame_size { | 45 struct svq1_frame_size { |
46 int width; | 46 uint16_t width; |
47 int height; | 47 uint16_t height; |
48 }; | 48 }; |
49 | 49 |
50 uint16_t ff_svq1_packet_checksum (const uint8_t *data, const int length, | 50 uint16_t ff_svq1_packet_checksum (const uint8_t *data, const int length, |
51 int value); | 51 int value); |
52 | 52 |
57 extern const uint8_t ff_svq1_intra_multistage_vlc[6][8][2]; | 57 extern const uint8_t ff_svq1_intra_multistage_vlc[6][8][2]; |
58 extern const uint8_t ff_svq1_inter_multistage_vlc[6][8][2]; | 58 extern const uint8_t ff_svq1_inter_multistage_vlc[6][8][2]; |
59 extern const uint16_t ff_svq1_intra_mean_vlc[256][2]; | 59 extern const uint16_t ff_svq1_intra_mean_vlc[256][2]; |
60 extern const uint16_t ff_svq1_inter_mean_vlc[512][2]; | 60 extern const uint16_t ff_svq1_inter_mean_vlc[512][2]; |
61 | 61 |
62 extern const struct svq1_frame_size ff_svq1_frame_size_table[8]; | 62 extern const struct svq1_frame_size ff_svq1_frame_size_table[7]; |
63 | 63 |
64 #endif /* AVCODEC_SVQ1_H */ | 64 #endif /* AVCODEC_SVQ1_H */ |