mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-23 20:05:11 +00:00
project: Apply coding guidelines
This commit is contained in:
parent
4ead07c23a
commit
1c067b3b5d
14 changed files with 15 additions and 15 deletions
|
@ -90,7 +90,7 @@ extern "C" {
|
||||||
|
|
||||||
// Common Global defines
|
// Common Global defines
|
||||||
/// Logging
|
/// Logging
|
||||||
#define DLOG_(level, ...) blog(level, "[" PLUGIN_NAME "] " __VA_ARGS__)
|
#define DLOG_(level, ...) blog(level, "[" S_PLUGIN_NAME "] " __VA_ARGS__)
|
||||||
#define DLOG_ERROR(...) DLOG_(LOG_ERROR, __VA_ARGS__)
|
#define DLOG_ERROR(...) DLOG_(LOG_ERROR, __VA_ARGS__)
|
||||||
#define DLOG_WARNING(...) DLOG_(LOG_WARNING, __VA_ARGS__)
|
#define DLOG_WARNING(...) DLOG_(LOG_WARNING, __VA_ARGS__)
|
||||||
#define DLOG_INFO(...) DLOG_(LOG_INFO, __VA_ARGS__)
|
#define DLOG_INFO(...) DLOG_(LOG_INFO, __VA_ARGS__)
|
||||||
|
|
|
@ -911,7 +911,7 @@ ffmpeg_factory::ffmpeg_factory(const AVCodec* codec) : _avcodec(codec)
|
||||||
// Generate default identifier.
|
// Generate default identifier.
|
||||||
{
|
{
|
||||||
std::stringstream str;
|
std::stringstream str;
|
||||||
str << PREFIX << _avcodec->name;
|
str << S_PREFIX << _avcodec->name;
|
||||||
_id = str.str();
|
_id = str.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -560,7 +560,7 @@ void blur_instance::video_render(gs_effect_t* effect)
|
||||||
|
|
||||||
blur_factory::blur_factory()
|
blur_factory::blur_factory()
|
||||||
{
|
{
|
||||||
_info.id = PREFIX "filter-blur";
|
_info.id = S_PREFIX "filter-blur";
|
||||||
_info.type = OBS_SOURCE_TYPE_FILTER;
|
_info.type = OBS_SOURCE_TYPE_FILTER;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO;
|
_info.output_flags = OBS_SOURCE_VIDEO;
|
||||||
|
|
||||||
|
|
|
@ -565,7 +565,7 @@ void color_grade_instance::video_render(gs_effect_t* shader)
|
||||||
|
|
||||||
color_grade_factory::color_grade_factory()
|
color_grade_factory::color_grade_factory()
|
||||||
{
|
{
|
||||||
_info.id = PREFIX "filter-color-grade";
|
_info.id = S_PREFIX "filter-color-grade";
|
||||||
_info.type = OBS_SOURCE_TYPE_FILTER;
|
_info.type = OBS_SOURCE_TYPE_FILTER;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO;
|
_info.output_flags = OBS_SOURCE_VIDEO;
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ std::string displacement_instance::get_file()
|
||||||
|
|
||||||
displacement_factory::displacement_factory()
|
displacement_factory::displacement_factory()
|
||||||
{
|
{
|
||||||
_info.id = PREFIX "filter-displacement";
|
_info.id = S_PREFIX "filter-displacement";
|
||||||
_info.type = OBS_SOURCE_TYPE_FILTER;
|
_info.type = OBS_SOURCE_TYPE_FILTER;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW | OBS_SOURCE_DEPRECATED | OBS_SOURCE_CAP_DISABLED;
|
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW | OBS_SOURCE_DEPRECATED | OBS_SOURCE_CAP_DISABLED;
|
||||||
|
|
||||||
|
|
|
@ -393,7 +393,7 @@ void streamfx::filter::dynamic_mask::dynamic_mask_instance::deactivate()
|
||||||
|
|
||||||
dynamic_mask_factory::dynamic_mask_factory()
|
dynamic_mask_factory::dynamic_mask_factory()
|
||||||
{
|
{
|
||||||
_info.id = PREFIX "filter-dynamic-mask";
|
_info.id = S_PREFIX "filter-dynamic-mask";
|
||||||
_info.type = OBS_SOURCE_TYPE_FILTER;
|
_info.type = OBS_SOURCE_TYPE_FILTER;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;
|
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;
|
||||||
|
|
||||||
|
|
|
@ -620,7 +620,7 @@ face_tracking_factory::face_tracking_factory()
|
||||||
_ar = std::make_shared<::nvidia::ar::ar>();
|
_ar = std::make_shared<::nvidia::ar::ar>();
|
||||||
|
|
||||||
// Info
|
// Info
|
||||||
_info.id = PREFIX "filter-nvidia-face-tracking";
|
_info.id = S_PREFIX "filter-nvidia-face-tracking";
|
||||||
_info.type = OBS_SOURCE_TYPE_FILTER;
|
_info.type = OBS_SOURCE_TYPE_FILTER;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;
|
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;
|
||||||
|
|
||||||
|
|
|
@ -517,7 +517,7 @@ void sdf_effects_instance::video_render(gs_effect_t* effect)
|
||||||
|
|
||||||
sdf_effects_factory::sdf_effects_factory()
|
sdf_effects_factory::sdf_effects_factory()
|
||||||
{
|
{
|
||||||
_info.id = PREFIX "filter-sdf-effects";
|
_info.id = S_PREFIX "filter-sdf-effects";
|
||||||
_info.type = OBS_SOURCE_TYPE_FILTER;
|
_info.type = OBS_SOURCE_TYPE_FILTER;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO;
|
_info.output_flags = OBS_SOURCE_VIDEO;
|
||||||
|
|
||||||
|
|
|
@ -149,7 +149,7 @@ void streamfx::filter::shader::shader_instance::deactivate()
|
||||||
|
|
||||||
shader_factory::shader_factory()
|
shader_factory::shader_factory()
|
||||||
{
|
{
|
||||||
_info.id = PREFIX "filter-shader";
|
_info.id = S_PREFIX "filter-shader";
|
||||||
_info.type = OBS_SOURCE_TYPE_FILTER;
|
_info.type = OBS_SOURCE_TYPE_FILTER;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO;
|
_info.output_flags = OBS_SOURCE_VIDEO;
|
||||||
|
|
||||||
|
|
|
@ -441,7 +441,7 @@ void transform_instance::video_render(gs_effect_t* effect)
|
||||||
|
|
||||||
transform_factory::transform_factory()
|
transform_factory::transform_factory()
|
||||||
{
|
{
|
||||||
_info.id = PREFIX "filter-transform";
|
_info.id = S_PREFIX "filter-transform";
|
||||||
_info.type = OBS_SOURCE_TYPE_FILTER;
|
_info.type = OBS_SOURCE_TYPE_FILTER;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO;
|
_info.output_flags = OBS_SOURCE_VIDEO;
|
||||||
|
|
||||||
|
|
|
@ -274,7 +274,7 @@ void mirror_instance::audio_output(std::shared_ptr<void> data)
|
||||||
|
|
||||||
mirror_factory::mirror_factory()
|
mirror_factory::mirror_factory()
|
||||||
{
|
{
|
||||||
_info.id = PREFIX "source-mirror";
|
_info.id = S_PREFIX "source-mirror";
|
||||||
_info.type = OBS_SOURCE_TYPE_INPUT;
|
_info.type = OBS_SOURCE_TYPE_INPUT;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW | OBS_SOURCE_AUDIO;
|
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW | OBS_SOURCE_AUDIO;
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ void streamfx::source::shader::shader_instance::deactivate()
|
||||||
|
|
||||||
shader_factory::shader_factory()
|
shader_factory::shader_factory()
|
||||||
{
|
{
|
||||||
_info.id = PREFIX "source-shader";
|
_info.id = S_PREFIX "source-shader";
|
||||||
_info.type = OBS_SOURCE_TYPE_INPUT;
|
_info.type = OBS_SOURCE_TYPE_INPUT;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;
|
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
#define PLUGIN_NAME "StreamFX"
|
#define S_PLUGIN_NAME "StreamFX"
|
||||||
#define PREFIX "streamfx-"
|
#define S_PREFIX "streamfx-"
|
||||||
|
|
||||||
#define D_TRANSLATE(x) obs_module_text(x)
|
#define D_TRANSLATE(x) obs_module_text(x)
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ void shader_instance::transition_stop()
|
||||||
|
|
||||||
shader_factory::shader_factory()
|
shader_factory::shader_factory()
|
||||||
{
|
{
|
||||||
_info.id = PREFIX "transition-shader";
|
_info.id = S_PREFIX "transition-shader";
|
||||||
_info.type = OBS_SOURCE_TYPE_TRANSITION;
|
_info.type = OBS_SOURCE_TYPE_TRANSITION;
|
||||||
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;
|
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue