TuttleOFX
1
|
00001 #include "OutputBufferWrapper.hpp" 00002 #include "Core.hpp" 00003 #include <tuttle/host/ofx/attribute/OfxhClipImageDescriptor.hpp> 00004 00005 namespace tuttle { 00006 namespace host { 00007 00008 void OutputBufferWrapper::setCallback( CallbackOutputImagePtr callback, CustomDataPtr customData, CallbackDestroyCustomDataPtr destroyCustomData ) 00009 { 00010 getNode().getParam( "callbackPointer" ).setValue( 00011 boost::lexical_cast<std::string>( reinterpret_cast<std::ptrdiff_t>( callback ) ) 00012 ); 00013 getNode().getParam( "customData" ).setValue( 00014 boost::lexical_cast<std::string>( reinterpret_cast<std::ptrdiff_t>( customData ) ) 00015 ); 00016 getNode().getParam( "callbackDestroyCustomData" ).setValue( 00017 boost::lexical_cast<std::string>( reinterpret_cast<std::ptrdiff_t>( destroyCustomData ) ) 00018 ); 00019 } 00020 00021 } 00022 }