Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document convert_primaries option in toktx. #765

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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