TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/plugin/color/colorDefinitions.cpp
Go to the documentation of this file.
00001 
00002 #include "colorDefinitions.hpp"
00003 
00004 
00005 namespace tuttle {
00006 namespace plugin {
00007 namespace color{
00008 
00009 
00010 ColorSpaceMaps::ColorSpaceMaps()
00011 {
00012         map_ReferenceSpace.insert( std::pair< size_t, std::string >( eParamSRGBREC709,  "sRGB - Rec 709") );
00013         map_ReferenceSpace.insert( std::pair< size_t, std::string >( eParamREC709,      "Rec 709" ) );
00014         map_ReferenceSpace.insert( std::pair< size_t, std::string >( eParamREC601,      "Rec 601" ) );
00015         map_ReferenceSpace.insert( std::pair< size_t, std::string >( eParamDCI,         "DCI" ) );
00016         map_ReferenceSpace.insert( std::pair< size_t, std::string >( eParamACES,        "ACES" ) );
00017         map_ReferenceSpace.insert( std::pair< size_t, std::string >( eParamProPhoto,    "ProPhoto" ) );
00018         map_ReferenceSpace.insert( std::pair< size_t, std::string >( eParamAdobe98,     "Adobe 98" ) );
00019 
00020 
00021         map_GradationLaw.insert( std::pair< size_t, std::string >( eParamLinear,        "Linear" ) );
00022         map_GradationLaw.insert( std::pair< size_t, std::string >( eParamsRGB,          "sRGB" ) );
00023         map_GradationLaw.insert( std::pair< size_t, std::string >( eParamCineon,        "Cineon" ) );
00024         map_GradationLaw.insert( std::pair< size_t, std::string >( eParamGamma,         "Gamma" ) );
00025         map_GradationLaw.insert( std::pair< size_t, std::string >( eParamPanalog,       "Panalog" ) );
00026         map_GradationLaw.insert( std::pair< size_t, std::string >( eParamREDLog,        "REDLog" ) );
00027         map_GradationLaw.insert( std::pair< size_t, std::string >( eParamViperLog,      "ViperLog" ) );
00028         map_GradationLaw.insert( std::pair< size_t, std::string >( eParamREDSpace,      "REDSpace" ) );
00029         map_GradationLaw.insert( std::pair< size_t, std::string >( eParamAlexaLogC,     "AlexaLogC" ) );
00030 
00031         map_Layout.insert( std::pair< size_t, std::string >( eParamLayoutRGB,   "RGB" ) );
00032         map_Layout.insert( std::pair< size_t, std::string >( eParamLayoutYUV,   "YUV / Y Cr Cb" ) );
00033         map_Layout.insert( std::pair< size_t, std::string >( eParamLayoutYPbPr, "Y Pr Pb" ) );
00034         map_Layout.insert( std::pair< size_t, std::string >( eParamLayoutHSV,   "HSV" ) );
00035         map_Layout.insert( std::pair< size_t, std::string >( eParamLayoutHSL,   "HSL" ) );
00036         map_Layout.insert( std::pair< size_t, std::string >( eParamLayoutLab,   "Lab" ) );
00037         map_Layout.insert( std::pair< size_t, std::string >( eParamLayoutLuv,   "Luv" ) );
00038         map_Layout.insert( std::pair< size_t, std::string >( eParamLayoutXYZ,   "XYZ" ) );
00039         map_Layout.insert( std::pair< size_t, std::string >( eParamLayoutYxy,   "Yxy" ) );
00040 
00041         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureA,            "A - 2856°K" ) );
00042         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureB,            "B - 4874°K" ) );
00043         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureC,            "C - 6774°K" ) );
00044         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureD50,          "D50 - 5003°K" ) );
00045         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureD55,          "D55 - 5503°K" ) );
00046         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureD58,          "D58 - 5803°K" ) );
00047         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureD65,          "D65 - 6504°K" ) );
00048         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureD75,          "D75 - 7504°K" ) );
00049         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperature9300, "9300°K" ) );
00050         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureE,            "E - 5454°K" ) );
00051         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureF2,           "F2 - 4230°K" ) );
00052         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureF7,           "F7 - 6500°K" ) );
00053         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureF11,          "F11 - 4000°K" ) );
00054         map_ColourTemp.insert( std::pair< size_t, std::string >( eColorTemperatureDCIP3,        "DCI-P3 - ??°K" ) );
00055 
00056         for( size_t i = 0; i < numberOfGradationsModes; i++ )
00057         {
00058                 std::vector< std::string > vec;
00059                 colourSpaceGradationParameters.push_back( vec );
00060         }
00061 
00062         colourSpaceGradationParameters.at( eParamGamma  ) .push_back( "Gamma");
00063         colourSpaceGradationParameters.at( eParamCineon ) .push_back( "Black Point");
00064         colourSpaceGradationParameters.at( eParamCineon ) .push_back( "White Point");
00065         colourSpaceGradationParameters.at( eParamCineon ) .push_back( "Gamma Sensito");
00066 }
00067 
00068 
00069 }
00070 }
00071 }
00072