aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-08-27 09:26:14 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2015-08-27 09:26:14 +0200
commit3b0af76c1b43077edf5503f5b19a2abc18fa6842 (patch)
tree06d582e6e33f5ba9bdb4b05588fcb17eb36d1a7c
parent3f491224fe7fbe2b0c8e0dabe12a31121ae52d7a (diff)
parent5e129ed655bff5b6d90355c0b713d7aaba3898ec (diff)
downloadffmpeg-3b0af76c1b43077edf5503f5b19a2abc18fa6842.tar.gz
Merge commit '5e129ed655bff5b6d90355c0b713d7aaba3898ec'
* commit '5e129ed655bff5b6d90355c0b713d7aaba3898ec': dnxhddata: Group together DC-related tables Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
-rw-r--r--libavcodec/dnxhddata.c102
1 files changed, 52 insertions, 50 deletions
diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c
index e45ad5b5e2..fdd16899e3 100644
--- a/libavcodec/dnxhddata.c
+++ b/libavcodec/dnxhddata.c
@@ -258,6 +258,16 @@ static const uint8_t dnxhd_1258_chroma_weight[] = {
74, 74, 90, 100, 128, 125, 116, 116,
};
+/* Used in CID 1235, 1241, 1256 */
+static const uint8_t dnxhd_1235_dc_codes[14] = {
+ 10, 62, 11, 12, 13, 0, 1, 2, 3, 4, 14, 30, 126, 127,
+};
+
+/* Used in CID 1235, 1241, 1256 */
+static const uint8_t dnxhd_1235_dc_bits[14] = {
+ 4, 6, 4, 4, 4, 3, 3, 3, 3, 3, 4, 5, 7, 7,
+};
+
/* Used in CID 1237, 1242, 1253 */
static const uint8_t dnxhd_1237_dc_codes[12] = {
0, 12, 13, 1, 2, 3, 4, 5, 14, 30, 62, 63,
@@ -268,6 +278,48 @@ static const uint8_t dnxhd_1237_dc_bits[12] = {
3, 4, 4, 3, 3, 3, 3, 3, 4, 5, 6, 6,
};
+/* Used in CID 1238, 1243 */
+static const uint8_t dnxhd_1238_dc_codes[12] = {
+ 0, 12, 13, 1, 2, 3, 4, 5, 14, 30, 62, 63,
+};
+
+/* Used in CID 1238, 1243 */
+static const uint8_t dnxhd_1238_dc_bits[12] = {
+ 3, 4, 4, 3, 3, 3, 3, 3, 4, 5, 6, 6,
+};
+
+static const uint8_t dnxhd_1250_dc_codes[14] = {
+ 10, 62, 11, 12, 13, 0, 1, 2, 3, 4, 14, 30, 126, 127
+};
+
+static const uint8_t dnxhd_1250_dc_bits[14] = {
+ 4, 6, 4, 4, 4, 3, 3, 3, 3, 3, 4, 5, 7, 7
+};
+
+static const uint8_t dnxhd_1251_dc_codes[12] = {
+ 0, 12, 13, 1, 2, 3, 4, 5, 14, 30, 62, 63,
+};
+
+static const uint8_t dnxhd_1251_dc_bits[12] = {
+ 3, 4, 4, 3, 3, 3, 3, 3, 4, 5, 6, 6,
+};
+
+static const uint8_t dnxhd_1252_dc_codes[12] = {
+ 0, 12, 13, 1, 2, 3, 4, 5, 14, 30, 62, 63,
+};
+
+static const uint8_t dnxhd_1252_dc_bits[12] = {
+ 3, 4, 4, 3, 3, 3, 3, 3, 4, 5, 6, 6,
+};
+
+static const uint8_t dnxhd_1258_dc_codes[14] = {
+ 0, 12, 13, 1, 2, 3, 4, 5, 14, 30, 62, 63, 0, 0,
+};
+
+static const uint8_t dnxhd_1258_dc_bits[14] = {
+ 3, 4, 4, 3, 3, 3, 3, 3, 4, 5, 6, 6, 0, 0,
+};
+
/* Used in CID 1237, 1242, 1253 */
static const uint16_t dnxhd_1237_ac_codes[257] = {
0, 1, 4, 5, 12, 26, 27, 56,
@@ -396,16 +448,6 @@ static const uint8_t dnxhd_1237_run[62] = {
};
/* Used in CID 1238, 1243 */
-static const uint8_t dnxhd_1238_dc_codes[12] = {
- 0, 12, 13, 1, 2, 3, 4, 5, 14, 30, 62, 63,
-};
-
-/* Used in CID 1238, 1243 */
-static const uint8_t dnxhd_1238_dc_bits[12] = {
- 3, 4, 4, 3, 3, 3, 3, 3, 4, 5, 6, 6,
-};
-
-/* Used in CID 1238, 1243 */
static const uint16_t dnxhd_1238_ac_codes[257] = {
0, 1, 4, 10, 11, 24, 25, 26,
54, 55, 56, 57, 116, 117, 118, 119,
@@ -532,16 +574,6 @@ static const uint8_t dnxhd_1238_run[62] = {
};
/* Used in CID 1235, 1241, 1256 */
-static const uint8_t dnxhd_1235_dc_codes[14] = {
- 10, 62, 11, 12, 13, 0, 1, 2, 3, 4, 14, 30, 126, 127,
-};
-
-/* Used in CID 1235, 1241, 1256 */
-static const uint8_t dnxhd_1235_dc_bits[14] = {
- 4, 6, 4, 4, 4, 3, 3, 3, 3, 3, 4, 5, 7, 7,
-};
-
-/* Used in CID 1235, 1241, 1256 */
static const uint16_t dnxhd_1235_ac_codes[257] = {
0, 1, 4, 10, 11, 24, 25, 26,
54, 55, 56, 57, 116, 117, 118, 119,
@@ -649,12 +681,6 @@ static const uint8_t dnxhd_1235_run[62] = {
49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
};
-static const uint8_t dnxhd_1250_dc_codes[14] = {
- 10, 62, 11, 12, 13, 0, 1, 2, 3, 4, 14, 30, 126, 127
-};
-static const uint8_t dnxhd_1250_dc_bits[14] = {
- 4, 6, 4, 4, 4, 3, 3, 3, 3, 3, 4, 5, 7, 7
-};
static const uint16_t dnxhd_1250_ac_codes[257] = {
0, 1, 4, 10, 11, 24, 25, 26,
54, 55, 56, 57, 116, 117, 118, 119,
@@ -770,14 +796,6 @@ static const uint8_t dnxhd_1250_run[62] = {
49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62
};
-static const uint8_t dnxhd_1251_dc_codes[12] = {
- 0, 12, 13, 1, 2, 3, 4, 5, 14, 30, 62, 63,
-};
-
-static const uint8_t dnxhd_1251_dc_bits[12] = {
- 3, 4, 4, 3, 3, 3, 3, 3, 4, 5, 6, 6,
-};
-
static const uint16_t dnxhd_1251_ac_codes[257] = {
0, 1, 4, 10, 11, 24, 25, 26,
54, 55, 56, 57, 116, 117, 118, 119,
@@ -902,14 +920,6 @@ static const uint8_t dnxhd_1251_run[62] = {
49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
};
-static const uint8_t dnxhd_1252_dc_codes[12] = {
- 0, 12, 13, 1, 2, 3, 4, 5, 14, 30, 62, 63,
-};
-
-static const uint8_t dnxhd_1252_dc_bits[12] = {
- 3, 4, 4, 3, 3, 3, 3, 3, 4, 5, 6, 6,
-};
-
/* Used in CID 1252, 1258 */
static const uint16_t dnxhd_1252_ac_codes[257] = {
0, 1, 4, 10, 11, 12, 26, 27,
@@ -1009,14 +1019,6 @@ static const uint8_t dnxhd_1252_ac_flags[257] = {
3,
};
-static const uint8_t dnxhd_1258_dc_codes[14] = {
- 0, 12, 13, 1, 2, 3, 4, 5, 14, 30, 62, 63, 0, 0,
-};
-
-static const uint8_t dnxhd_1258_dc_bits[14] = {
- 3, 4, 4, 3, 3, 3, 3, 3, 4, 5, 6, 6, 0, 0,
-};
-
const CIDEntry ff_dnxhd_cid_table[] = {
{ 1235, 1920, 1080, 0, 917504, 917504, 6, 10, 4,
dnxhd_1235_luma_weight, dnxhd_1235_chroma_weight,