mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-15 08:15:06 +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.
40 lines
1.4 KiB
C++
40 lines
1.4 KiB
C++
// AUTOGENERATED COPYRIGHT HEADER START
|
|
// Copyright (C) 2020-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
|
|
// AUTOGENERATED COPYRIGHT HEADER END
|
|
|
|
#pragma once
|
|
#include "common.hpp"
|
|
#include "handler.hpp"
|
|
|
|
extern "C" {
|
|
#include "warning-disable.hpp"
|
|
#include <libavcodec/avcodec.h>
|
|
#include "warning-enable.hpp"
|
|
}
|
|
|
|
/* NVENC has multiple compression modes:
|
|
- CBR: Constant Bitrate (rc=cbr)
|
|
- VBR: Variable Bitrate (rc=vbr)
|
|
- CQP: Constant QP (rc=cqp)
|
|
- CQ: Constant Quality (rc=vbr b=0 maxrate=0 qmin=0 qmax=51 cq=qp), this is basically CRF in X264.
|
|
*/
|
|
|
|
namespace streamfx::encoder::ffmpeg::handler::nvenc {
|
|
bool is_available();
|
|
|
|
void override_update(ffmpeg_instance* instance, obs_data_t* settings);
|
|
|
|
void get_defaults(obs_data_t* settings, const AVCodec* codec, AVCodecContext* context);
|
|
|
|
void get_properties_pre(obs_properties_t* props, const AVCodec* codec, const AVCodecContext* context);
|
|
|
|
void get_properties_post(obs_properties_t* props, const AVCodec* codec, const AVCodecContext* context);
|
|
|
|
void get_runtime_properties(obs_properties_t* props, const AVCodec* codec, AVCodecContext* context);
|
|
|
|
void migrate(obs_data_t* settings, uint64_t version, const AVCodec* codec, AVCodecContext* context);
|
|
|
|
void update(obs_data_t* settings, const AVCodec* codec, AVCodecContext* context);
|
|
|
|
void log_options(obs_data_t* settings, const AVCodec* codec, AVCodecContext* context);
|
|
} // namespace streamfx::encoder::ffmpeg::handler::nvenc
|