shithub: openh264

Download patch

ref: d718ad89f477fdea3defb6c2cd7e5567b89f3b6b
parent: 46d1c93016ff2b2faa9f0f716acb1e6770adb69b
parent: 60a6dceb7d2832ec5ca1c250dd719f9f7cc308d9
author: sijchen <sijchen@cisco.com>
date: Mon Apr 13 10:38:29 EDT 2015

Merge pull request #1891 from darealshinji/patch-1

Indentation in PrintHelp() for better reading flow

--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -373,41 +373,41 @@
   printf (" Syntax: welsenc.exe welsenc.cfg [options]\n");
 
   printf ("\n Supported Options:\n");
-  printf ("  -bf     Bit Stream File\n");
-  printf ("  -org	  Original file, example: -org src.yuv\n");
-  printf ("  -sw     the source width\n");
-  printf ("  -sh     the source height\n");
-  printf ("  -frms   Number of total frames to be encoded\n");
-  printf ("  -numtl  Temporal layer number (default: 1)\n");
-  printf ("  -iper   Intra period (default: -1) : must be a power of 2 of GOP size (or -1)\n");
-  printf ("  -nalsize the Maximum NAL size. which should be larger than the each layer slicesize when slice mode equals to SM_DYN_SLICE\n");
-  printf ("  -spsid   Enable id adding in SPS/PPS per IDR \n");
-  printf ("  -cabac  Entropy coding mode(0:cavlc 1:cabac \n");
-  printf ("  -denois Control denoising  (default: 0)\n");
-  printf ("  -scene  Control scene change detection (default: 0)\n");
-  printf ("  -bgd    Control background detection (default: 0)\n");
-  printf ("  -aq     Control adaptive quantization (default: 0)\n");
-  printf ("  -ltr    Control long term reference (default: 0)\n");
-  printf ("  -ltrnum Control the number of long term reference((1-4):screen LTR,(1-2):video LTR \n");
-  printf ("  -threadIdc 0: auto(dynamic imp. internal encoder); 1: multiple threads imp. disabled; > 1: count number of threads \n");
-  printf ("  -deblockIdc Loop filter idc (0: on, 1: off, \n");
+  printf ("  -bf          Bit Stream File\n");
+  printf ("  -org         Original file, example: -org src.yuv\n");
+  printf ("  -sw          the source width\n");
+  printf ("  -sh          the source height\n");
+  printf ("  -frms        Number of total frames to be encoded\n");
+  printf ("  -numtl       Temporal layer number (default: 1)\n");
+  printf ("  -iper        Intra period (default: -1) : must be a power of 2 of GOP size (or -1)\n");
+  printf ("  -nalsize     the Maximum NAL size. which should be larger than the each layer slicesize when slice mode equals to SM_DYN_SLICE\n");
+  printf ("  -spsid       Enable id adding in SPS/PPS per IDR \n");
+  printf ("  -cabac       Entropy coding mode(0:cavlc 1:cabac \n");
+  printf ("  -denois      Control denoising  (default: 0)\n");
+  printf ("  -scene       Control scene change detection (default: 0)\n");
+  printf ("  -bgd         Control background detection (default: 0)\n");
+  printf ("  -aq          Control adaptive quantization (default: 0)\n");
+  printf ("  -ltr         Control long term reference (default: 0)\n");
+  printf ("  -ltrnum      Control the number of long term reference((1-4):screen LTR,(1-2):video LTR \n");
+  printf ("  -threadIdc   0: auto(dynamic imp. internal encoder); 1: multiple threads imp. disabled; > 1: count number of threads \n");
+  printf ("  -deblockIdc  Loop filter idc (0: on, 1: off, \n");
   printf ("  -alphaOffset AlphaOffset(-6..+6): valid range \n");
-  printf ("  -betaOffset BetaOffset (-6..+6): valid range\n");
+  printf ("  -betaOffset  BetaOffset (-6..+6): valid range\n");
   printf ("  -rc	  rate control mode: 0-quality mode; 1-bitrate mode; 2-bitrate limited mode; -1-rc off \n");
   printf ("  -tarb	  Overall target bitrate\n");
   printf ("  -maxbrTotal  Overall max bitrate\n");
-  printf ("  -numl   Number Of Layers: Must exist with layer_cfg file and the number of input layer_cfg file must equal to the value set by this command\n");
+  printf ("  -numl        Number Of Layers: Must exist with layer_cfg file and the number of input layer_cfg file must equal to the value set by this command\n");
   printf ("  The options below are layer-based: (need to be set with layer id)\n");
-  printf ("  -lconfig (Layer) (spatial layer configure file)\n");
-  printf ("  -drec		(Layer) (reconstruction file);example: -drec 0 rec.yuv.  Setting the reconstruction file, this will only functioning when dumping reconstruction is enabled\n");
-  printf ("  -dw		(Layer) (output width)\n");
-  printf ("  -dh		(Layer) (output height)\n");
-  printf ("  -frout  	(Layer) (output frame rate)\n");
-  printf ("  -lqp		(Layer) (base quality layer qp : must work with -ldeltaqp or -lqparr)\n");
-  printf ("  -ltarb	    (Layer) (spatial layer target bitrate)\n");
-  printf ("  -lmaxb     (Layer) (spatial layer max bitrate)\n");
-  printf ("  -slcmd   (Layer) (spatial layer slice mode): pls refer to layerX.cfg for details ( -slcnum: set target slice num; -slcsize: set target slice size constraint ) \n");
-  printf ("  -trace   (Level)\n");
+  printf ("  -lconfig     (Layer) (spatial layer configure file)\n");
+  printf ("  -drec        (Layer) (reconstruction file);example: -drec 0 rec.yuv.  Setting the reconstruction file, this will only functioning when dumping reconstruction is enabled\n");
+  printf ("  -dw          (Layer) (output width)\n");
+  printf ("  -dh          (Layer) (output height)\n");
+  printf ("  -frout       (Layer) (output frame rate)\n");
+  printf ("  -lqp         (Layer) (base quality layer qp : must work with -ldeltaqp or -lqparr)\n");
+  printf ("  -ltarb       (Layer) (spatial layer target bitrate)\n");
+  printf ("  -lmaxb       (Layer) (spatial layer max bitrate)\n");
+  printf ("  -slcmd       (Layer) (spatial layer slice mode): pls refer to layerX.cfg for details ( -slcnum: set target slice num; -slcsize: set target slice size constraint ) \n");
+  printf ("  -trace       (Level)\n");
   printf ("\n");
 }