AcademySoftwareFoundation/openexr

Describe new compression method API in documentation

Open

#1,859 opened on Oct 2, 2024

 (2 comments) (0 reactions) (0 assignees)C (695 forks)auto 404
help wanted

Repository metrics

Stars
 (1,812 stars)
PR merge metrics
 (PR metrics pending)

Description

Add to https://openexr.com/en/latest/ReadingAndWritingImageFiles.html#compression, source is here.

In anticipation of future support for new compression types, there is now a convenience API for mapping between compression type names and the associated enum:

getCompressionDescriptionFromId(Compression, std::string&)
getCompressionIdFromName(const std::string&, Compression&)
getCompressionNameFromId(Compression, std::string&)
getCompressionNamesString(const std::string&, std::string&)
getCompressionNumScanlines(Compression)
isValidCompression(int)

Contributor guide