Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
尘离序散
obs-studio
提交
00f280ff
O
obs-studio
项目概览
尘离序散
/
obs-studio
与 Fork 源项目一致
从无法访问的项目Fork
通知
30
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
obs-studio
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
00f280ff
编写于
1月 20, 2020
作者:
J
jpark37
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
libobs: Rename DEPRECATED to OBS_DEPRECATED
Avoid collisions with other libraries that define DEPRECATED.
上级
500111e2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
8 deletion
+11
-8
libobs/obs-encoder.c
libobs/obs-encoder.c
+2
-0
libobs/obs-properties.h
libobs/obs-properties.h
+1
-1
libobs/obs.c
libobs/obs.c
+2
-1
libobs/obs.h
libobs/obs.h
+4
-4
libobs/util/c99defs.h
libobs/util/c99defs.h
+2
-2
未找到文件。
libobs/obs-encoder.c
浏览文件 @
00f280ff
...
...
@@ -1309,12 +1309,14 @@ void obs_encoder_packet_create_instance(struct encoder_packet *dst,
memcpy
(
dst
->
data
,
src
->
data
,
src
->
size
);
}
/* OBS_DEPRECATED */
void
obs_duplicate_encoder_packet
(
struct
encoder_packet
*
dst
,
const
struct
encoder_packet
*
src
)
{
obs_encoder_packet_create_instance
(
dst
,
src
);
}
/* OBS_DEPRECATED */
void
obs_free_encoder_packet
(
struct
encoder_packet
*
packet
)
{
obs_encoder_packet_release
(
packet
);
...
...
libobs/obs-properties.h
浏览文件 @
00f280ff
...
...
@@ -397,7 +397,7 @@ EXPORT enum obs_group_type obs_property_group_type(obs_property_t *p);
EXPORT
obs_properties_t
*
obs_property_group_content
(
obs_property_t
*
p
);
#ifndef SWIG
DEPRECATED
OBS_
DEPRECATED
EXPORT
enum
obs_text_type
obs_proprety_text_type
(
obs_property_t
*
p
);
#endif
...
...
libobs/obs.c
浏览文件 @
00f280ff
...
...
@@ -1656,7 +1656,7 @@ gs_effect_t *obs_get_base_effect(enum obs_base_effect effect)
return
NULL
;
}
/* DEPRECATED */
/*
OBS_
DEPRECATED */
gs_effect_t
*
obs_get_default_rect_effect
(
void
)
{
if
(
!
obs
)
...
...
@@ -1678,6 +1678,7 @@ proc_handler_t *obs_get_proc_handler(void)
return
obs
->
procs
;
}
/* OBS_DEPRECATED */
void
obs_render_main_view
(
void
)
{
if
(
!
obs
)
...
...
libobs/obs.h
浏览文件 @
00f280ff
...
...
@@ -630,7 +630,7 @@ EXPORT gs_effect_t *obs_get_base_effect(enum obs_base_effect effect);
#ifndef SWIG
/* DEPRECATED: gets texture_rect default effect */
DEPRECATED
OBS_
DEPRECATED
EXPORT
gs_effect_t
*
obs_get_default_rect_effect
(
void
);
#endif
...
...
@@ -642,7 +642,7 @@ EXPORT proc_handler_t *obs_get_proc_handler(void);
#ifndef SWIG
/** Renders the main view */
DEPRECATED
OBS_
DEPRECATED
EXPORT
void
obs_render_main_view
(
void
);
#endif
...
...
@@ -2037,11 +2037,11 @@ EXPORT uint32_t obs_encoder_get_caps(const obs_encoder_t *encoder);
#ifndef SWIG
/** Duplicates an encoder packet */
DEPRECATED
OBS_
DEPRECATED
EXPORT
void
obs_duplicate_encoder_packet
(
struct
encoder_packet
*
dst
,
const
struct
encoder_packet
*
src
);
DEPRECATED
OBS_
DEPRECATED
EXPORT
void
obs_free_encoder_packet
(
struct
encoder_packet
*
packet
);
#endif
...
...
libobs/util/c99defs.h
浏览文件 @
00f280ff
...
...
@@ -24,10 +24,10 @@
#define UNUSED_PARAMETER(param) (void)param
#ifdef _MSC_VER
#define DEPRECATED __declspec(deprecated)
#define
OBS_
DEPRECATED __declspec(deprecated)
#define FORCE_INLINE __forceinline
#else
#define DEPRECATED __attribute__((deprecated))
#define
OBS_
DEPRECATED __attribute__((deprecated))
#define FORCE_INLINE inline __attribute__((always_inline))
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录