Add completions for libavif

This commit is contained in:
Shun Sakai 2021-02-03 06:00:54 +09:00 committed by Fabian Homborg
parent 4d48720d6a
commit d8530257c7
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# Completions for libavif (https://github.com/AOMediaCodec/libavif)
complete -c avifdec -s h -l help -d "Show syntax help"
complete -c avifdec -s V -l version -d "Show the version number"
complete -x -c avifdec -s j -l jobs -d "Number of jobs"
complete -x -c avifdec -s c -l codec -a "
aom\tlibaom
dav1d\tdav1d
libgav1\tlibgav1
" -d "AV1 codec to use"
complete -x -c avifdec -s d -l depth -a "8 16" -d "Output depth"
complete -x -c avifdec -s q -l quality -d "Output quality"
complete -x -c avifdec -s u -l upsampling -a "automatic fastest best nearest bilinear" -d "Chroma upsampling"
complete -c avifdec -s i -l info -d "Display all image information"
complete -c avifdec -l ignore-icc -d "Ignore an embedded ICC profile"

View File

@ -0,0 +1,42 @@
# Completions for libavif (https://github.com/AOMediaCodec/libavif)
complete -c avifenc -s h -l help -d "Show syntax help"
complete -c avifenc -s V -l version -d "Show the version number"
complete -x -c avifenc -s j -l jobs -d "Number of jobs"
complete -r -c avifenc -s o -l output -d "Filename of the output file"
complete -c avifenc -s l -l lossless -d "Set all defaults to encode losslessly"
complete -x -c avifenc -s d -l depth -a "8 10 12" -d "Output depth"
complete -x -c avifenc -s y -l yuv -a "444 422 420 400" -d "Output format"
complete -c avifenc -l stdin -d "Read y4m frames from stdin"
complete -x -c avifenc -l cicp -l nclx -d "Set CICP values"
complete -x -c avifenc -s r -l range -d "YUV range"
complete -x -c avifenc -l min -a "(seq 0 63)" -d "Set min quantizer for color"
complete -x -c avifenc -l max -a "(seq 0 63)" -d "Set max quantizer for color"
complete -x -c avifenc -l minalpha -a "(seq 0 63)" -d "Set min quantizer for alpha"
complete -x -c avifenc -l maxalpha -a "(seq 0 63)" -d "Set max quantizer for alpha"
complete -x -c avifenc -l tilerowslog2 -a "(seq 0 6)" -d "Set log2 of number of tile rows"
complete -x -c avifenc -l tilecolslog2 -a "(seq 0 6)" -d "Set log2 of number of tile columns"
complete -x -c avifenc -s s -l speed -a "
0\tSlowest
(seq 1 9)
10\tFastest
default\t'Codec internal defaults'
d\t'Codec internal defaults'
" -d "Encoder speed"
complete -x -c avifenc -s c -l codec -a "
aom\tlibaom
rav1e\trav1e
svt\tSVT-AV1
" -d "AV1 codec to use"
complete -r -c avifenc -l exif -d "Filename of the associated Exif metadata"
complete -r -c avifenc -l xmp -d "Filename of the associated XMP metadata"
complete -r -c avifenc -l icc -d "Filename of the associated ICC profile"
complete -x -c avifenc -s a -l advanced -d "Pass a codec-specific key/value pair to the codec"
complete -x -c avifenc -l duration -d "Set all following frame durations"
complete -x -c avifenc -l timescale -l fps -d "Set the timescale"
complete -x -c avifenc -s k -l keyframe -d "Set the forced keyframe interval"
complete -c avifenc -l ignore-icc -d "Ignore an embedded ICC profile"
complete -x -c avifenc -l pasp -d "Add pasp property"
complete -x -c avifenc -l clap -d "Add clap property"
complete -x -c avifenc -l irot -d "Add irot property"
complete -x -c avifenc -l imir -d "Add imir property"