[x265] [PATCH 3 of 8] param: clarify 8bit/10bit in logs
Steve Borho
steve at borho.org
Tue Jun 23 05:03:54 CEST 2015
# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1435022674 18000
# Mon Jun 22 20:24:34 2015 -0500
# Node ID 901fc6837a25aca531c9056ed59a6e75126c4a53
# Parent 78c562d38eea28d7b99cbb8ff4a228440c50ca2c
param: clarify 8bit/10bit in logs
removes the internal bit-depth logging for Main10 encodes since we now
unconditionally report the profile and level, which unambiguously displays the
internal bitdepth
diff -r 78c562d38eea -r 901fc6837a25 source/common/param.cpp
--- a/source/common/param.cpp Mon Jun 22 20:22:25 2015 -0500
+++ b/source/common/param.cpp Mon Jun 22 20:24:34 2015 -0500
@@ -1259,9 +1259,6 @@
if (param->logLevel < X265_LOG_INFO)
return;
-#if HIGH_BIT_DEPTH
- x265_log(param, X265_LOG_INFO, "Internal bit depth : %d\n", param->internalBitDepth);
-#endif
if (param->interlaceMode)
x265_log(param, X265_LOG_INFO, "Interlaced field inputs : %s\n", x265_interlace_names[param->interlaceMode]);
diff -r 78c562d38eea -r 901fc6837a25 source/common/version.cpp
--- a/source/common/version.cpp Mon Jun 22 20:22:25 2015 -0500
+++ b/source/common/version.cpp Mon Jun 22 20:24:34 2015 -0500
@@ -83,10 +83,10 @@
#endif
#if HIGH_BIT_DEPTH
-#define BITDEPTH "16bpp"
+#define BITDEPTH "10bit"
const int PFX(max_bit_depth) = 10;
#else
-#define BITDEPTH "8bpp"
+#define BITDEPTH "8bit"
const int PFX(max_bit_depth) = 8;
#endif
diff -r 78c562d38eea -r 901fc6837a25 source/test/testbench.cpp
--- a/source/test/testbench.cpp Mon Jun 22 20:22:25 2015 -0500
+++ b/source/test/testbench.cpp Mon Jun 22 20:24:34 2015 -0500
@@ -137,8 +137,8 @@
}
int seed = (int)time(NULL);
- const char *bpp[] = { "8bpp", "16bpp" };
- printf("Using random seed %X %s\n", seed, bpp[HIGH_BIT_DEPTH]);
+ const char *bitstr[] = { "8bit", "10bit" };
+ printf("Using random seed %X %s\n", seed, bitstr[HIGH_BIT_DEPTH]);
srand(seed);
// To disable classes of tests, simply comment them out in this list
More information about the x265-devel
mailing list