Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
5734b9b2
提交
5734b9b2
authored
6月 17, 2015
作者:
Michael Jerris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-7655: fix a few functions that need to be disabled without YUV
上级
cf0c5709
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
3 行删除
+9
-3
switch_core_video.c
src/switch_core_video.c
+9
-3
没有找到文件。
src/switch_core_video.c
浏览文件 @
5734b9b2
...
@@ -660,7 +660,7 @@ SWITCH_DECLARE(void) switch_color_yuv2rgb(switch_yuv_color_t *yuv, switch_rgb_co
...
@@ -660,7 +660,7 @@ SWITCH_DECLARE(void) switch_color_yuv2rgb(switch_yuv_color_t *yuv, switch_rgb_co
SWITCH_DECLARE
(
void
)
switch_color_set_yuv
(
switch_yuv_color_t
*
color
,
const
char
*
str
)
SWITCH_DECLARE
(
void
)
switch_color_set_yuv
(
switch_yuv_color_t
*
color
,
const
char
*
str
)
{
{
#ifdef SWITCH_HAVE_YUV
#ifdef SWITCH_HAVE_YUV
switch_rgb_color_t
rgb
=
{
0
};
switch_rgb_color_t
rgb
=
{
0
};
switch_color_set_rgb
(
&
rgb
,
str
);
switch_color_set_rgb
(
&
rgb
,
str
);
...
@@ -1838,6 +1838,7 @@ SWITCH_DECLARE(switch_status_t) switch_img_fit(switch_image_t **srcP, int width,
...
@@ -1838,6 +1838,7 @@ SWITCH_DECLARE(switch_status_t) switch_img_fit(switch_image_t **srcP, int width,
SWITCH_DECLARE
(
switch_status_t
)
switch_img_convert
(
switch_image_t
*
src
,
switch_convert_fmt_t
fmt
,
void
*
dest
,
switch_size_t
*
size
)
SWITCH_DECLARE
(
switch_status_t
)
switch_img_convert
(
switch_image_t
*
src
,
switch_convert_fmt_t
fmt
,
void
*
dest
,
switch_size_t
*
size
)
{
{
#ifdef SWITCH_HAVE_YUV
switch_assert
(
src
->
fmt
==
SWITCH_IMG_FMT_I420
);
switch_assert
(
src
->
fmt
==
SWITCH_IMG_FMT_I420
);
switch
(
fmt
)
{
switch
(
fmt
)
{
...
@@ -1858,12 +1859,14 @@ SWITCH_DECLARE(switch_status_t) switch_img_convert(switch_image_t *src, switch_c
...
@@ -1858,12 +1859,14 @@ SWITCH_DECLARE(switch_status_t) switch_img_convert(switch_image_t *src, switch_c
abort
();
abort
();
break
;
break
;
}
}
#else
return
SWITCH_STATUS_FALSE
;
#endif
}
}
SWITCH_DECLARE
(
switch_status_t
)
switch_img_scale
(
switch_image_t
*
src
,
switch_image_t
**
destP
,
int
width
,
int
height
)
SWITCH_DECLARE
(
switch_status_t
)
switch_img_scale
(
switch_image_t
*
src
,
switch_image_t
**
destP
,
int
width
,
int
height
)
{
{
#ifdef SWITCH_HAVE_YUV
switch_image_t
*
dest
=
NULL
;
switch_image_t
*
dest
=
NULL
;
int
ret
=
0
;
int
ret
=
0
;
...
@@ -1903,6 +1906,9 @@ SWITCH_DECLARE(switch_status_t) switch_img_scale(switch_image_t *src, switch_ima
...
@@ -1903,6 +1906,9 @@ SWITCH_DECLARE(switch_status_t) switch_img_scale(switch_image_t *src, switch_ima
}
}
return
SWITCH_STATUS_SUCCESS
;
return
SWITCH_STATUS_SUCCESS
;
#else
return
SWITCH_STATUS_FALSE
;
#endif
}
}
SWITCH_DECLARE
(
void
)
switch_img_find_position
(
switch_img_position_t
pos
,
int
sw
,
int
sh
,
int
iw
,
int
ih
,
int
*
xP
,
int
*
yP
)
SWITCH_DECLARE
(
void
)
switch_img_find_position
(
switch_img_position_t
pos
,
int
sw
,
int
sh
,
int
iw
,
int
ih
,
int
*
xP
,
int
*
yP
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论