Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
13c3f053
提交
13c3f053
authored
1月 29, 2015
作者:
Anthony Minessale
提交者:
Michael Jerris
5月 28, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-7500: use the vpx_image_t from the installed header file to prevent mismatch
上级
260e277f
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
43 行删除
+9
-43
switch_core_video.h
src/include/switch_core_video.h
+8
-42
switch_types.h
src/include/switch_types.h
+1
-1
没有找到文件。
src/include/switch_core_video.h
浏览文件 @
13c3f053
...
@@ -47,6 +47,13 @@ SWITCH_BEGIN_EXTERN_C
...
@@ -47,6 +47,13 @@ SWITCH_BEGIN_EXTERN_C
#define SWITCH_IMG_FMT_UV_FLIP VPX_IMG_FMT_UV_FLIP
#define SWITCH_IMG_FMT_UV_FLIP VPX_IMG_FMT_UV_FLIP
#define SWITCH_IMG_FMT_HAS_ALPHA VPX_IMG_FMT_HAS_ALPHA
#define SWITCH_IMG_FMT_HAS_ALPHA VPX_IMG_FMT_HAS_ALPHA
#define SWITCH_PLANE_PACKED VPX_PLANE_PACKED
#define SWITCH_PLANE_Y VPX_PLANE_Y
#define SWITCH_PLANE_U VPX_PLANE_U
#define SWITCH_PLANE_V VPX_PLANE_V
#define SWITCH_PLANE_ALPHA VPX_PLANE_ALPHA
#ifndef VPX_IMG_FMT_HIGH
/* not available in libvpx 1.3.0 (see commit hash e97aea28) */
#ifndef VPX_IMG_FMT_HIGH
/* not available in libvpx 1.3.0 (see commit hash e97aea28) */
#define VPX_IMG_FMT_HIGH 0x800
/**< Image uses 16bit framebuffer */
#define VPX_IMG_FMT_HIGH 0x800
/**< Image uses 16bit framebuffer */
#endif
#endif
...
@@ -81,48 +88,7 @@ typedef enum switch_img_fmt {
...
@@ -81,48 +88,7 @@ typedef enum switch_img_fmt {
SWITCH_IMG_FMT_I44416
=
SWITCH_IMG_FMT_I444
|
SWITCH_IMG_FMT_HIGH
SWITCH_IMG_FMT_I44416
=
SWITCH_IMG_FMT_I444
|
SWITCH_IMG_FMT_HIGH
}
switch_img_fmt_t
;
/**< alias for enum vpx_img_fmt */
}
switch_img_fmt_t
;
/**< alias for enum vpx_img_fmt */
/**\brief Image Descriptor */
typedef
vpx_image_t
switch_image_t
;
struct
switch_image
{
switch_img_fmt_t
fmt
;
/**< Image Format */
/* Image storage dimensions */
unsigned
int
w
;
/**< Stored image width */
unsigned
int
h
;
/**< Stored image height */
unsigned
int
bit_depth
;
/**< Stored image bit-depth */
/* Image display dimensions */
unsigned
int
d_w
;
/**< Displayed image width */
unsigned
int
d_h
;
/**< Displayed image height */
/* Chroma subsampling info */
unsigned
int
x_chroma_shift
;
/**< subsampling order, X */
unsigned
int
y_chroma_shift
;
/**< subsampling order, Y */
/* Image data pointers. */
#define SWITCH_PLANE_PACKED VPX_PLANE_PACKED
#define SWITCH_PLANE_Y VPX_PLANE_Y
#define SWITCH_PLANE_U VPX_PLANE_U
#define SWITCH_PLANE_V VPX_PLANE_V
#define SWITCH_PLANE_ALPHA VPX_PLANE_ALPHA
unsigned
char
*
planes
[
4
];
/**< pointer to the top left pixel for each plane */
int
stride
[
4
];
/**< stride between rows for each plane */
int
bps
;
/**< bits per sample (for packed formats) */
/* The following member may be set by the application to associate data
* with this image.
*/
void
*
user_priv
;
/**< may be set by the application to associate data
* with this image. */
/* The following members should be treated as private. */
unsigned
char
*
img_data
;
/**< private */
int
img_data_owner
;
/**< private */
int
self_allocd
;
/**< private */
void
*
fb_priv
;
/**< Frame buffer data associated with the image. */
};
/**\brief Representation of a rectangle on a surface */
/**\brief Representation of a rectangle on a surface */
typedef
struct
switch_image_rect
{
typedef
struct
switch_image_rect
{
...
...
src/include/switch_types.h
浏览文件 @
13c3f053
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
#include <switch.h>
#include <switch.h>
#include <switch_json.h>
#include <switch_json.h>
#include <switch_core_video.h>
SWITCH_BEGIN_EXTERN_C
SWITCH_BEGIN_EXTERN_C
#define SWITCH_ENT_ORIGINATE_DELIM ":_:"
#define SWITCH_ENT_ORIGINATE_DELIM ":_:"
...
@@ -2111,7 +2112,6 @@ typedef struct switch_caller_extension switch_caller_extension_t;
...
@@ -2111,7 +2112,6 @@ typedef struct switch_caller_extension switch_caller_extension_t;
typedef
struct
switch_caller_application
switch_caller_application_t
;
typedef
struct
switch_caller_application
switch_caller_application_t
;
typedef
struct
switch_state_handler_table
switch_state_handler_table_t
;
typedef
struct
switch_state_handler_table
switch_state_handler_table_t
;
typedef
struct
switch_timer
switch_timer_t
;
typedef
struct
switch_timer
switch_timer_t
;
typedef
struct
switch_image
switch_image_t
;
typedef
struct
switch_codec
switch_codec_t
;
typedef
struct
switch_codec
switch_codec_t
;
typedef
struct
switch_core_thread_session
switch_core_thread_session_t
;
typedef
struct
switch_core_thread_session
switch_core_thread_session_t
;
typedef
struct
switch_codec_implementation
switch_codec_implementation_t
;
typedef
struct
switch_codec_implementation
switch_codec_implementation_t
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论