[x265] dither: return if encoder and picture depth are the same
Deepthi Nandakumar
deepthi at multicorewareinc.com
Fri Apr 8 16:34:57 CEST 2016
# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1460125401 -19800
# Fri Apr 08 19:53:21 2016 +0530
# Node ID c7f345876a472d8edd12a811338c72f7fb2922fe
# Parent 66867beb300e105ea5c2b557d93be29838eca391
dither: return if encoder and picture depth are the same
diff -r 66867beb300e -r c7f345876a47 doc/reST/cli.rst
--- a/doc/reST/cli.rst Fri Apr 08 19:56:18 2016 +0530
+++ b/doc/reST/cli.rst Fri Apr 08 19:53:21 2016 +0530
@@ -376,10 +376,10 @@
.. option:: --dither
- Enable high quality downscaling. Dithering is based on the diffusion
- of errors from one row of pixels to the next row of pixels in a
- picture. Only applicable when the input bit depth is larger than
- 8bits and internal bit depth is 8bits. Default disabled
+ Enable high quality downscaling to the encoder's internal bitdepth.
+ Dithering is based on the diffusion of errors from one row of pixels
+ to the next row of pixels in a picture. Only applicable when the
+ input bit depth is larger than 8bits. Default disabled
**CLI ONLY**
diff -r 66867beb300e -r c7f345876a47 source/x265-extras.cpp
--- a/source/x265-extras.cpp Fri Apr 08 19:56:18 2016 +0530
+++ b/source/x265-extras.cpp Fri Apr 08 19:53:21 2016 +0530
@@ -335,6 +335,12 @@
return;
}
+ if (picIn.bitDepth == bitDepth)
+ {
+ fprintf(stderr, "extras[error]: dither support enabled only if
encoder depth is different from picture depth\n");
+ return;
+ }
+
/* This portion of code is from readFrame in x264. */
for (int i = 0; i < x265_cli_csps[picIn.colorSpace].planes; i++)
{
--
Deepthi Nandakumar
Engineering Manager, x265
Multicoreware, Inc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20160408/788b57a6/attachment.html>
More information about the x265-devel
mailing list