AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO
Allow parsing a LUT from a memory buffer rather than a file
- Lenguaje dominante
- C++
- Estrellas
- 2.1k
- Forks
- 503
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
OCIO's LUT file parsing is set up to work from files on disk. It would be very helpful to be able to have a function that would take a memory buffer and use the LUT parsers to turn it into a GroupTransform.
There is a way to do this already using the recent ConfigIOProxy class. However, it takes a fair amount of code and a fair amount of OCIO expertise to write it. This task is to write that code and turn it into a parseFromBuffer method on the GroupTransform class.
The unit tests for ConfigIOProxy in Config_tests.cpp provide some good sample code that could be used as a starting point.
Guía de contribución
Línea de trabajo
Comienza con las pruebas unitarias de ConfigIOProxy en Config_tests.cpp y luego sigue cómo GroupTransform utiliza actualmente los analizadores LUT para archivos. Implementa y expón GroupTransform::parseFromBuffer usando el enfoque existente basado en búferes, y añade cobertura que demuestre que una LUT almacenada en un búfer de memoria produce la GroupTransform esperada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Área
- computer-graphics
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 62/100