Skip to content

command: add ambient-light-lux property #15450

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

Merged
merged 5 commits into from
Dec 21, 2024

Conversation

Akemi
Copy link
Member

@Akemi Akemi commented Dec 7, 2024

up for discussion if this is the right way to do it. not sure if it should be its own event (MP_EVENT_AMBIENT_LIGHTING_CHANGED) or fall under MP_EVENT_WIN_STATE.

added a replacement script for --gamma-auto (implementation of https://github.com/mpv-player/mpv/blob/master/video/out/gpu/utils.c#L42-L55), removed the old usage from cocoa-cb and deprecated the libmpv api.

we could properly remove --gamma-auto and its associated functionality with the release after the next one (0.41), and maybe the deprecated libmpv API too.

follow up of #14540.

@Akemi Akemi force-pushed the ambient_light_lux branch 2 times, most recently from 3524572 to 45f8e85 Compare December 7, 2024 18:59
Copy link

github-actions bot commented Dec 7, 2024

Download the artifacts for this pull request:

Windows
macOS

@Akemi Akemi force-pushed the ambient_light_lux branch from 45f8e85 to 38f950d Compare December 8, 2024 14:44
Akemi added 5 commits December 8, 2024 17:26
make it observable to make it usable as a replacement for --gamma-auto.
also mention this replacement for --gamma-auto.
the equivalent options have been deprecated since mpv 0.35 in ac39661
and 2207236.

also bumping the MPV_CLIENT_API_VERSION to 2.5, since 2.4 was forgotten
in 6f619d5.
@Akemi Akemi force-pushed the ambient_light_lux branch from 38f950d to 2f8999f Compare December 8, 2024 16:48
@Akemi
Copy link
Member Author

Akemi commented Dec 8, 2024

hope i addressed everything and didn't forget anything.

i kept the libmpv API as int, since we don't want to change the user facing interface/API, is deprecated here anyway and will be removed in the future.

Copy link
Member

@kasper93 kasper93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested, but looks ok.

@Akemi Akemi merged commit d827019 into mpv-player:master Dec 21, 2024
26 checks passed
@Akemi Akemi deleted the ambient_light_lux branch December 21, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants