mpv-player / mpv-player/mpv

add contrast ability [feature request]

Open
#15,712 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.