2017-03-15 15:28:17 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "libobs/obs-module.h"
|
|
|
|
|
#include <stdint.h>
|
2017-05-03 08:12:00 +02:00
|
|
|
#include <inttypes.h>
|
2017-03-15 15:28:17 +01:00
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Macro Definitions //
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
// Utility
|
|
|
|
|
#define vstr(s) dstr(s)
|
|
|
|
|
#define dstr(s) #s
|
|
|
|
|
#define clamp(val,low,high) (val > high ? high : (val < low ? low : val))
|
|
|
|
|
#ifndef __FUNCTION_NAME__
|
|
|
|
|
#if defined(_WIN32) || defined(_WIN64) //WINDOWS
|
|
|
|
|
#define __FUNCTION_NAME__ __FUNCTION__
|
|
|
|
|
#else //*NIX
|
|
|
|
|
#define __FUNCTION_NAME__ __func__
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Plugin
|
|
|
|
|
#define PLUGIN_NAME "Video For Windows"
|
|
|
|
|
#include "Version.h"
|
|
|
|
|
|
|
|
|
|
// Logging
|
2017-03-15 17:14:30 +01:00
|
|
|
#define PLOG(level, ...) blog(level, "[VFW] " __VA_ARGS__);
|
2017-03-15 15:28:17 +01:00
|
|
|
#define PLOG_ERROR(...) PLOG(LOG_ERROR, __VA_ARGS__)
|
|
|
|
|
#define PLOG_WARNING(...) PLOG(LOG_WARNING, __VA_ARGS__)
|
|
|
|
|
#define PLOG_INFO(...) PLOG(LOG_INFO, __VA_ARGS__)
|
|
|
|
|
#define PLOG_DEBUG(...) PLOG(LOG_DEBUG, __VA_ARGS__)
|
2017-03-15 17:14:30 +01:00
|
|
|
|
|
|
|
|
// Properties
|
|
|
|
|
#define PROP_BITRATE "Bitrate"
|
|
|
|
|
#define PROP_QUALITY "Quality"
|
2017-06-20 16:47:44 +02:00
|
|
|
#define PROP_INTERVAL_TYPE "IntervalType"
|
2017-03-15 17:14:30 +01:00
|
|
|
#define PROP_KEYFRAME_INTERVAL "KeyframeInterval"
|
2017-06-20 16:47:44 +02:00
|
|
|
#define PROP_FORCE_KEYFRAMES "ForceKeyframes"
|
2017-06-08 09:25:12 +02:00
|
|
|
#define PROP_MODE "Mode"
|
|
|
|
|
#define PROP_MODE_NORMAL "Mode.Normal"
|
2017-06-08 09:39:07 +02:00
|
|
|
#define PROP_MODE_TEMPORAL "Mode.Temporal"
|
2017-06-08 09:25:12 +02:00
|
|
|
#define PROP_MODE_SEQUENTIAL "Mode.Sequential"
|
2017-03-15 17:14:30 +01:00
|
|
|
|
|
|
|
|
#define PROP_CONFIGURE "Configure"
|
|
|
|
|
#define PROP_ABOUT "About"
|