]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/svq1.h
Properly initialize x264_picture_t in libx264.
[ffmpeg] / libavcodec / svq1.h
index 7764dd8dd94ccba647d76f44ecc73764aec94b70..3ade05d84884957598b38e54528c547b7fe19313 100644 (file)
  */
 
 /**
- * @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];
@@ -56,6 +59,6 @@ extern const uint8_t ff_svq1_inter_multistage_vlc[6][8][2];
 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 */