Overview
ImageFlip C++ library implements simple image flip function based on OpenCV and compatible with VFilter interface to be implemented in video processing pipelines. The library supports left-right, up-down and left-right-up-down image flip. The library depends on VFilter library (provides interface for video filter, source code included, Apache 2.0 license) and OpenCV library (version >= 4.5, linked, Apache 2.0 license). The library uses C++17 standard.
Documentation
Documentation: GO TO DOCUMENTATION
Simple interface
class ImageFlip : public VFilter
{
public:
/// Get the version of the ImageFlip class.
static std::string getVersion();
/// Initialize image flip.
bool initVFilter(VFilterParams& params) override;
/// Set VFilter parameter.
bool setParam(VFilterParam id, float value) override;
/// Get the value of a specific VFilter parameter.
float getParam(VFilterParam id) override;
/// Get the structure containing all VFilter parameters.
void getParams(VFilterParams& params) override;
/// Execute a VFilter action command.
bool executeCommand(VFilterCommand id) override;
/// Process frame.
bool processFrame(cr::video::Frame& frame) override;
/// Set mask for filter.
bool setMask(cr::video::Frame mask) override;
/// Decode and execute command.
bool decodeAndExecuteCommand(uint8_t* data, int size) override;
};