AcademySoftwareFoundation / OpenColorIO

A color management framework for visual effects and animation.
https://opencolorio.org
BSD 3-Clause "New" or "Revised" License
1.78k stars 452 forks source link

Add a helper function to check if an extension is supported by FileTransform #1938

Closed doug-walker closed 6 months ago

doug-walker commented 8 months ago

The FileTransform class has several static methods such as GetFormatExtensionByIndex that will allow client programs to iterate over all of the supported formats to check if a given extension is supported by OCIO. However, it would be nice to have a helper function to just take the extension and return true/false. Such as:

class FileTransform
    /// Returns true if the extension corresponds to a format supported by FileTransform.
    /// The argument is case-insensitive, and a leading dot, if present, is ignored.
    static bool IsFormatExtensionSupported(const char * ext);
corey-f1009 commented 8 months ago

Hi! Could I work on this?

doug-walker commented 8 months ago

Absolutely, thank you @corey-f1009 !

Dundy703 commented 8 months ago

Could I give this a shot as well?

doug-walker commented 8 months ago

@Dundy703 , there is so much to do, it would be better for you to find a different issue. There are quite a few that are labelled "good first issue" or "help wanted".

doug-walker commented 6 months ago

This is still available for someone to work on.

meimchu commented 6 months ago

I would like to give this a look if possible. Might have some questions to ask :) Thank you!

doug-walker commented 6 months ago

Thank you @meimchu !