Skip to content

Commit

Permalink
avifenc: Update the default yuv format for grayscale PNG
Browse files Browse the repository at this point in the history
Add a note to avifenc's help message to clarify that YUV400 will
be used in "auto" mode if the input is a grayscale PNG.

Fixes AOMediaCodec#1523
  • Loading branch information
vigneshvg committed Sep 6, 2023
1 parent 14bc20d commit e63c43c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/avifenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static void syntaxLong(void)
printf(" -l,--lossless : Set all defaults to encode losslessly, and emit warnings when settings/input don't allow for it\n");
printf(" -d,--depth D : Output depth [8,10,12]. (JPEG/PNG only; For y4m or stdin, depth is retained)\n");
printf(" -y,--yuv FORMAT : Output format [default=auto, 444, 422, 420, 400]. Ignored for y4m or stdin (y4m format is retained)\n");
printf(" For JPEG, auto honors the JPEG's internal format, if possible. For all other cases, auto defaults to 444\n");
printf(" For JPEG, auto honors the JPEG's internal format, if possible. For grayscale PNG, auto defaults to 400. For all other cases, auto defaults to 444\n");
printf(" -p,--premultiply : Premultiply color by the alpha channel and signal this in the AVIF\n");
printf(" --sharpyuv : Use sharp RGB to YUV420 conversion (if supported). Ignored for y4m or if output is not 420.\n");
printf(" --stdin : Read y4m frames from stdin instead of files; no input filenames allowed, must set before offering output filename\n");
Expand Down

0 comments on commit e63c43c

Please sign in to comment.