Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
3e0a0ba8
提交
3e0a0ba8
authored
7月 30, 2015
作者:
Mike Jerris
提交者:
Michael Jerris
7月 30, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
attempt to optimize patch function
上级
6565473b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
11 行删除
+12
-11
switch_core_video.h
src/include/switch_core_video.h
+0
-9
switch_core_video.c
src/switch_core_video.c
+12
-2
没有找到文件。
src/include/switch_core_video.h
浏览文件 @
3e0a0ba8
...
@@ -258,15 +258,6 @@ SWITCH_DECLARE(switch_image_t *) switch_img_copy_rect(switch_image_t *img, uint3
...
@@ -258,15 +258,6 @@ SWITCH_DECLARE(switch_image_t *) switch_img_copy_rect(switch_image_t *img, uint3
*/
*/
SWITCH_DECLARE
(
void
)
switch_img_fill
(
switch_image_t
*
img
,
int
x
,
int
y
,
int
w
,
int
h
,
switch_rgb_color_t
*
color
);
SWITCH_DECLARE
(
void
)
switch_img_fill
(
switch_image_t
*
img
,
int
x
,
int
y
,
int
w
,
int
h
,
switch_rgb_color_t
*
color
);
/*!\brief Draw a pixel on an image
*
* \param[in] img Image descriptor
* \param[in] x leftmost pos
* \param[in] y topmost pos
* \param[in] color RGB color
*/
SWITCH_DECLARE
(
void
)
switch_img_draw_pixel
(
switch_image_t
*
img
,
int
x
,
int
y
,
switch_rgb_color_t
*
color
);
/*!\brief Set RGB color with a string
/*!\brief Set RGB color with a string
*
*
* Color string should be in #RRGGBB format
* Color string should be in #RRGGBB format
...
...
src/switch_core_video.c
浏览文件 @
3e0a0ba8
...
@@ -67,6 +67,16 @@ static inline void switch_color_rgb2yuv(switch_rgb_color_t *rgb, switch_yuv_colo
...
@@ -67,6 +67,16 @@ static inline void switch_color_rgb2yuv(switch_rgb_color_t *rgb, switch_yuv_colo
*/
*/
static
inline
void
switch_color_yuv2rgb
(
switch_yuv_color_t
*
yuv
,
switch_rgb_color_t
*
rgb
);
static
inline
void
switch_color_yuv2rgb
(
switch_yuv_color_t
*
yuv
,
switch_rgb_color_t
*
rgb
);
/*!\brief Draw a pixel on an image
*
* \param[in] img Image descriptor
* \param[in] x leftmost pos
* \param[in] y topmost pos
* \param[in] color RGB color
*/
static
inline
void
switch_img_draw_pixel
(
switch_image_t
*
img
,
int
x
,
int
y
,
switch_rgb_color_t
*
color
);
struct
pos_el
{
struct
pos_el
{
switch_img_position_t
pos
;
switch_img_position_t
pos
;
const
char
*
name
;
const
char
*
name
;
...
@@ -460,7 +470,7 @@ SWITCH_DECLARE(switch_image_t *) switch_img_copy_rect(switch_image_t *img, uint3
...
@@ -460,7 +470,7 @@ SWITCH_DECLARE(switch_image_t *) switch_img_copy_rect(switch_image_t *img, uint3
#endif
#endif
}
}
SWITCH_DECLARE
(
void
)
switch_img_draw_pixel
(
switch_image_t
*
img
,
int
x
,
int
y
,
switch_rgb_color_t
*
color
)
static
inline
void
switch_img_draw_pixel
(
switch_image_t
*
img
,
int
x
,
int
y
,
switch_rgb_color_t
*
color
)
{
{
#ifdef SWITCH_HAVE_YUV
#ifdef SWITCH_HAVE_YUV
switch_yuv_color_t
yuv
;
switch_yuv_color_t
yuv
;
...
@@ -567,7 +577,7 @@ static inline void switch_img_get_rgb_pixel(switch_image_t *img, switch_rgb_colo
...
@@ -567,7 +577,7 @@ static inline void switch_img_get_rgb_pixel(switch_image_t *img, switch_rgb_colo
SWITCH_DECLARE
(
void
)
switch_img_overlay
(
switch_image_t
*
IMG
,
switch_image_t
*
img
,
int
x
,
int
y
,
uint8_t
alpha
)
SWITCH_DECLARE
(
void
)
switch_img_overlay
(
switch_image_t
*
IMG
,
switch_image_t
*
img
,
int
x
,
int
y
,
uint8_t
alpha
)
{
{
int
i
,
j
,
len
,
max_h
;
int
i
,
j
,
len
,
max_h
;
switch_rgb_color_t
RGB
=
{
0
},
rgb
=
{
0
},
c
;
switch_rgb_color_t
RGB
=
{
0
},
rgb
=
{
0
},
c
=
{
0
}
;
int
xoff
=
0
,
yoff
=
0
;
int
xoff
=
0
,
yoff
=
0
;
switch_assert
(
IMG
->
fmt
==
SWITCH_IMG_FMT_I420
);
switch_assert
(
IMG
->
fmt
==
SWITCH_IMG_FMT_I420
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论