TuttleOFX
1
|
00001 #include "OfxhClipImageAccessor.hpp" 00002 00003 namespace tuttle { 00004 namespace host { 00005 namespace ofx { 00006 namespace attribute { 00007 00008 /** 00009 * base ctor, for a descriptor 00010 */ 00011 OfxhClipImageAccessor::OfxhClipImageAccessor() {} 00012 00013 OfxhClipImageAccessor::~OfxhClipImageAccessor() {} 00014 00015 /** return a std::vector of supported comp 00016 */ 00017 const std::vector<std::string>& OfxhClipImageAccessor::getSupportedComponents() const 00018 { 00019 return getProperties().fetchStringProperty( kOfxImageEffectPropSupportedComponents ).getValues(); 00020 } 00021 00022 /** is the given component supported 00023 */ 00024 bool OfxhClipImageAccessor::isSupportedComponent( const std::string& comp ) const 00025 { 00026 return getProperties().findStringPropValueIndex( kOfxImageEffectPropSupportedComponents, comp ) != -1; 00027 } 00028 00029 /** does the clip do random temporal access 00030 */ 00031 bool OfxhClipImageAccessor::temporalAccess() const 00032 { 00033 return getProperties().getIntProperty( kOfxImageEffectPropTemporalClipAccess ) != 0; 00034 } 00035 00036 /** is the clip a nominal 'mask' clip 00037 */ 00038 bool OfxhClipImageAccessor::isMask() const 00039 { 00040 return getProperties().getIntProperty( kOfxImageClipPropIsMask ) != 0; 00041 } 00042 00043 /** how does this clip like fielded images to be presented to it 00044 */ 00045 const std::string& OfxhClipImageAccessor::getFieldExtraction() const 00046 { 00047 return getProperties().getStringProperty( kOfxImageClipPropFieldExtraction ); 00048 } 00049 00050 /** is the clip a nominal 'mask' clip 00051 */ 00052 bool OfxhClipImageAccessor::supportsTiles() const 00053 { 00054 return getProperties().getIntProperty( kOfxImageEffectPropSupportsTiles ) != 0; 00055 } 00056 00057 } 00058 } 00059 } 00060 } 00061