AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO
Add function to check nanoColor compatibility of a color space
- Ngôn ngữ chính
- C++
- Star
- 2.1k
- Fork
- 503
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Since nanoColor is a light weight version of OCIO, it will not support all color spaces. For example, color spaces that use a FileTransform won't be supported. Applications that want to create file formats that support nanoColor need a way of determining what level of interop is possible for a given color space. There are several possible scenarios:
1. The color space is in a nanoColor built-in config, defined via a name string. A function is needed to quickly check if a color space is part of a built-in config without instantiating a built-in config.
2. The color space may be serialized as a custom color space. This may depend on what level of custom color space capability is available in a given file format.
3. The color space is nanoColor compatible but may not be serialized in the file format.
4. The color space uses functionality not present in nanoColor (e.g. LUTs).
For scenario 1, the following signature is proposed:
`bool builtinConfigHasColorSpace(const char* builtinConfigID, const ConstConfigRcPtr & config, const ConstColorSpaceRcPtr & cs);`
For scenarios 2-4, a function is needed that will check against a series of profiles (for example, does the color space only involve a MatrixTransform, ExponentTransform, or ExponentWithLinearTransform).
`bool Config::colorSpaceCompatibility(const ConstColorSpaceRcPtr & cs, CSProfileType colorSpaceProfile);`
Examples of useful profiles might be:
- NanoColorCompatible
- MatrixExponentCompatible
- UsesFileTransforms
- UsesLUTs
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xem xét các chữ ký được đề xuất của builtinConfigHasColorSpace và Config::colorSpaceCompatibility trong issue, cùng với các chức năng được nanoColor hỗ trợ. Xác định cách các profile được liệt kê — chẳng hạn như NanoColorCompatible, MatrixExponentCompatible, UsesFileTransforms và UsesLUTs — sẽ quyết định tính tương thích và khả năng hỗ trợ serialization. Công việc được coi là hoàn tất khi các kiểm tra tương thích và việc tra cứu không gian màu tích hợp sẵn có hành vi đã được thống nhất và có thể kiểm thử.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp
- Lĩnh vực
- computer-graphics
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100