]> git.sesse.net Git - casparcg/blobdiff - modules/flash/producer/flash_producer.cpp
[flash] Moved template host copying to flash module startup instead from env setup...
[casparcg] / modules / flash / producer / flash_producer.cpp
index 2f7aaea8d7b600b020220b8818e4cb8ac932dbae..cbbae1aa2286c8dcee28a132523619ebaaac08f6 100644 (file)
@@ -49,6 +49,8 @@
 #include <common/diagnostics/graph.h>
 #include <common/prec_timer.h>
 #include <common/array.h>
+#include <common/memset.h>
+#include <common/memcpy.h>
 
 #include <boost/filesystem.hpp>
 #include <boost/property_tree/ptree.hpp>
@@ -58,8 +60,6 @@
 
 #include <tbb/spin_mutex.h>
 
-#include <asmlib.h>
-
 #include <functional>
 
 namespace caspar { namespace flash {
@@ -262,7 +262,7 @@ public:
        {               
                std::wstring result;
 
-               CASPAR_LOG(trace) << print() << " Call: " << param;
+               CASPAR_LOG(debug) << print() << " Call: " << param;
 
                if(!ax_->FlashCall(param, result))
                        CASPAR_LOG(warning) << print() << L" Flash call failed:" << param;//CASPAR_THROW_EXCEPTION(invalid_operation() << msg_info("Flash function call failed.") << arg_name_info("param") << arg_value_info(narrow(param)));
@@ -299,10 +299,10 @@ public:
                        desc.planes.push_back(core::pixel_format_desc::plane(width_, height_, 4));
                        auto frame = frame_factory_->create_frame(this, desc, core::audio_channel_layout::invalid());
 
-                       A_memset(bmp_.data(), 0, width_ * height_ * 4);
+                       fast_memset(bmp_.data(), 0, width_ * height_ * 4);
                        ax_->DrawControl(bmp_);
                
-                       A_memcpy(frame.image_data(0).begin(), bmp_.data(), width_*height_*4);
+                       fast_memcpy(frame.image_data(0).begin(), bmp_.data(), width_*height_*4);
                        head_ = core::draw_frame(std::move(frame));     
                }               
 
@@ -625,7 +625,7 @@ spl::shared_ptr<core::frame_producer> create_producer(const core::frame_producer
        auto filename = env::template_folder() + L"\\" + template_host.filename;
        
        if(!boost::filesystem::exists(filename))
-               CASPAR_THROW_EXCEPTION(file_not_found() << boost::errinfo_file_name(u8(filename)));     
+               CASPAR_THROW_EXCEPTION(file_not_found() << msg_info(L"Could not open flash movie " + filename));        
 
        return create_destroy_proxy(spl::make_shared<flash_producer>(dependencies.frame_factory, dependencies.format_desc, filename, template_host.width, template_host.height));
 }