Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Multimedia Utils Lite
提交
8bfbd9c6
M
Multimedia Utils Lite
项目概览
OpenHarmony
/
Multimedia Utils Lite
大约 1 年 前同步成功
通知
1
Star
20
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
Multimedia Utils Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8bfbd9c6
编写于
9月 17, 2020
作者:
G
Gymee
提交者:
openharmony_ci
9月 17, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
!1 【轻量级 PR】:remove typedef in struct or enum type definition
Merge pull request !1 from Gymee/N/A
上级
f2e521f7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
12 deletion
+12
-12
include/media_info.h
include/media_info.h
+12
-12
未找到文件。
include/media_info.h
浏览文件 @
8bfbd9c6
...
...
@@ -72,7 +72,7 @@ const std::string KEY_TIME_US = "timeUs";
* @since 1.0
* @version 1.0
*/
typedef
enum
{
enum
AudioSourceType
{
/** Invalid audio source */
AUDIO_SOURCE_INVALID
=
-
1
,
/** Default audio source */
...
...
@@ -105,7 +105,7 @@ typedef enum {
AUDIO_HOTWORD
=
1999
,
/** Extended remote submix */
AUDIO_REMOTE_SUBMIX_EXTEND
=
10007
,
}
AudioSourceType
;
};
/**
* @brief Defines the audio Device Descriptor.
...
...
@@ -113,14 +113,14 @@ typedef enum {
* @since 1.0
* @version 1.0
*/
typedef
struct
{
struct
AudioDeviceDesc
{
/** Device name */
std
::
string
deviceName
;
/** Type of the audio input source */
AudioSourceType
inputSourceType
;
/** Bits 31-24: reserved bits; bits 23-16: mode ID; bits 15-8: device ID; bits 7-0: channel ID */
uint32_t
deviceId
;
}
AudioDeviceDesc
;
};
/**
* @brief Enumerates audio stream types.
...
...
@@ -128,7 +128,7 @@ typedef struct {
* @since 1.0
* @version 1.0
*/
typedef
enum
{
enum
AudioStreamType
{
/** Default audio stream type */
TYPE_DEFAULT
=
-
1
,
/** Media */
...
...
@@ -155,7 +155,7 @@ typedef enum {
TYPE_TTS
=
10
,
/** Accessibility */
TYPE_ACCESSIBILITY
=
11
,
}
AudioStreamType
;
};
/**
* @brief Enumerates video codec formats.
...
...
@@ -163,14 +163,14 @@ typedef enum {
* @since 1.0
* @version 1.0
*/
typedef
enum
{
enum
VideoCodecFormat
{
/** Default format */
VIDEO_DEFAULT
=
0
,
/** H.264 */
H264
=
2
,
/** High Efficiency Video Coding (HEVC) */
HEVC
=
5
,
}
VideoCodecFormat
;
};
/**
* @brief Enumerates audio codec formats.
...
...
@@ -178,7 +178,7 @@ typedef enum {
* @since 1.0
* @version 1.0
*/
typedef
enum
{
enum
AudioCodecFormat
{
/** Default format */
AUDIO_DEFAULT
=
0
,
/** Advanced Audio Coding Low Complexity (AAC-LC) */
...
...
@@ -193,7 +193,7 @@ typedef enum {
AAC_ELD
=
5
,
/** Invalid value */
FORMAT_BUTT
,
}
AudioCodecFormat
;
};
/**
* @brief Enumerates audio bit widths.
...
...
@@ -201,7 +201,7 @@ typedef enum {
* @since 1.0
* @version 1.0
*/
typedef
enum
{
enum
AudioBitWidth
{
/** 8-bit width */
BIT_WIDTH_8
=
8
,
/** 16-bit width */
...
...
@@ -210,5 +210,5 @@ typedef enum {
BIT_WIDTH_24
=
24
,
/** Invalid value */
BIT_WIDTH_BUTT
,
}
AudioBitWidth
;
};
#endif // MEDIA_INFO_H
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录