#pragma once #include "image.hpp" #include #include namespace cms { // GPU NPP BT.601 UYVY -> RGB followed by a CUDA BGR channel swap. class UyvyConverter { public: UyvyConverter(int width,int height); ~UyvyConverter(); UyvyConverter(UyvyConverter const&)=delete; UyvyConverter& operator=(UyvyConverter const&)=delete; std::shared_ptr convert(void const* data,std::size_t stride); private: struct Impl; std::unique_ptr impl_; }; }