#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>
#include <tbb/spin_mutex.h>
-#include <asmlib.h>
-
#include <functional>
namespace caspar { namespace flash {
{
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)));
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));
}
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));
}