[x265] [PATCH 2 of 2] api: emit a frightening warning when Main12 is used
Steve Borho
steve at borho.org
Thu Jul 2 21:43:39 CEST 2015
# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1435866203 18000
# Thu Jul 02 14:43:23 2015 -0500
# Node ID 3d916f3c452f42e828db84657d395f2fad7cd7d7
# Parent c2fcd2315b664f7e547d691f27aefaeef616944c
api: emit a frightening warning when Main12 is used
diff -r c2fcd2315b66 -r 3d916f3c452f source/encoder/api.cpp
--- a/source/encoder/api.cpp Thu Jul 02 14:42:51 2015 -0500
+++ b/source/encoder/api.cpp Thu Jul 02 14:43:23 2015 -0500
@@ -50,7 +50,9 @@
return NULL;
#if HIGH_BIT_DEPTH
- if (X265_DEPTH != 10 && X265_DEPTH != 12)
+ if (X265_DEPTH == 12)
+ x265_log(p, X265_LOG_WARNING, "Main12 is HIGHLY experimental, do not use!\n");
+ else if (X265_DEPTH != 10 && X265_DEPTH != 12)
#else
if (X265_DEPTH != 8)
#endif
More information about the x265-devel
mailing list