2023-02-28 01:15:26 +00:00
|
|
|
// AUTOGENERATED COPYRIGHT HEADER START
|
|
|
|
// Copyright (C) 2019-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
|
|
|
|
// AUTOGENERATED COPYRIGHT HEADER END
|
2019-04-02 00:45:01 +00:00
|
|
|
|
|
|
|
#pragma once
|
2020-04-02 15:02:01 +00:00
|
|
|
#include "common.hpp"
|
2019-04-02 00:45:01 +00:00
|
|
|
#include "obs/gs/gs-texture.hpp"
|
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
namespace streamfx::gfx {
|
2019-04-02 00:45:01 +00:00
|
|
|
namespace blur {
|
|
|
|
enum class type : int64_t {
|
|
|
|
Invalid = -1,
|
|
|
|
Area,
|
|
|
|
Directional,
|
|
|
|
Rotational,
|
|
|
|
Zoom,
|
|
|
|
};
|
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
class base {
|
2019-04-02 00:45:01 +00:00
|
|
|
public:
|
2019-08-04 14:20:26 +00:00
|
|
|
virtual ~base() {}
|
2019-04-19 07:42:15 +00:00
|
|
|
|
2021-06-08 02:38:24 +00:00
|
|
|
virtual void set_input(std::shared_ptr<::streamfx::obs::gs::texture> texture) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual ::streamfx::gfx::blur::type get_type() = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
|
|
|
virtual double_t get_size() = 0;
|
|
|
|
|
|
|
|
virtual void set_size(double_t width) = 0;
|
|
|
|
|
|
|
|
virtual void set_step_scale(double_t x, double_t y) = 0;
|
|
|
|
|
|
|
|
virtual void set_step_scale_x(double_t v);
|
|
|
|
|
|
|
|
virtual void set_step_scale_y(double_t v);
|
|
|
|
|
|
|
|
virtual void get_step_scale(double_t& x, double_t& y) = 0;
|
|
|
|
|
|
|
|
virtual double_t get_step_scale_x();
|
|
|
|
|
|
|
|
virtual double_t get_step_scale_y();
|
|
|
|
|
2021-06-08 02:38:24 +00:00
|
|
|
virtual std::shared_ptr<::streamfx::obs::gs::texture> render() = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:38:24 +00:00
|
|
|
virtual std::shared_ptr<::streamfx::obs::gs::texture> get() = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
};
|
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
class base_angle {
|
2019-04-02 00:45:01 +00:00
|
|
|
public:
|
2019-08-04 14:20:26 +00:00
|
|
|
virtual ~base_angle() {}
|
2019-04-19 07:42:15 +00:00
|
|
|
|
2019-04-02 00:45:01 +00:00
|
|
|
virtual double_t get_angle() = 0;
|
|
|
|
|
|
|
|
virtual void set_angle(double_t angle) = 0;
|
|
|
|
};
|
|
|
|
|
2019-08-04 14:20:26 +00:00
|
|
|
class base_center {
|
2019-04-02 00:45:01 +00:00
|
|
|
public:
|
2019-08-04 14:20:26 +00:00
|
|
|
virtual ~base_center() {}
|
2019-04-19 07:42:15 +00:00
|
|
|
|
2019-04-02 00:45:01 +00:00
|
|
|
virtual void set_center(double_t x, double_t y) = 0;
|
|
|
|
|
|
|
|
virtual void set_center_x(double_t v);
|
|
|
|
|
|
|
|
virtual void set_center_y(double_t v);
|
|
|
|
|
|
|
|
virtual void get_center(double_t& x, double_t& y) = 0;
|
|
|
|
|
|
|
|
virtual double_t get_center_x();
|
|
|
|
|
|
|
|
virtual double_t get_center_y();
|
|
|
|
};
|
|
|
|
|
|
|
|
class ifactory {
|
|
|
|
public:
|
2019-04-19 12:18:29 +00:00
|
|
|
virtual ~ifactory() {}
|
2019-04-19 07:42:15 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual bool is_type_supported(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual std::shared_ptr<::streamfx::gfx::blur::base> create(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_min_size(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_step_size(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_max_size(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_min_angle(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_step_angle(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_max_angle(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual bool is_step_scale_supported(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_min_step_scale_x(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_step_step_scale_x(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_max_step_scale_x(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_min_step_scale_y(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_step_step_scale_y(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
virtual double_t get_max_step_scale_y(::streamfx::gfx::blur::type type) = 0;
|
2019-04-02 00:45:01 +00:00
|
|
|
};
|
|
|
|
} // namespace blur
|
2021-06-08 02:47:04 +00:00
|
|
|
} // namespace streamfx::gfx
|