2023-02-28 01:15:26 +00:00
|
|
|
// AUTOGENERATED COPYRIGHT HEADER START
|
|
|
|
// Copyright (C) 2021-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
|
|
|
|
// AUTOGENERATED COPYRIGHT HEADER END
|
2021-02-02 21:25:06 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "gfx-lut.hpp"
|
|
|
|
#include "obs/gs/gs-effect.hpp"
|
|
|
|
#include "obs/gs/gs-texture.hpp"
|
|
|
|
|
2022-08-29 10:29:44 +00:00
|
|
|
#include "warning-disable.hpp"
|
|
|
|
#include <memory>
|
|
|
|
#include "warning-enable.hpp"
|
|
|
|
|
2021-06-08 02:47:04 +00:00
|
|
|
namespace streamfx::gfx::lut {
|
2021-02-02 21:25:06 +00:00
|
|
|
class consumer {
|
2021-06-08 02:47:04 +00:00
|
|
|
std::shared_ptr<streamfx::gfx::lut::data> _data;
|
2021-02-02 21:25:06 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
consumer();
|
|
|
|
~consumer();
|
|
|
|
|
2023-05-13 12:35:46 +00:00
|
|
|
std::shared_ptr<streamfx::obs::gs::effect> prepare(streamfx::gfx::lut::color_depth depth, std::shared_ptr<streamfx::obs::gs::texture> lut);
|
2021-02-02 21:25:06 +00:00
|
|
|
|
2023-05-13 12:35:46 +00:00
|
|
|
void consume(streamfx::gfx::lut::color_depth depth, std::shared_ptr<streamfx::obs::gs::texture> lut, std::shared_ptr<streamfx::obs::gs::texture> texture);
|
2021-02-02 21:25:06 +00:00
|
|
|
};
|
2021-06-08 02:47:04 +00:00
|
|
|
} // namespace streamfx::gfx::lut
|