TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/plugin/context/ResolutionDefinition.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_PLUGIN_CONTEXT_RESOLUTION_DEFINITION_HPP_
00002 #define _TUTTLE_PLUGIN_CONTEXT_RESOLUTION_DEFINITION_HPP_
00003 
00004 #include <string>
00005 
00006 namespace tuttle {
00007 namespace plugin {
00008 
00009 static const std::string kParamFormatPCVideo        = "PC-Video";
00010 static const std::string kParamFormatPCVideoLabel   = "PC-Video            640x480";
00011 static const std::string kParamFormatNTSC           = "NTSC";
00012 static const std::string kParamFormatNTSCLabel      = "NTSC                720x486";
00013 static const std::string kParamFormatPAL            = "PAL";
00014 static const std::string kParamFormatPALLabel       = "PAL                 720x576";
00015 static const std::string kParamFormatHD             = "HD";
00016 static const std::string kParamFormatHDLabel        = "HD                  1920x1080";
00017 static const std::string kParamFormatNTSC169        = "NTSC-16:9";
00018 static const std::string kParamFormatNTSC169Label   = "NTSC-16:9           720x486";
00019 static const std::string kParamFormatPAL169         = "PAL-16:9";
00020 static const std::string kParamFormatPAL169Label    = "PAL-16:9            720x576";
00021 static const std::string kParamFormat1kSuper35      = "1K-Super35-full-ap";
00022 static const std::string kParamFormat1kSuper35Label = "1K-Super35-full-ap  1024x778";
00023 static const std::string kParamFormat1kCinemascope  = "1K-Cinemascope";
00024 static const std::string kParamFormat1kCinemascopeLabel = "1K-Cinemascope      914x778";
00025 static const std::string kParamFormat2kSuper35      = "2K-Super35-full-ap";
00026 static const std::string kParamFormat2kSuper35Label = "2K-Super35-full-ap  2048x1556";
00027 static const std::string kParamFormat2kCinemascope  = "2K-Cinemascope";
00028 static const std::string kParamFormat2kCinemascopeLabel = "2K-Cinemascope      1828x1556";
00029 static const std::string kParamFormat4kSuper35      = "4K-Super35-full-ap";
00030 static const std::string kParamFormat4kSuper35Label = "4K-Super35-full-ap  4096x3112";
00031 static const std::string kParamFormat4kCinemascope  = "4K-Cinemascope";
00032 static const std::string kParamFormat4kCinemascopeLabel = "4K-Cinemascope      3656x3112";
00033 static const std::string kParamFormatSquare256      = "Square-256";
00034 static const std::string kParamFormatSquare256Label = "Square-256          256x256";
00035 static const std::string kParamFormatSquare512      = "Square-512";
00036 static const std::string kParamFormatSquare512Label = "Square-512          512x512";
00037 static const std::string kParamFormatSquare1k       = "Square-1k";
00038 static const std::string kParamFormatSquare1kLabel  = "Square-1k           1024x1024";
00039 static const std::string kParamFormatSquare2k       = "Square-2k";
00040 static const std::string kParamFormatSquare2kLabel  = "Square-2k           2048x2048";
00041 
00042 enum EParamFormat
00043 {
00044         eParamFormatPCVideo,
00045         eParamFormatNTSC,
00046         eParamFormatPAL,
00047         eParamFormatHD,
00048         eParamFormatNTSC169,
00049         eParamFormatPAL169,
00050         eParamFormat1kSuper35,
00051         eParamFormat1kCinemascope,
00052         eParamFormat2kSuper35,
00053         eParamFormat2kCinemascope,
00054         eParamFormat4kSuper35,
00055         eParamFormat4kCinemascope,
00056         eParamFormatSquare256,
00057         eParamFormatSquare512,
00058         eParamFormatSquare1k,
00059         eParamFormatSquare2k
00060 };
00061 
00062 inline void getFormatResolution( const EParamFormat format, std::size_t& width, std::size_t& height )
00063 {
00064         switch( format )
00065         {
00066                 case eParamFormatPCVideo:       width =  640; height =  480; break;
00067                 case eParamFormatNTSC:          width =  720; height =  486; break;
00068                 case eParamFormatPAL:           width =  720; height =  576; break;
00069                 case eParamFormatHD:            width = 1920; height = 1080; break;
00070                 case eParamFormatNTSC169:       width =  720; height =  486; break;
00071                 case eParamFormatPAL169:        width =  720; height =  576; break;
00072                 case eParamFormat1kSuper35:     width = 1024; height =  778; break;
00073                 case eParamFormat1kCinemascope: width =  914; height =  778; break;
00074                 case eParamFormat2kSuper35:     width = 2048; height = 1556; break;
00075                 case eParamFormat2kCinemascope: width = 1828; height = 1556; break;
00076                 case eParamFormat4kSuper35:     width = 4096; height = 3112; break;
00077                 case eParamFormat4kCinemascope: width = 3656; height = 3112; break;
00078                 case eParamFormatSquare256:     width =  256; height =  256; break;
00079                 case eParamFormatSquare512:     width =  512; height =  512; break;
00080                 case eParamFormatSquare1k:      width = 1024; height = 1024; break;
00081                 case eParamFormatSquare2k:      width = 2048; height = 2048; break;
00082         }
00083 }
00084 
00085 }
00086 }
00087 
00088 #endif