Use sRGB transfer function instead of plain gamma (better accuracy for lower brightness)
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
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
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de wled/WLED
-
Gravimeter: bars turn black at full volume (uint8_t(segmentSampleAvg*8) overflows)Posiblemente ocupada @DedeHai la tomó hace 9 días. Abiertobug confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wled/WLED#5891 · 12 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug cannot reproduce
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
wled/WLED#5840 · 12 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
wled/WLED#5836 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
backburner enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
wled/WLED#4132 · 5 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
discussion enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
wled/WLED#3478 · 13 comentarios ·
Los mantenedores suelen responder en 1 día
Issues similares
-
Web3 RPC: one-element batch request returns an object instead of an array (breaks ethers.js v6)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
FISCO-BCOS/FISCO-BCOS#5706 ·
Los mantenedores suelen responder en 3 días
-
[开源推荐] Windows 系统维护工具箱,支持后台任务队列Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
521xueweihan/HelloGitHub#4011 ·
-
docs(simulation): Quickstart publishes UDP 14550, which the SITL images' own docs say not to doAbiertostatus:needs-triage
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
PX4/PX4-Autopilot#29292 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
I/O internal correctness medium priority rt_lib
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
GUI
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
sonic-pi-net/sonic-pi#3594 ·