Files
vision-anti-pinch/native/include/uyvy_converter.hpp
T

19 lines
500 B
C++

#pragma once
#include "image.hpp"
#include <cstddef>
#include <memory>
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<const BgrImage> convert(void const* data,std::size_t stride);
private:
struct Impl;
std::unique_ptr<Impl> impl_;
};
}