Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Use sRGB transfer function instead of plain gamma (better accuracy for lower brightness)

Abierto
#5,707 8 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
52/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
cpp
Área
embedded-iot

Línea de trabajo

Start by locating the gamma and inverse-gamma LUT calculations; the issue does not name files or tests. Read the linked sRGB transfer-function equations and determine how they apply to the project's gamma values. Done means both LUT calculations use corresponding sRGB functions and low-brightness transitions are smoother.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

discussion enhancement

It seems that sRGB has a better way for preserving low-brightness colors, compared to "plain" gamma correction.

As the gamma (and inverse gamma) LUT calculation is not in any hot path, we should try if the sRGB pedant holds its promise to provide smoother transitions at low brightness.

https://en.wikipedia.org/wiki/SRGB#Transfer_function_(%22gamma%22)

The math looks easy, by just replacing the "pow()" expression with the sRGB transfer function.
It's important to also adjust the inverse correction to use the inverse sRGB transfer function.

Edit: the sRGB transfer function uses a gamma exponent of 2.4, the resulting curve approximates a gamma=2.2 curve. I thinks it's possible to derive the correct scaling and offset coefficients for other gamma values - the wikipedia article shows the basic equations needed.

Lenguaje dominante
C++
Estrellas
18.8k
Forks
4.4k
Merge medio
3 d 18 h
PR fusionados (30 d)
13

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wled/WLED

Todos los issues de wled/WLED

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.