TuttleOFX
1
|
00001 #ifndef _LENSDISTORTDEFINITIONS_HPP 00002 #define _LENSDISTORTDEFINITIONS_HPP 00003 00004 #include <tuttle/plugin/global.hpp> 00005 #include <tuttle/plugin/context/SamplerDefinition.hpp> 00006 00007 #include <ofxCore.h> 00008 #include <string> 00009 00010 namespace tuttle { 00011 namespace plugin { 00012 namespace lens { 00013 00014 static const std::string kClipOptionalSourceRef( "SourceRef" ); 00015 00016 static const std::string kParamReverse ( "reverse" ); 00017 static const std::string kParamDisplaySource ( "displaySource" ); 00018 static const std::string kParamLensType ( "lensType" ); 00019 static const std::string kParamLensTypeStandard ( "standard" ); 00020 static const std::string kParamLensTypeFishEye ( "fish-eye" ); 00021 static const std::string kParamLensTypeAdvanced ( "advanced" ); 00022 static const std::string kParamCoef1 ( "coef1" ); 00023 static const std::string kParamCoef2 ( "coef2" ); 00024 static const std::string kParamSqueeze ( "squeeze" ); 00025 static const std::string kParamAsymmetric ( "asymmetric" ); 00026 static const std::string kParamCenter ( "center" ); 00027 static const std::string kParamCenterOverlay ( "lensCenterOverlay" ); 00028 static const std::string kParamCenterType ( "centerType" ); 00029 static const std::string kParamCenterTypeSource ( "source" ); 00030 static const std::string kParamCenterTypeRoW ( "RoW" ); 00031 static const std::string kParamPreScale ( "preScale" ); 00032 static const std::string kParamPostScale ( "postScale" ); 00033 00034 static const std::string kParamResizeRod ( "resizeRod" ); 00035 static const std::string kParamResizeRodNo ( "no" ); 00036 static const std::string kParamResizeRodSourceRef ( "sourceRef" ); 00037 static const std::string kParamResizeRodMin ( "min" ); 00038 static const std::string kParamResizeRodMax ( "max" ); 00039 static const std::string kParamResizeRodManual ( "manual" ); 00040 enum EParamResizeRod 00041 { 00042 eParamResizeRodNo = 0, 00043 eParamResizeRodSourceRef, 00044 eParamResizeRodMin, 00045 eParamResizeRodMax, 00046 eParamResizeRodManual, 00047 }; 00048 00049 static const std::string kParamResizeRodManualScale ( "scaleRod" ); 00050 static const std::string kParamDisplayOptions ( "displayOptions" ); 00051 static const std::string kParamGridOverlay ( "gridOverlay" ); 00052 static const std::string kParamGridCenter ( "gridCenter" ); 00053 static const std::string kParamGridCenterOverlay ( "gridCenterOverlay" ); 00054 static const std::string kParamGridScale ( "gridScale" ); 00055 static const std::string kParamDebugOptions ( "debugOptions" ); 00056 static const std::string kParamDebugDisplayRoi ( "debugDisplayRoi" ); 00057 static const std::string kParamHelp ( "help" ); 00058 00059 enum EParamLensType 00060 { 00061 eParamLensTypeStandard = 0, 00062 eParamLensTypeFisheye, 00063 eParamLensTypeAdvanced, 00064 }; 00065 00066 enum EParamCenterType 00067 { 00068 eParamCenterTypeSource = 0, 00069 eParamCenterTypeRoW, 00070 }; 00071 00072 } 00073 } 00074 } 00075 00076 #endif 00077