mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-30 23:33:02 +00:00
5a3954ae0e
Fixes several files incorrectly stated a different license from the actual project, as well as the copyright headers included in all files. This change has no effect on the licensing terms, it should clear up a bit of confusion by contributors. Plus the files get a bit smaller, and we have less duplicated information across the entire project. Overall the project is GPLv2 if not built with Qt, and GPLv3 if it is built with Qt. There are no parts licensed under a different license, all have been adapted from other compatible licenses into GPLv2 or GPLv3.
36 lines
985 B
C++
36 lines
985 B
C++
// AUTOGENERATED COPYRIGHT HEADER START
|
|
// Copyright (C) 2021-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
|
|
// AUTOGENERATED COPYRIGHT HEADER END
|
|
|
|
#pragma once
|
|
#include "nvidia/cv/nvidia-cv-image.hpp"
|
|
#include "obs/gs/gs-texture.hpp"
|
|
|
|
#include "warning-disable.hpp"
|
|
#include <cinttypes>
|
|
#include "warning-enable.hpp"
|
|
|
|
namespace streamfx::nvidia::cv {
|
|
using ::streamfx::nvidia::cv::component_layout;
|
|
using ::streamfx::nvidia::cv::component_type;
|
|
using ::streamfx::nvidia::cv::image;
|
|
using ::streamfx::nvidia::cv::memory_location;
|
|
using ::streamfx::nvidia::cv::pixel_format;
|
|
|
|
class texture : public image {
|
|
std::shared_ptr<::streamfx::obs::gs::texture> _texture;
|
|
|
|
public:
|
|
~texture() override;
|
|
texture(uint32_t width, uint32_t height, gs_color_format pix_fmt);
|
|
|
|
void resize(uint32_t width, uint32_t height) override;
|
|
|
|
std::shared_ptr<::streamfx::obs::gs::texture> get_texture();
|
|
|
|
private:
|
|
void alloc();
|
|
void free();
|
|
};
|
|
|
|
} // namespace streamfx::nvidia::cv
|