#ifndef DCPOMATIC_CPU_PLAYER_VIDEO_PREPARER_H #define DCPOMATIC_CPU_PLAYER_VIDEO_PREPARER_H #include "player_video_preparer.h" extern "C" { #include } #include #include #include class CPUPlayerVideoPreparer : public PlayerVideoPreparer { public: CPUPlayerVideoPreparer (boost::function pixel_format, bool aligned, bool fast); ~CPUPlayerVideoPreparer (); void request (boost::shared_ptr pv); private: void prepare (boost::weak_ptr pv); boost::thread_group _pool; boost::asio::io_service _service; boost::shared_ptr _work; boost::function _pixel_format; bool _aligned; bool _fast; }; #endif