project: Apply coding guidelines

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-06-08 04:16:33 +02:00
parent 4ead07c23a
commit 1c067b3b5d
14 changed files with 15 additions and 15 deletions

View file

@ -90,7 +90,7 @@ extern "C" {
// Common Global defines
/// 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_WARNING(...) DLOG_(LOG_WARNING, __VA_ARGS__)
#define DLOG_INFO(...) DLOG_(LOG_INFO, __VA_ARGS__)

View file

@ -911,7 +911,7 @@ ffmpeg_factory::ffmpeg_factory(const AVCodec* codec) : _avcodec(codec)
// Generate default identifier.
{
std::stringstream str;
str << PREFIX << _avcodec->name;
str << S_PREFIX << _avcodec->name;
_id = str.str();
}

View file

@ -560,7 +560,7 @@ void blur_instance::video_render(gs_effect_t* effect)
blur_factory::blur_factory()
{
_info.id = PREFIX "filter-blur";
_info.id = S_PREFIX "filter-blur";
_info.type = OBS_SOURCE_TYPE_FILTER;
_info.output_flags = OBS_SOURCE_VIDEO;

View file

@ -565,7 +565,7 @@ void color_grade_instance::video_render(gs_effect_t* shader)
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.output_flags = OBS_SOURCE_VIDEO;

View file

@ -116,7 +116,7 @@ std::string displacement_instance::get_file()
displacement_factory::displacement_factory()
{
_info.id = PREFIX "filter-displacement";
_info.id = S_PREFIX "filter-displacement";
_info.type = OBS_SOURCE_TYPE_FILTER;
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW | OBS_SOURCE_DEPRECATED | OBS_SOURCE_CAP_DISABLED;

View file

@ -393,7 +393,7 @@ void streamfx::filter::dynamic_mask::dynamic_mask_instance::deactivate()
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.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;

View file

@ -620,7 +620,7 @@ face_tracking_factory::face_tracking_factory()
_ar = std::make_shared<::nvidia::ar::ar>();
// Info
_info.id = PREFIX "filter-nvidia-face-tracking";
_info.id = S_PREFIX "filter-nvidia-face-tracking";
_info.type = OBS_SOURCE_TYPE_FILTER;
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;

View file

@ -517,7 +517,7 @@ void sdf_effects_instance::video_render(gs_effect_t* effect)
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.output_flags = OBS_SOURCE_VIDEO;

View file

@ -149,7 +149,7 @@ void streamfx::filter::shader::shader_instance::deactivate()
shader_factory::shader_factory()
{
_info.id = PREFIX "filter-shader";
_info.id = S_PREFIX "filter-shader";
_info.type = OBS_SOURCE_TYPE_FILTER;
_info.output_flags = OBS_SOURCE_VIDEO;

View file

@ -441,7 +441,7 @@ void transform_instance::video_render(gs_effect_t* effect)
transform_factory::transform_factory()
{
_info.id = PREFIX "filter-transform";
_info.id = S_PREFIX "filter-transform";
_info.type = OBS_SOURCE_TYPE_FILTER;
_info.output_flags = OBS_SOURCE_VIDEO;

View file

@ -274,7 +274,7 @@ void mirror_instance::audio_output(std::shared_ptr<void> data)
mirror_factory::mirror_factory()
{
_info.id = PREFIX "source-mirror";
_info.id = S_PREFIX "source-mirror";
_info.type = OBS_SOURCE_TYPE_INPUT;
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW | OBS_SOURCE_AUDIO;

View file

@ -102,7 +102,7 @@ void streamfx::source::shader::shader_instance::deactivate()
shader_factory::shader_factory()
{
_info.id = PREFIX "source-shader";
_info.id = S_PREFIX "source-shader";
_info.type = OBS_SOURCE_TYPE_INPUT;
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;

View file

@ -20,8 +20,8 @@
#pragma once
#include "common.hpp"
#define PLUGIN_NAME "StreamFX"
#define PREFIX "streamfx-"
#define S_PLUGIN_NAME "StreamFX"
#define S_PREFIX "streamfx-"
#define D_TRANSLATE(x) obs_module_text(x)

View file

@ -123,7 +123,7 @@ void shader_instance::transition_stop()
shader_factory::shader_factory()
{
_info.id = PREFIX "transition-shader";
_info.id = S_PREFIX "transition-shader";
_info.type = OBS_SOURCE_TYPE_TRANSITION;
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;