]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rv30data.h
Add channel layout support to the AC-3 encoder.
[ffmpeg] / libavcodec / rv30data.h
index 50132ba3b3dc95db470ad2fa1297069f49075d51..2a8f3ad991bb67c6e09c7ccd61a2effb47e2967e 100644 (file)
  */
 
 /**
- * @file rv30data.h
- * Miscellaneous RV30 tables.
+ * @file libavcodec/rv30data.h
+ * miscellaneous RV30 tables
  */
 
-#ifndef FFMPEG_RV30DATA_H
-#define FFMPEG_RV30DATA_H
+#ifndef AVCODEC_RV30DATA_H
+#define AVCODEC_RV30DATA_H
 
 #include <stdint.h>
 
@@ -36,8 +36,8 @@ static const uint8_t rv30_luma_dc_quant[32] = {
 };
 
 /**
- * This table is used for storing differences
- * between predicted and real intra type.
+ * This table is used for storing the differences
+ * between the predicted and the real intra type.
  */
 static const uint8_t rv30_itype_code[9*9*2] = {
     0, 0, 0, 1, 1, 0, 1, 1, 0, 2, 2, 0, 0, 3, 3, 0, 1, 2,
@@ -52,13 +52,13 @@ static const uint8_t rv30_itype_code[9*9*2] = {
 };
 
 /**
- * This table is used for retrieving current intra type
- * basing on its neighbours and adjustment provided by
+ * This table is used for retrieving the current intra type
+ * based on its neighbors and adjustment provided by
  * code read and decoded before.
  *
- * This is really three-dimensional matrix with dimensions
- * [-1..9][-1..9][0..9], first and second coordinates
- * are detemined by top and left neighbours (-1 if unavailable).
+ * This is really three-dimensional matrix with dimensions
+ * [-1..9][-1..9][0..9]. The first and second coordinates are
+ * detemined by the top and left neighbors (-1 if unavailable).
  */
 static const uint8_t rv30_itype_from_context[900] = {
     0, 9, 9, 9, 9, 9, 9, 9, 9,
@@ -171,4 +171,11 @@ static const uint8_t rv30_itype_from_context[900] = {
     2, 7, 8, 4, 0, 6, 1, 5, 3,
     2, 8, 3, 0, 7, 4, 1, 6, 5,
 };
-#endif /* FFMPEG_RV30DATA_H */
+
+/**
+ * Loop filter limits are taken from this table.
+ */
+static const uint8_t rv30_loop_filt_lim[32] = {
+     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5
+};
+#endif /* AVCODEC_RV30DATA_H */