Skip to content

Commit

Permalink
Document convert_primaries option in toktx. (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCallow authored Sep 13, 2023
1 parent 0feeda6 commit 3049f5b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tools/toktx/toktx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,17 @@ Create a KTX file from JPEG, PNG or netpbm format files.
@b --assign_oetf are specified, conversion will be performed from the
assigned transfer function to the transfer function specified by this
option, if different.
<dt>--convert_primaries &lt;primaries&gt;</dt>
<dd>Convert the image images to the specified color primaries, if
different from the color primaries of the input file(s) or the one
specified by --assign-primaries. If both this and --assign-primaries
are specified, conversion will be performed from the assigned primaries
to the primaries specified by this option, if different. This option is
not allowed to be specified when --assign-primaries is set to 'none'.
Case insensitive.
Possible options are:
bt709 | srgb | bt601-ebu | bt601-smpte | bt2020 | ciexyz | aces |
acescc | ntsc1953 | pal525 | displayp3 | adobergb</dd>
<dt>--linear</dt>
<dd>Deprecated. Use @b --assign_oetf linear.</dd>
<dt>--srgb</dt>
Expand Down Expand Up @@ -632,6 +643,17 @@ toktxApp::usage()
" --assign_oetf are specified, conversion will be performed from\n"
" the assigned transfer function to the transfer function specified\n"
" by this option, if different.\n"
" --convert_primaries <primaries> \n"
" Convert the image image(s) to the specified color primaries,\n"
" if different from the color primaries of the input file(s) or the\n"
" one specified by --assign-primaries. If both this and\n"
" --assign-primaries are specified, conversion will be performed\n"
" from the assigned primaries to the primaries specified by this\n"
" option, if different. This option is not allowed to be specified\n"
" when --assign-primaries is set to 'none'. Case insensitive.\n"
" Possible options are: bt709 | srgb | bt601-ebu | bt601-smpte |\n"
" bt2020 | ciexyz | aces | acescc | ntsc1953 | pal525 |\n"
" displayp3 | adobergb.\n"
" --linear Deprecated. Use --assign_oetf linear.\n"
" --srgb Deprecated. Use --assign_oetf srgb.\n"
" --swizzle <swizzle>\n"
Expand Down

0 comments on commit 3049f5b

Please sign in to comment.