[x265] [PATCH 1 of 4] param: expose param.totalFrames as param_parse option name 'total-frames'

Steve Borho steve at borho.org
Fri Jul 3 20:43:58 CEST 2015


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1435945566 18000
#      Fri Jul 03 12:46:06 2015 -0500
# Node ID e1dd8753825859e4ba986b5bd4378d2a56bcff1e
# Parent  1867f1703846ad606bde5c5872b7d02c29211097
param: expose param.totalFrames as param_parse option name 'total-frames'

This way API users can get the still picture profiles signaled correctly, if
they so desire

diff -r 1867f1703846 -r e1dd87538258 doc/reST/cli.rst
--- a/doc/reST/cli.rst	Fri Jul 03 09:45:14 2015 +0530
+++ b/doc/reST/cli.rst	Fri Jul 03 12:46:06 2015 -0500
@@ -354,6 +354,13 @@
 
 	**CLI ONLY**
 
+.. option:: --total-frames <integer>
+
+	The number of frames intended to be encoded.  It may be left
+	unspecified, but when it is specified rate control can make use of
+	this information. It is also used to determine if an encode is
+	actually a stillpicture profile encode (single frame)
+
 .. option:: --dither
 
 	Enable high quality downscaling. Dithering is based on the diffusion
diff -r 1867f1703846 -r e1dd87538258 source/common/param.cpp
--- a/source/common/param.cpp	Fri Jul 03 09:45:14 2015 +0530
+++ b/source/common/param.cpp	Fri Jul 03 12:46:06 2015 -0500
@@ -582,6 +582,7 @@
         }
     }
     OPT("cu-stats") p->bLogCuStats = atobool(value);
+    OPT("total-frames") p->totalFrames = atoi(value);
     OPT("annexb") p->bAnnexB = atobool(value);
     OPT("repeat-headers") p->bRepeatHeaders = atobool(value);
     OPT("wpp") p->bEnableWavefront = atobool(value);


More information about the x265-devel mailing list