Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
c0499fbb
提交
c0499fbb
authored
6月 15, 2016
作者:
Seven Du
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-9266 #resolve
上级
5fea5628
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
6 行增加
和
6 行删除
+6
-6
switch_core_video.h
src/include/switch_core_video.h
+2
-2
mod_cv.cpp
src/mod/applications/mod_cv/mod_cv.cpp
+1
-1
mod_vlc.c
src/mod/formats/mod_vlc/mod_vlc.c
+1
-1
switch_core_video.c
src/switch_core_video.c
+2
-2
没有找到文件。
src/include/switch_core_video.h
浏览文件 @
c0499fbb
...
...
@@ -352,10 +352,10 @@ SWITCH_DECLARE(void) switch_img_find_position(switch_img_position_t pos, int sw,
*
* \param[in] src The image descriptor
* \param[in] dest The target memory address
* \param[in] s
ize The size of target memory address used for bounds check
* \param[in] s
tride Bytes in a row for the destination. Pass 0 if the buffer has contiguous rows. Can be negative. A multiple of 16 is optimal.
* \param[in] fmt The target format
*/
SWITCH_DECLARE
(
switch_status_t
)
switch_img_to_raw
(
switch_image_t
*
src
,
void
*
dest
,
switch_size_t
siz
e
,
switch_img_fmt_t
fmt
);
SWITCH_DECLARE
(
switch_status_t
)
switch_img_to_raw
(
switch_image_t
*
src
,
void
*
dest
,
int
strid
e
,
switch_img_fmt_t
fmt
);
/*!\brief convert raw memory to switch_img_t
*
* if dest is NULL then a new img is created, user should destroy it later,
...
...
src/mod/applications/mod_cv/mod_cv.cpp
浏览文件 @
c0499fbb
...
...
@@ -720,7 +720,7 @@ static switch_status_t video_thread_callback(switch_core_session_t *session, swi
switch_assert
(
context
->
rawImage
->
width
*
3
==
context
->
rawImage
->
widthStep
);
}
switch_img_to_raw
(
frame
->
img
,
context
->
rawImage
->
imageData
,
context
->
rawImage
->
widthStep
*
context
->
h
,
SWITCH_IMG_FMT_RGB24
);
switch_img_to_raw
(
frame
->
img
,
context
->
rawImage
->
imageData
,
context
->
rawImage
->
widthStep
,
SWITCH_IMG_FMT_RGB24
);
detectAndDraw
(
context
);
if
(
context
->
detected
.
simo_count
>
20
)
{
...
...
src/mod/formats/mod_vlc/mod_vlc.c
浏览文件 @
c0499fbb
...
...
@@ -1659,7 +1659,7 @@ int vlc_write_video_imem_get_callback(void *data, const char *cookie, int64_t *
}
*
output
=
context
->
video_frame_buffer
;
switch_img_to_raw
(
img
,
*
output
,
*
size
,
SWITCH_IMG_FMT_YUY2
);
switch_img_to_raw
(
img
,
*
output
,
0
,
SWITCH_IMG_FMT_YUY2
);
switch_img_free
(
&
img
);
return
0
;
}
...
...
src/switch_core_video.c
浏览文件 @
c0499fbb
...
...
@@ -2031,7 +2031,7 @@ static inline uint32_t switch_img_fmt2fourcc(switch_img_fmt_t fmt)
}
#endif
SWITCH_DECLARE
(
switch_status_t
)
switch_img_to_raw
(
switch_image_t
*
src
,
void
*
dest
,
switch_size_t
siz
e
,
switch_img_fmt_t
fmt
)
SWITCH_DECLARE
(
switch_status_t
)
switch_img_to_raw
(
switch_image_t
*
src
,
void
*
dest
,
int
strid
e
,
switch_img_fmt_t
fmt
)
{
#ifdef SWITCH_HAVE_YUV
uint32_t
fourcc
;
...
...
@@ -2050,7 +2050,7 @@ SWITCH_DECLARE(switch_status_t) switch_img_to_raw(switch_image_t *src, void *des
ret
=
ConvertFromI420
(
src
->
planes
[
0
],
src
->
stride
[
0
],
src
->
planes
[
1
],
src
->
stride
[
1
],
src
->
planes
[
2
],
src
->
stride
[
2
],
dest
,
s
iz
e
,
dest
,
s
trid
e
,
src
->
d_w
,
src
->
d_h
,
fourcc
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论