mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Add a script for updating README
Adds script tools/update_readme.sh for regenerating the "Using Kvazaar" section of README.md from the output of "kvazaar --help".
This commit is contained in:
parent
aac5373095
commit
40c7198f7d
235
README.md
235
README.md
|
@ -13,129 +13,132 @@ http://ultravideo.cs.tut.fi/#encoder for more information.
|
||||||
|
|
||||||
##Using Kvazaar
|
##Using Kvazaar
|
||||||
|
|
||||||
Usage:
|
[comment]: # (BEGIN KVAZAAR HELP MESSAGE)
|
||||||
kvazaar -i <input> --input-res <width>x<height> -o <output>
|
```
|
||||||
|
Usage:
|
||||||
|
kvazaar -i <input> --input-res <width>x<height> -o <output>
|
||||||
|
|
||||||
Optional parameters:
|
Optional parameters:
|
||||||
--help : Print this help message and exit
|
--help : Print this help message and exit
|
||||||
--version : Print version information and exit
|
--version : Print version information and exit
|
||||||
-n, --frames <integer> : Number of frames to code [all]
|
-n, --frames <integer> : Number of frames to code [all]
|
||||||
--seek <integer> : First frame to code [0]
|
--seek <integer> : First frame to code [0]
|
||||||
--input-res <int>x<int> : Input resolution (width x height) or
|
--input-res <int>x<int> : Input resolution (width x height) or
|
||||||
auto : try to detect from file name [auto]
|
auto : try to detect from file name [auto]
|
||||||
--input-fps <num>/<denom> : Framerate of the input video [25.0]
|
--input-fps <num>/<denom> : Framerate of the input video [25.0]
|
||||||
-q, --qp <integer> : Quantization Parameter [32]
|
-q, --qp <integer> : Quantization Parameter [32]
|
||||||
-p, --period <integer> : Period of intra pictures [0]
|
-p, --period <integer> : Period of intra pictures [0]
|
||||||
0: only first picture is intra
|
0: only first picture is intra
|
||||||
1: all pictures are intra
|
1: all pictures are intra
|
||||||
2-N: every Nth picture is intra
|
2-N: every Nth picture is intra
|
||||||
--vps-period <integer> : Specify how often the video parameter set is
|
--vps-period <integer> : Specify how often the video parameter set is
|
||||||
re-sent. [0]
|
re-sent. [0]
|
||||||
0: only send VPS with the first frame
|
0: only send VPS with the first frame
|
||||||
1: send VPS with every intra frame
|
1: send VPS with every intra frame
|
||||||
N: send VPS with every Nth intra frame
|
N: send VPS with every Nth intra frame
|
||||||
-r, --ref <integer> : Reference frames, range 1..15 [3]
|
-r, --ref <integer> : Reference frames, range 1..15 [3]
|
||||||
--no-deblock : Disable deblocking filter
|
--no-deblock : Disable deblocking filter
|
||||||
--deblock <beta:tc> : Deblocking filter parameters
|
--deblock <beta:tc> : Deblocking filter parameters
|
||||||
beta and tc range is -6..6 [0:0]
|
beta and tc range is -6..6 [0:0]
|
||||||
--no-sao : Disable sample adaptive offset
|
--no-sao : Disable sample adaptive offset
|
||||||
--no-rdoq : Disable RDO quantization
|
--no-rdoq : Disable RDO quantization
|
||||||
--no-signhide : Disable sign hiding in quantization
|
--no-signhide : Disable sign hiding in quantization
|
||||||
--smp : Enable Symmetric Motion Partition
|
--smp : Enable Symmetric Motion Partition
|
||||||
--amp : Enable Asymmetric Motion Partition
|
--amp : Enable Asymmetric Motion Partition
|
||||||
--rd <integer> : Rate-Distortion Optimization level [1]
|
--rd <integer> : Rate-Distortion Optimization level [1]
|
||||||
0: no RDO
|
0: no RDO
|
||||||
1: estimated RDO
|
1: estimated RDO
|
||||||
2: full RDO
|
2: full RDO
|
||||||
--mv-rdo : Enable Rate-Distortion Optimized motion vector costs
|
--mv-rdo : Enable Rate-Distortion Optimized motion vector costs
|
||||||
--full-intra-search : Try all intra modes.
|
--full-intra-search : Try all intra modes.
|
||||||
--no-transform-skip : Disable transform skip
|
--no-transform-skip : Disable transform skip
|
||||||
--aud : Use access unit delimiters
|
--aud : Use access unit delimiters
|
||||||
--cqmfile <string> : Custom Quantization Matrices from a file
|
--cqmfile <string> : Custom Quantization Matrices from a file
|
||||||
--debug <string> : Output encoders reconstruction.
|
--debug <string> : Output encoders reconstruction.
|
||||||
--cpuid <integer> : Disable runtime cpu optimizations with value 0.
|
--cpuid <integer> : Disable runtime cpu optimizations with value 0.
|
||||||
--me <string> : Set integer motion estimation algorithm ["hexbs"]
|
--me <string> : Set integer motion estimation algorithm ["hexbs"]
|
||||||
"hexbs": Hexagon Based Search (faster)
|
"hexbs": Hexagon Based Search (faster)
|
||||||
"tz": Test Zone Search (better quality)
|
"tz": Test Zone Search (better quality)
|
||||||
"full": Full Search (super slow)
|
"full": Full Search (super slow)
|
||||||
--subme <integer> : Set fractional pixel motion estimation level [1].
|
--subme <integer> : Set fractional pixel motion estimation level [1].
|
||||||
0: only integer motion estimation
|
0: only integer motion estimation
|
||||||
1: fractional pixel motion estimation enabled
|
1: fractional pixel motion estimation enabled
|
||||||
--source-scan-type <string> : Set source scan type ["progressive"].
|
--source-scan-type <string> : Set source scan type ["progressive"].
|
||||||
"progressive": progressive scan
|
"progressive": progressive scan
|
||||||
"tff": top field first
|
"tff": top field first
|
||||||
"bff": bottom field first
|
"bff": bottom field first
|
||||||
--pu-depth-inter <int>-<int> : Range for sizes of inter prediction units to try.
|
--pu-depth-inter <int>-<int> : Range for sizes of inter prediction units to try.
|
||||||
0: 64x64, 1: 32x32, 2: 16x16, 3: 8x8
|
0: 64x64, 1: 32x32, 2: 16x16, 3: 8x8
|
||||||
--pu-depth-intra <int>-<int> : Range for sizes of intra prediction units to try.
|
--pu-depth-intra <int>-<int> : Range for sizes of intra prediction units to try.
|
||||||
0: 64x64, 1: 32x32, 2: 16x16, 3: 8x8, 4: 4x4
|
0: 64x64, 1: 32x32, 2: 16x16, 3: 8x8, 4: 4x4
|
||||||
--no-info : Don't add information about the encoder to settings.
|
--no-info : Don't add information about the encoder to settings.
|
||||||
--gop <string> : Definition for GOP [0]
|
--gop <string> : Definition of GOP structure [0]
|
||||||
- 0 disabled
|
"0": disabled
|
||||||
- 8 B-frame pyramid of length 8
|
"8": B-frame pyramid of length 8
|
||||||
- lp-gop syntax, defined below (example: g8d4r3t2)
|
"lp-<string>": lp-gop definition (e.g. lp-g8d4r3t2)
|
||||||
--bipred : Enable bi-prediction search
|
--bipred : Enable bi-prediction search
|
||||||
--bitrate <integer> : Target bitrate. [0]
|
--bitrate <integer> : Target bitrate. [0]
|
||||||
0: disable rate-control
|
0: disable rate-control
|
||||||
N: target N bits per second
|
N: target N bits per second
|
||||||
--preset <string> : Use preset. This will override previous options.
|
--preset <string> : Use preset. This will override previous options.
|
||||||
ultrafast, superfast,veryfast, faster,
|
ultrafast, superfast,veryfast, faster,
|
||||||
fast, medium, slow, slower, veryslow, placebo
|
fast, medium, slow, slower, veryslow, placebo
|
||||||
--no-psnr : Don't calculate PSNR for frames
|
--no-psnr : Don't calculate PSNR for frames
|
||||||
|
|
||||||
Video Usability Information:
|
Video Usability Information:
|
||||||
--sar <width:height> : Specify Sample Aspect Ratio
|
--sar <width:height> : Specify Sample Aspect Ratio
|
||||||
--overscan <string> : Specify crop overscan setting ["undef"]
|
--overscan <string> : Specify crop overscan setting ["undef"]
|
||||||
- undef, show, crop
|
- undef, show, crop
|
||||||
--videoformat <string> : Specify video format ["undef"]
|
--videoformat <string> : Specify video format ["undef"]
|
||||||
- component, pal, ntsc, secam, mac, undef
|
- component, pal, ntsc, secam, mac, undef
|
||||||
--range <string> : Specify color range ["tv"]
|
--range <string> : Specify color range ["tv"]
|
||||||
- tv, pc
|
- tv, pc
|
||||||
--colorprim <string> : Specify color primaries ["undef"]
|
--colorprim <string> : Specify color primaries ["undef"]
|
||||||
- undef, bt709, bt470m, bt470bg,
|
- undef, bt709, bt470m, bt470bg,
|
||||||
smpte170m, smpte240m, film, bt2020
|
smpte170m, smpte240m, film, bt2020
|
||||||
--transfer <string> : Specify transfer characteristics ["undef"]
|
--transfer <string> : Specify transfer characteristics ["undef"]
|
||||||
- undef, bt709, bt470m, bt470bg,
|
- undef, bt709, bt470m, bt470bg,
|
||||||
smpte170m, smpte240m, linear, log100,
|
smpte170m, smpte240m, linear, log100,
|
||||||
log316, iec61966-2-4, bt1361e,
|
log316, iec61966-2-4, bt1361e,
|
||||||
iec61966-2-1, bt2020-10, bt2020-12
|
iec61966-2-1, bt2020-10, bt2020-12
|
||||||
--colormatrix <string> : Specify color matrix setting ["undef"]
|
--colormatrix <string> : Specify color matrix setting ["undef"]
|
||||||
- undef, bt709, fcc, bt470bg, smpte170m,
|
- undef, bt709, fcc, bt470bg, smpte170m,
|
||||||
smpte240m, GBR, YCgCo, bt2020nc, bt2020c
|
smpte240m, GBR, YCgCo, bt2020nc, bt2020c
|
||||||
--chromaloc <integer> : Specify chroma sample location (0 to 5) [0]
|
--chromaloc <integer> : Specify chroma sample location (0 to 5) [0]
|
||||||
|
|
||||||
Parallel processing:
|
Parallel processing:
|
||||||
--threads <integer> : Maximum number of threads to use.
|
--threads <integer> : Maximum number of threads to use.
|
||||||
Disable threads if set to 0.
|
Disable threads if set to 0.
|
||||||
|
|
||||||
Tiles:
|
Tiles:
|
||||||
--tiles-width-split <string>|u<int> :
|
--tiles-width-split <string>|u<int> :
|
||||||
Specifies a comma separated list of pixel
|
Specifies a comma separated list of pixel
|
||||||
positions of tiles columns separation coordinates.
|
positions of tiles columns separation coordinates.
|
||||||
Can also be u followed by and a single int n,
|
Can also be u followed by and a single int n,
|
||||||
in which case it produces columns of uniform width.
|
in which case it produces columns of uniform width.
|
||||||
--tiles-height-split <string>|u<int> :
|
--tiles-height-split <string>|u<int> :
|
||||||
Specifies a comma separated list of pixel
|
Specifies a comma separated list of pixel
|
||||||
positions of tiles rows separation coordinates.
|
positions of tiles rows separation coordinates.
|
||||||
Can also be u followed by and a single int n,
|
Can also be u followed by and a single int n,
|
||||||
in which case it produces rows of uniform height.
|
in which case it produces rows of uniform height.
|
||||||
|
|
||||||
Wpp:
|
Wpp:
|
||||||
--wpp : Enable wavefront parallel processing
|
--wpp : Enable wavefront parallel processing
|
||||||
--owf <integer>|auto : Number of parallel frames to process. 0 to disable.
|
--owf <integer>|auto : Number of parallel frames to process. 0 to disable.
|
||||||
|
|
||||||
Slices:
|
Slices:
|
||||||
--slice-addresses <string>|u<int>:
|
--slice-addresses <string>|u<int> :
|
||||||
Specifies a comma separated list of LCU
|
Specifies a comma separated list of LCU
|
||||||
positions in tile scan order of tile separations.
|
positions in tile scan order of tile separations.
|
||||||
Can also be u followed by and a single int n,
|
Can also be u followed by and a single int n,
|
||||||
in which case it produces uniform slice length.
|
in which case it produces uniform slice length.
|
||||||
|
|
||||||
Deprecated parameters: (might be removed at some point)
|
|
||||||
Use --input-res:
|
|
||||||
-w, --width : Width of input in pixels
|
|
||||||
-h, --height : Height of input in pixels
|
|
||||||
|
|
||||||
|
Deprecated parameters: (might be removed at some point)
|
||||||
|
Use --input-res:
|
||||||
|
-w, --width : Width of input in pixels
|
||||||
|
-h, --height : Height of input in pixels
|
||||||
|
```
|
||||||
|
[comment]: # (END KVAZAAR HELP MESSAGE)
|
||||||
|
|
||||||
###For example:
|
###For example:
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ EOF
|
||||||
|
|
||||||
kvazaar --help 2>&1 | tail -n+5 | head -n-4 | \
|
kvazaar --help 2>&1 | tail -n+5 | head -n-4 | \
|
||||||
sed 's| : |\n|g;
|
sed 's| : |\n|g;
|
||||||
s|>: $|>|g;
|
s| :$||g;
|
||||||
s|^ --|.TP\n\\fB--|g;
|
s|^ --|.TP\n\\fB--|g;
|
||||||
s|^ --|.TP\n\\fB--|g;
|
s|^ --|.TP\n\\fB--|g;
|
||||||
s|^ -|.TP\n\\fB-|g;
|
s|^ -|.TP\n\\fB-|g;
|
||||||
|
|
|
@ -22,7 +22,7 @@ Input resolution (width x height) or
|
||||||
auto
|
auto
|
||||||
try to detect from file name [auto]
|
try to detect from file name [auto]
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-input\-fps <number>
|
\fB\-\-input\-fps <num>/<denom>
|
||||||
Framerate of the input video [25.0]
|
Framerate of the input video [25.0]
|
||||||
.TP
|
.TP
|
||||||
\fB\-q\fR, \fB\-\-qp <integer>
|
\fB\-q\fR, \fB\-\-qp <integer>
|
||||||
|
@ -78,12 +78,6 @@ Enable Rate\-Distortion Optimized motion vector costs
|
||||||
\fB\-\-full\-intra\-search
|
\fB\-\-full\-intra\-search
|
||||||
Try all intra modes.
|
Try all intra modes.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-me <string>
|
|
||||||
Set integer motion estimation algorithm ["hexbs"]
|
|
||||||
"hexbs": Hexagon Based Search (faster)
|
|
||||||
"tz": Test Zone Search (better quality)
|
|
||||||
"full": Full Search (super slow)
|
|
||||||
.TP
|
|
||||||
\fB\-\-no\-transform\-skip
|
\fB\-\-no\-transform\-skip
|
||||||
Disable transform skip
|
Disable transform skip
|
||||||
.TP
|
.TP
|
||||||
|
@ -99,6 +93,12 @@ Output encoders reconstruction.
|
||||||
\fB\-\-cpuid <integer>
|
\fB\-\-cpuid <integer>
|
||||||
Disable runtime cpu optimizations with value 0.
|
Disable runtime cpu optimizations with value 0.
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-\-me <string>
|
||||||
|
Set integer motion estimation algorithm ["hexbs"]
|
||||||
|
"hexbs": Hexagon Based Search (faster)
|
||||||
|
"tz": Test Zone Search (better quality)
|
||||||
|
"full": Full Search (super slow)
|
||||||
|
.TP
|
||||||
\fB\-\-subme <integer>
|
\fB\-\-subme <integer>
|
||||||
Set fractional pixel motion estimation level [1].
|
Set fractional pixel motion estimation level [1].
|
||||||
0: only integer motion estimation
|
0: only integer motion estimation
|
||||||
|
@ -121,8 +121,11 @@ Range for sizes of intra prediction units to try.
|
||||||
\fB\-\-no\-info
|
\fB\-\-no\-info
|
||||||
Don't add information about the encoder to settings.
|
Don't add information about the encoder to settings.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-gop <int>
|
\fB\-\-gop <string>
|
||||||
Length of Group of Pictures, must be 8 or 0 [0]
|
Definition of GOP structure [0]
|
||||||
|
"0": disabled
|
||||||
|
"8": B\-frame pyramid of length 8
|
||||||
|
"lp\-<string>": lp\-gop definition (e.g. lp\-g8d4r3t2)
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-bipred
|
\fB\-\-bipred
|
||||||
Enable bi\-prediction search
|
Enable bi\-prediction search
|
||||||
|
@ -133,7 +136,7 @@ Target bitrate. [0]
|
||||||
N: target N bits per second
|
N: target N bits per second
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-preset <string>
|
\fB\-\-preset <string>
|
||||||
Use preset
|
Use preset. This will override previous options.
|
||||||
ultrafast, superfast,veryfast, faster,
|
ultrafast, superfast,veryfast, faster,
|
||||||
fast, medium, slow, slower, veryslow, placebo
|
fast, medium, slow, slower, veryslow, placebo
|
||||||
.TP
|
.TP
|
||||||
|
@ -186,14 +189,12 @@ Disable threads if set to 0.
|
||||||
.SS "Tiles:"
|
.SS "Tiles:"
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-tiles\-width\-split <string>|u<int>
|
\fB\-\-tiles\-width\-split <string>|u<int>
|
||||||
|
|
||||||
Specifies a comma separated list of pixel
|
Specifies a comma separated list of pixel
|
||||||
positions of tiles columns separation coordinates.
|
positions of tiles columns separation coordinates.
|
||||||
Can also be u followed by and a single int n,
|
Can also be u followed by and a single int n,
|
||||||
in which case it produces columns of uniform width.
|
in which case it produces columns of uniform width.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-tiles\-height\-split <string>|u<int>
|
\fB\-\-tiles\-height\-split <string>|u<int>
|
||||||
|
|
||||||
Specifies a comma separated list of pixel
|
Specifies a comma separated list of pixel
|
||||||
positions of tiles rows separation coordinates.
|
positions of tiles rows separation coordinates.
|
||||||
Can also be u followed by and a single int n,
|
Can also be u followed by and a single int n,
|
||||||
|
|
23
src/cli.c
23
src/cli.c
|
@ -300,7 +300,7 @@ void print_help(void)
|
||||||
" --seek <integer> : First frame to code [0]\n"
|
" --seek <integer> : First frame to code [0]\n"
|
||||||
" --input-res <int>x<int> : Input resolution (width x height) or\n"
|
" --input-res <int>x<int> : Input resolution (width x height) or\n"
|
||||||
" auto : try to detect from file name [auto]\n"
|
" auto : try to detect from file name [auto]\n"
|
||||||
" --input-fps <number> : Framerate of the input video [25.0]\n"
|
" --input-fps <num>/<denom> : Framerate of the input video [25.0]\n"
|
||||||
" -q, --qp <integer> : Quantization Parameter [32]\n"
|
" -q, --qp <integer> : Quantization Parameter [32]\n"
|
||||||
" -p, --period <integer> : Period of intra pictures [0]\n"
|
" -p, --period <integer> : Period of intra pictures [0]\n"
|
||||||
" 0: only first picture is intra\n"
|
" 0: only first picture is intra\n"
|
||||||
|
@ -326,15 +326,15 @@ void print_help(void)
|
||||||
" 2: full RDO\n"
|
" 2: full RDO\n"
|
||||||
" --mv-rdo : Enable Rate-Distortion Optimized motion vector costs\n"
|
" --mv-rdo : Enable Rate-Distortion Optimized motion vector costs\n"
|
||||||
" --full-intra-search : Try all intra modes.\n"
|
" --full-intra-search : Try all intra modes.\n"
|
||||||
" --me <string> : Set integer motion estimation algorithm [\"hexbs\"]\n"
|
|
||||||
" \"hexbs\": Hexagon Based Search (faster)\n"
|
|
||||||
" \"tz\": Test Zone Search (better quality)\n"
|
|
||||||
" \"full\": Full Search (super slow)\n"
|
|
||||||
" --no-transform-skip : Disable transform skip\n"
|
" --no-transform-skip : Disable transform skip\n"
|
||||||
" --aud : Use access unit delimiters\n"
|
" --aud : Use access unit delimiters\n"
|
||||||
" --cqmfile <string> : Custom Quantization Matrices from a file\n"
|
" --cqmfile <string> : Custom Quantization Matrices from a file\n"
|
||||||
" --debug <string> : Output encoders reconstruction.\n"
|
" --debug <string> : Output encoders reconstruction.\n"
|
||||||
" --cpuid <integer> : Disable runtime cpu optimizations with value 0.\n"
|
" --cpuid <integer> : Disable runtime cpu optimizations with value 0.\n"
|
||||||
|
" --me <string> : Set integer motion estimation algorithm [\"hexbs\"]\n"
|
||||||
|
" \"hexbs\": Hexagon Based Search (faster)\n"
|
||||||
|
" \"tz\": Test Zone Search (better quality)\n"
|
||||||
|
" \"full\": Full Search (super slow)\n"
|
||||||
" --subme <integer> : Set fractional pixel motion estimation level [1].\n"
|
" --subme <integer> : Set fractional pixel motion estimation level [1].\n"
|
||||||
" 0: only integer motion estimation\n"
|
" 0: only integer motion estimation\n"
|
||||||
" 1: fractional pixel motion estimation enabled\n"
|
" 1: fractional pixel motion estimation enabled\n"
|
||||||
|
@ -347,12 +347,15 @@ void print_help(void)
|
||||||
" --pu-depth-intra <int>-<int> : Range for sizes of intra prediction units to try.\n"
|
" --pu-depth-intra <int>-<int> : Range for sizes of intra prediction units to try.\n"
|
||||||
" 0: 64x64, 1: 32x32, 2: 16x16, 3: 8x8, 4: 4x4\n"
|
" 0: 64x64, 1: 32x32, 2: 16x16, 3: 8x8, 4: 4x4\n"
|
||||||
" --no-info : Don't add information about the encoder to settings.\n"
|
" --no-info : Don't add information about the encoder to settings.\n"
|
||||||
" --gop <int> : Length of Group of Pictures, must be 8 or 0 [0]\n"
|
" --gop <string> : Definition of GOP structure [0]\n"
|
||||||
|
" \"0\": disabled\n"
|
||||||
|
" \"8\": B-frame pyramid of length 8\n"
|
||||||
|
" \"lp-<string>\": lp-gop definition (e.g. lp-g8d4r3t2)\n"
|
||||||
" --bipred : Enable bi-prediction search\n"
|
" --bipred : Enable bi-prediction search\n"
|
||||||
" --bitrate <integer> : Target bitrate. [0]\n"
|
" --bitrate <integer> : Target bitrate. [0]\n"
|
||||||
" 0: disable rate-control\n"
|
" 0: disable rate-control\n"
|
||||||
" N: target N bits per second\n"
|
" N: target N bits per second\n"
|
||||||
" --preset <string> : Use preset\n"
|
" --preset <string> : Use preset. This will override previous options.\n"
|
||||||
" ultrafast, superfast,veryfast, faster,\n"
|
" ultrafast, superfast,veryfast, faster,\n"
|
||||||
" fast, medium, slow, slower, veryslow, placebo\n"
|
" fast, medium, slow, slower, veryslow, placebo\n"
|
||||||
" --no-psnr : Don't calculate PSNR for frames\n"
|
" --no-psnr : Don't calculate PSNR for frames\n"
|
||||||
|
@ -383,12 +386,12 @@ void print_help(void)
|
||||||
" Disable threads if set to 0.\n"
|
" Disable threads if set to 0.\n"
|
||||||
"\n"
|
"\n"
|
||||||
" Tiles:\n"
|
" Tiles:\n"
|
||||||
" --tiles-width-split <string>|u<int> : \n"
|
" --tiles-width-split <string>|u<int> :\n"
|
||||||
" Specifies a comma separated list of pixel\n"
|
" Specifies a comma separated list of pixel\n"
|
||||||
" positions of tiles columns separation coordinates.\n"
|
" positions of tiles columns separation coordinates.\n"
|
||||||
" Can also be u followed by and a single int n,\n"
|
" Can also be u followed by and a single int n,\n"
|
||||||
" in which case it produces columns of uniform width.\n"
|
" in which case it produces columns of uniform width.\n"
|
||||||
" --tiles-height-split <string>|u<int> : \n"
|
" --tiles-height-split <string>|u<int> :\n"
|
||||||
" Specifies a comma separated list of pixel\n"
|
" Specifies a comma separated list of pixel\n"
|
||||||
" positions of tiles rows separation coordinates.\n"
|
" positions of tiles rows separation coordinates.\n"
|
||||||
" Can also be u followed by and a single int n,\n"
|
" Can also be u followed by and a single int n,\n"
|
||||||
|
@ -399,7 +402,7 @@ void print_help(void)
|
||||||
" --owf <integer>|auto : Number of parallel frames to process. 0 to disable.\n"
|
" --owf <integer>|auto : Number of parallel frames to process. 0 to disable.\n"
|
||||||
"\n"
|
"\n"
|
||||||
" Slices:\n"
|
" Slices:\n"
|
||||||
" --slice-addresses <string>|u<int>: \n"
|
" --slice-addresses <string>|u<int> :\n"
|
||||||
" Specifies a comma separated list of LCU\n"
|
" Specifies a comma separated list of LCU\n"
|
||||||
" positions in tile scan order of tile separations.\n"
|
" positions in tile scan order of tile separations.\n"
|
||||||
" Can also be u followed by and a single int n,\n"
|
" Can also be u followed by and a single int n,\n"
|
||||||
|
|
35
tools/update_readme.sh
Executable file
35
tools/update_readme.sh
Executable file
|
@ -0,0 +1,35 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This file is part of Kvazaar HEVC encoder.
|
||||||
|
#
|
||||||
|
# Copyright (C) 2013-2016 Tampere University of Technology and others (see
|
||||||
|
# COPYING file).
|
||||||
|
#
|
||||||
|
# Kvazaar is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Lesser General Public License version 2.1 as
|
||||||
|
# published by the Free Software Foundation.
|
||||||
|
#
|
||||||
|
# Kvazaar is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# Lesser General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with Kvazaar. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
if [[ $# != 1 ]]; then
|
||||||
|
printf "Usage: $0 README.md\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
tmpfile="$(mktemp)"
|
||||||
|
|
||||||
|
{
|
||||||
|
sed '/BEGIN KVAZAAR HELP MESSAGE/q' -- "$1";
|
||||||
|
printf '```\n';
|
||||||
|
kvazaar --help;
|
||||||
|
printf '```\n';
|
||||||
|
sed -n '/END KVAZAAR HELP MESSAGE/{:a;p;n;ba}' -- "$1";
|
||||||
|
} >> "$tmpfile"
|
||||||
|
|
||||||
|
mv -- "$tmpfile" "$1"
|
Loading…
Reference in a new issue