*/
/**
- * @file svq1.h
+ * @file
* Sorenson Vector Quantizer #1 (SVQ1) video codec.
* For more information of the SVQ1 algorithm, visit:
* http://www.pcisys.net/~melanson/codecs/
*/
-#ifndef FFMPEG_SVQ1_H
-#define FFMPEG_SVQ1_H
+#ifndef AVCODEC_SVQ1_H
+#define AVCODEC_SVQ1_H
#include <stdint.h>
#define SVQ1_BLOCK_INTER_4V 2
#define SVQ1_BLOCK_INTRA 3
-typedef struct {
- int width;
- int height;
-} svq1_frame_size_t;
+struct svq1_frame_size {
+ uint16_t width;
+ uint16_t height;
+};
+
+uint16_t ff_svq1_packet_checksum (const uint8_t *data, const int length,
+ int value);
extern const int8_t* const ff_svq1_inter_codebooks[6];
extern const int8_t* const ff_svq1_intra_codebooks[6];
extern const uint16_t ff_svq1_intra_mean_vlc[256][2];
extern const uint16_t ff_svq1_inter_mean_vlc[512][2];
-extern const svq1_frame_size_t ff_svq1_frame_size_table[8];
+extern const struct svq1_frame_size ff_svq1_frame_size_table[7];
-#endif /* FFMPEG_SVQ1_H */
+#endif /* AVCODEC_SVQ1_H */