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

add contrast ability [feature request] #15712

Open
geextahslex opened this issue Jan 19, 2025 · 0 comments
Open

add contrast ability [feature request] #15712

geextahslex opened this issue Jan 19, 2025 · 0 comments

Comments

@geextahslex
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant