mpv-player / mpv-player/mpv

Make source content metadata available to shaders as preprocessor variables

Open
#9,914 11 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

This was already requested in another ticket, but I am opening this ticket to officially follow-up on the request.

As the title suggests, source content metadata (e.g., __PRIMARIES__, __GAMMA__, __COLORMATRIX__ etc.) could be useful for automating necessary conversions in shaders without requiring the user to configure them manually.

In addition, make them available for use in !WHEN directives, so for instance a conversion pass is only executed if it is actually needed.

I am personally in need of this feature right now, and I would really appreciate it if it was available.

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 names no files, tests, or entry points. Begin by tracing the existing shader preprocessing and !WHEN handling, then define how source metadata is exposed in both contexts and verify that conditional conversion passes behave correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.