6 #ifndef INCLUDED_IMF_IMAGE_CHANNEL_RENAMING_H
7 #define INCLUDED_IMF_IMAGE_CHANNEL_RENAMING_H
31 template <
class ChannelMap>
37 for (
typename ChannelMap::const_iterator i = channels.begin ();
41 RenamingMap::const_iterator
j = oldToNewNames.find (i->first);
42 std::string newName = (j == oldToNewNames.end ()) ? i->first
44 renamedChannels[newName] = i->second;
47 channels = renamedChannels;
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
GLsizei const GLchar *const * string
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER typedef std::map< std::string, std::string > RenamingMap
void renameChannelsInMap(const RenamingMap &oldToNewNames, ChannelMap &channels)
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
std::unordered_map< char, int > ChannelMap
ImageBuf OIIO_API channels(const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)