-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description improvement and some behavior change for sdr-adjust-gamma #17007
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1272,6 +1272,10 @@ static bool draw_frame(struct vo *vo, struct vo_frame *frame) | |||||||||||||||||||||||||||||||||||||||||
| case PL_COLOR_TRC_BT_1886: | ||||||||||||||||||||||||||||||||||||||||||
| case PL_COLOR_TRC_GAMMA22: | ||||||||||||||||||||||||||||||||||||||||||
| case PL_COLOR_TRC_SRGB: | ||||||||||||||||||||||||||||||||||||||||||
| #ifdef __APPLE__ | ||||||||||||||||||||||||||||||||||||||||||
| if (opts->sdr_adjust_gamma == 0) | ||||||||||||||||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't do that. the option is should be respected. You could set default value to /cc @Akemi
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using different default values on different OSes looks weird... I didn't see any existing options doing like this, is there any?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. historical we never set different default values for different platforms, or at least not via a conditional preprocessor or similar. not sure if we have such cases now? if we needed a different behaviour or default we usual let the context/backend/platform specific code decide such things, for example with a callback or similar (like these Lines 73 to 92 in 7482608
i am also not sure of the necessity of this change, but admittedly this might be a bit over my head atm. it would probably be a good idea to properly describe the problem, how this fixes the problem and what the difference are (before/after). maybe in the end it would just be okay to document that setting it to
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I also don't see why it's needed and how does this differ from other platforms. |
||||||||||||||||||||||||||||||||||||||||||
| break; | ||||||||||||||||||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||||||||||||||||
| target.color.transfer = frame->current->params.color.transfer; | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.