add contrast ability [feature request]
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
Expected behavior of the wanted feature
Hi, I want to ask for a native contrast option. I don't mean the default "contrast" or "brightness" they just change the white and black point. I mean change contrast without clipping whites or crushing blacks. At the moment I am using butterw sCurve glsl shader but having a native mpv solution would be nice.
Thank you
I use hook LUMA to not affect colors/saturation
//!HOOK LUMA
//!BIND HOOKED
//!DESC sCurve (sigmoid)
#define S 0.15
vec4 hook(){
vec4 c0 = HOOKED_texOff(0);
c0.rgb = mix(c0.rgb, 1/( 1.0 + exp(-14*c0.rgb +7) ), S);
return c0;
}
Alternative behavior of the wanted feature
No response
Log File
No response
Sample Files
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name a repository file, test, or entry point. Begin by locating mpv's existing contrast and brightness handling, then compare its behavior with the provided LUMA sCurve shader. Done should mean a native contrast option that changes contrast without clipping whites or crushing blacks and does not alter color saturation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100