Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
937acbad
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
937acbad
编写于
7月 06, 2023
作者:
R
rchdlee
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
format docs
Signed-off-by:
N
rchdlee
<
liyidong1@huawei.com
>
上级
fd314b3b
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
152 addition
and
152 deletion
+152
-152
zh-cn/application-dev/reference/native-apis/_a_v_capability.md
.../application-dev/reference/native-apis/_a_v_capability.md
+28
-28
zh-cn/application-dev/reference/native-apis/_a_v_demuxer.md
zh-cn/application-dev/reference/native-apis/_a_v_demuxer.md
+6
-6
zh-cn/application-dev/reference/native-apis/_a_v_muxer.md
zh-cn/application-dev/reference/native-apis/_a_v_muxer.md
+7
-7
zh-cn/application-dev/reference/native-apis/_a_v_source.md
zh-cn/application-dev/reference/native-apis/_a_v_source.md
+5
-5
zh-cn/application-dev/reference/native-apis/_codec_base.md
zh-cn/application-dev/reference/native-apis/_codec_base.md
+28
-28
zh-cn/application-dev/reference/native-apis/_core.md
zh-cn/application-dev/reference/native-apis/_core.md
+25
-25
zh-cn/application-dev/reference/native-apis/_video_decoder.md
...n/application-dev/reference/native-apis/_video_decoder.md
+17
-17
zh-cn/application-dev/reference/native-apis/_video_encoder.md
...n/application-dev/reference/native-apis/_video_encoder.md
+20
-20
zh-cn/application-dev/reference/native-apis/native__avcapability_8h.md
...tion-dev/reference/native-apis/native__avcapability_8h.md
+2
-2
zh-cn/application-dev/reference/native-apis/native__avcodec__base_8h.md
...ion-dev/reference/native-apis/native__avcodec__base_8h.md
+11
-11
zh-cn/application-dev/reference/native-apis/native__avcodec__videoencoder_8h.md
...reference/native-apis/native__avcodec__videoencoder_8h.md
+1
-1
zh-cn/application-dev/reference/native-apis/native__averrors_8h.md
...lication-dev/reference/native-apis/native__averrors_8h.md
+1
-1
zh-cn/application-dev/reference/native-apis/native__avformat_8h.md
...lication-dev/reference/native-apis/native__avformat_8h.md
+1
-1
未找到文件。
zh-cn/application-dev/reference/native-apis/_a_v_capability.md
浏览文件 @
937acbad
...
...
@@ -92,7 +92,7 @@ AVCapability模块提供用于编解码能力查询的函数。
```
typedef enum OH_AVCodecCategoryOH_AVCodecCategory
typedef enum OH_AVCodecCategory
OH_AVCodecCategory
```
**描述:**
...
...
@@ -110,7 +110,7 @@ typedef enum OH_AVCodecCategoryOH_AVCodecCategory
```
typedef struct OH_AVRangeOH_AVRange
typedef struct OH_AVRange
OH_AVRange
```
**描述:**
...
...
@@ -128,7 +128,7 @@ typedef struct OH_AVRangeOH_AVRange
```
typedef enum OH_BitrateModeOH_BitrateMode
typedef enum OH_BitrateMode
OH_BitrateMode
```
**描述:**
...
...
@@ -199,7 +199,7 @@ enum OH_BitrateMode
```
bool OH_AVCapability_AreProfileAndLevelSupported (OH_AVCapability *capability, int32_t profile, int32_t level
)
bool OH_AVCapability_AreProfileAndLevelSupported (OH_AVCapability *capability, int32_t profile, int32_t level)
```
**描述:**
...
...
@@ -229,7 +229,7 @@ bool OH_AVCapability_AreProfileAndLevelSupported (OH_AVCapability *capability, i
```
bool OH_AVCapability_AreVideoSizeAndFrameRateSupported (OH_AVCapability *capability, int32_t width, int32_t height, int32_t frameRate
)
bool OH_AVCapability_AreVideoSizeAndFrameRateSupported (OH_AVCapability *capability, int32_t width, int32_t height, int32_t frameRate)
```
**描述:**
...
...
@@ -260,7 +260,7 @@ bool OH_AVCapability_AreVideoSizeAndFrameRateSupported (OH_AVCapability *capabil
```
OH_AVErrCode OH_AVCapability_GetAudioChannelCountRange (OH_AVCapability *
capability, OH_AVRange * channelCountRange
)
OH_AVErrCode OH_AVCapability_GetAudioChannelCountRange (OH_AVCapability *
capability, OH_AVRange *channelCountRange
)
```
**描述:**
...
...
@@ -289,7 +289,7 @@ OH_AVErrCode OH_AVCapability_GetAudioChannelCountRange (OH_AVCapability * capabi
```
OH_AVErrCode OH_AVCapability_GetAudioSupportedSampleRates (OH_AVCapability *
capability, const int32_t ** sampleRates, uint32_t * sampleRateNum
)
OH_AVErrCode OH_AVCapability_GetAudioSupportedSampleRates (OH_AVCapability *
capability, const int32_t **sampleRates, uint32_t *sampleRateNum
)
```
**描述:**
...
...
@@ -319,7 +319,7 @@ OH_AVErrCode OH_AVCapability_GetAudioSupportedSampleRates (OH_AVCapability * cap
```
OH_AVErrCode OH_AVCapability_GetEncoderBitrateRange (OH_AVCapability *
capability, OH_AVRange * bitrateRange
)
OH_AVErrCode OH_AVCapability_GetEncoderBitrateRange (OH_AVCapability *
capability, OH_AVRange *bitrateRange
)
```
**描述:**
...
...
@@ -348,7 +348,7 @@ OH_AVErrCode OH_AVCapability_GetEncoderBitrateRange (OH_AVCapability * capabilit
```
OH_AVErrCode OH_AVCapability_GetEncoderComplexityRange (OH_AVCapability *
capability, OH_AVRange * complexityRange
)
OH_AVErrCode OH_AVCapability_GetEncoderComplexityRange (OH_AVCapability *
capability, OH_AVRange *complexityRange
)
```
**描述:**
...
...
@@ -377,7 +377,7 @@ OH_AVErrCode OH_AVCapability_GetEncoderComplexityRange (OH_AVCapability * capabi
```
OH_AVErrCode OH_AVCapability_GetEncoderQualityRange (OH_AVCapability *
capability, OH_AVRange * qualityRange
)
OH_AVErrCode OH_AVCapability_GetEncoderQualityRange (OH_AVCapability *
capability, OH_AVRange *qualityRange
)
```
**描述:**
...
...
@@ -406,7 +406,7 @@ OH_AVErrCode OH_AVCapability_GetEncoderQualityRange (OH_AVCapability * capabilit
```
int32_t OH_AVCapability_GetMaxSupportedInstances (OH_AVCapability *
capability)
int32_t OH_AVCapability_GetMaxSupportedInstances (OH_AVCapability *capability)
```
**描述:**
...
...
@@ -434,7 +434,7 @@ int32_t OH_AVCapability_GetMaxSupportedInstances (OH_AVCapability * capability)
```
const char* OH_AVCapability_GetName (OH_AVCapability *
capability)
const char* OH_AVCapability_GetName (OH_AVCapability *capability)
```
**描述:**
...
...
@@ -462,7 +462,7 @@ const char* OH_AVCapability_GetName (OH_AVCapability * capability)
```
OH_AVErrCode OH_AVCapability_GetSupportedLevelsForProfile (OH_AVCapability *
capability, int32_t profile, const int32_t ** levels, uint32_t * levelNum
)
OH_AVErrCode OH_AVCapability_GetSupportedLevelsForProfile (OH_AVCapability *
capability, int32_t profile, const int32_t **levels, uint32_t *levelNum
)
```
**描述:**
...
...
@@ -493,7 +493,7 @@ OH_AVErrCode OH_AVCapability_GetSupportedLevelsForProfile (OH_AVCapability * cap
```
OH_AVErrCode OH_AVCapability_GetSupportedProfiles (OH_AVCapability *
capability, const int32_t ** profiles, uint32_t * profileNum
)
OH_AVErrCode OH_AVCapability_GetSupportedProfiles (OH_AVCapability *
capability, const int32_t **profiles, uint32_t *profileNum
)
```
**描述:**
...
...
@@ -523,7 +523,7 @@ OH_AVErrCode OH_AVCapability_GetSupportedProfiles (OH_AVCapability * capability,
```
OH_AVErrCode OH_AVCapability_GetVideoFrameRateRange (OH_AVCapability *
capability, OH_AVRange * frameRateRange
)
OH_AVErrCode OH_AVCapability_GetVideoFrameRateRange (OH_AVCapability *
capability, OH_AVRange *frameRateRange
)
```
**描述:**
...
...
@@ -552,7 +552,7 @@ OH_AVErrCode OH_AVCapability_GetVideoFrameRateRange (OH_AVCapability * capabilit
```
OH_AVErrCode OH_AVCapability_GetVideoFrameRateRangeForSize (OH_AVCapability *
capability, int32_t width, int32_t height, OH_AVRange * frameRateRange
)
OH_AVErrCode OH_AVCapability_GetVideoFrameRateRangeForSize (OH_AVCapability *
capability, int32_t width, int32_t height, OH_AVRange *frameRateRange
)
```
**描述:**
...
...
@@ -583,7 +583,7 @@ OH_AVErrCode OH_AVCapability_GetVideoFrameRateRangeForSize (OH_AVCapability * ca
```
OH_AVErrCode OH_AVCapability_GetVideoHeightAlignment (OH_AVCapability *
capability, int32_t * heightAlignment
)
OH_AVErrCode OH_AVCapability_GetVideoHeightAlignment (OH_AVCapability *
capability, int32_t *heightAlignment
)
```
**描述:**
...
...
@@ -612,7 +612,7 @@ OH_AVErrCode OH_AVCapability_GetVideoHeightAlignment (OH_AVCapability * capabili
```
OH_AVErrCode OH_AVCapability_GetVideoHeightRange (OH_AVCapability *
capability, OH_AVRange * heightRange
)
OH_AVErrCode OH_AVCapability_GetVideoHeightRange (OH_AVCapability *
capability, OH_AVRange *heightRange
)
```
**描述:**
...
...
@@ -641,7 +641,7 @@ OH_AVErrCode OH_AVCapability_GetVideoHeightRange (OH_AVCapability * capability,
```
OH_AVErrCode OH_AVCapability_GetVideoHeightRangeForWidth (OH_AVCapability *
capability, int32_t width, OH_AVRange * heightRange
)
OH_AVErrCode OH_AVCapability_GetVideoHeightRangeForWidth (OH_AVCapability *
capability, int32_t width, OH_AVRange *heightRange
)
```
**描述:**
...
...
@@ -671,7 +671,7 @@ OH_AVErrCode OH_AVCapability_GetVideoHeightRangeForWidth (OH_AVCapability * capa
```
OH_AVErrCode OH_AVCapability_GetVideoSupportedPixelFormats (OH_AVCapability *
capability, const int32_t ** pixelFormats, uint32_t * pixelFormatNum
)
OH_AVErrCode OH_AVCapability_GetVideoSupportedPixelFormats (OH_AVCapability *
capability, const int32_t **pixelFormats, uint32_t *pixelFormatNum
)
```
**描述:**
...
...
@@ -701,7 +701,7 @@ OH_AVErrCode OH_AVCapability_GetVideoSupportedPixelFormats (OH_AVCapability * ca
```
OH_AVErrCode OH_AVCapability_GetVideoWidthAlignment (OH_AVCapability *
capability, int32_t * widthAlignment
)
OH_AVErrCode OH_AVCapability_GetVideoWidthAlignment (OH_AVCapability *
capability, int32_t *widthAlignment
)
```
**描述:**
...
...
@@ -730,7 +730,7 @@ OH_AVErrCode OH_AVCapability_GetVideoWidthAlignment (OH_AVCapability * capabilit
```
OH_AVErrCode OH_AVCapability_GetVideoWidthRange (OH_AVCapability *
capability, OH_AVRange * widthRange
)
OH_AVErrCode OH_AVCapability_GetVideoWidthRange (OH_AVCapability *
capability, OH_AVRange *widthRange
)
```
**描述:**
...
...
@@ -759,7 +759,7 @@ OH_AVErrCode OH_AVCapability_GetVideoWidthRange (OH_AVCapability * capability, O
```
OH_AVErrCode OH_AVCapability_GetVideoWidthRangeForHeight (OH_AVCapability *
capability, int32_t height, OH_AVRange * widthRange
)
OH_AVErrCode OH_AVCapability_GetVideoWidthRangeForHeight (OH_AVCapability *
capability, int32_t height, OH_AVRange *widthRange
)
```
**描述:**
...
...
@@ -789,7 +789,7 @@ OH_AVErrCode OH_AVCapability_GetVideoWidthRangeForHeight (OH_AVCapability * capa
```
bool OH_AVCapability_IsEncoderBitrateModeSupported (OH_AVCapability *
capability, OH_BitrateMode bitrateMode
)
bool OH_AVCapability_IsEncoderBitrateModeSupported (OH_AVCapability *
capability, OH_BitrateMode bitrateMode
)
```
**描述:**
...
...
@@ -818,7 +818,7 @@ bool OH_AVCapability_IsEncoderBitrateModeSupported (OH_AVCapability * capability
```
bool OH_AVCapability_IsHardware (OH_AVCapability *
capability)
bool OH_AVCapability_IsHardware (OH_AVCapability *capability)
```
**描述:**
...
...
@@ -846,7 +846,7 @@ bool OH_AVCapability_IsHardware (OH_AVCapability * capability)
```
bool OH_AVCapability_IsVideoSizeSupported (OH_AVCapability *
capability, int32_t width, int32_t height
)
bool OH_AVCapability_IsVideoSizeSupported (OH_AVCapability *
capability, int32_t width, int32_t height
)
```
**描述:**
...
...
@@ -876,7 +876,7 @@ bool OH_AVCapability_IsVideoSizeSupported (OH_AVCapability * capability, int32_t
```
OH_AVCapability* OH_AVCodec_GetCapability (const char *
mime, bool isEncoder
)
OH_AVCapability* OH_AVCodec_GetCapability (const char *
mime, bool isEncoder
)
```
**描述:**
...
...
@@ -905,7 +905,7 @@ OH_AVCapability* OH_AVCodec_GetCapability (const char * mime, bool isEncoder )
```
OH_AVCapability* OH_AVCodec_GetCapabilityByCategory (const char *
mime, bool isEncoder, OH_AVCodecCategory category
)
OH_AVCapability* OH_AVCodec_GetCapabilityByCategory (const char *
mime, bool isEncoder, OH_AVCodecCategory category
)
```
**描述:**
...
...
zh-cn/application-dev/reference/native-apis/_a_v_demuxer.md
浏览文件 @
937acbad
...
...
@@ -41,7 +41,7 @@ AVDemuxer模块提供用于音视频解封装功能的函数。
```
OH_AVDemuxer* OH_AVDemuxer_CreateWithSource (OH_AVSource *
source)
OH_AVDemuxer* OH_AVDemuxer_CreateWithSource (OH_AVSource *source)
```
**描述:**
...
...
@@ -69,7 +69,7 @@ OH_AVDemuxer* OH_AVDemuxer_CreateWithSource (OH_AVSource * source)
```
OH_AVErrCode OH_AVDemuxer_Destroy (OH_AVDemuxer *
demuxer)
OH_AVErrCode OH_AVDemuxer_Destroy (OH_AVDemuxer *demuxer)
```
**描述:**
...
...
@@ -99,7 +99,7 @@ OH_AVErrCode OH_AVDemuxer_Destroy (OH_AVDemuxer * demuxer)
```
OH_AVErrCode OH_AVDemuxer_ReadSample (OH_AVDemuxer *
demuxer, uint32_t trackIndex, OH_AVMemory * sample, OH_AVCodecBufferAttr * info
)
OH_AVErrCode OH_AVDemuxer_ReadSample (OH_AVDemuxer *
demuxer, uint32_t trackIndex, OH_AVMemory *sample, OH_AVCodecBufferAttr *info
)
```
**描述:**
...
...
@@ -132,7 +132,7 @@ OH_AVErrCode OH_AVDemuxer_ReadSample (OH_AVDemuxer * demuxer, uint32_t trackInde
```
OH_AVErrCode OH_AVDemuxer_SeekToTime (OH_AVDemuxer *
demuxer, int64_t millisecond, OH_AVSeekMode mode
)
OH_AVErrCode OH_AVDemuxer_SeekToTime (OH_AVDemuxer *
demuxer, int64_t millisecond, OH_AVSeekMode mode
)
```
**描述:**
...
...
@@ -162,7 +162,7 @@ OH_AVErrCode OH_AVDemuxer_SeekToTime (OH_AVDemuxer * demuxer, int64_t millisecon
```
OH_AVErrCode OH_AVDemuxer_SelectTrackByID (OH_AVDemuxer *
demuxer, uint32_t trackIndex
)
OH_AVErrCode OH_AVDemuxer_SelectTrackByID (OH_AVDemuxer *
demuxer, uint32_t trackIndex
)
```
**描述:**
...
...
@@ -195,7 +195,7 @@ OH_AVErrCode OH_AVDemuxer_SelectTrackByID (OH_AVDemuxer * demuxer, uint32_t trac
```
OH_AVErrCode OH_AVDemuxer_UnselectTrackByID (OH_AVDemuxer *
demuxer, uint32_t trackIndex
)
OH_AVErrCode OH_AVDemuxer_UnselectTrackByID (OH_AVDemuxer *
demuxer, uint32_t trackIndex
)
```
**描述:**
...
...
zh-cn/application-dev/reference/native-apis/_a_v_muxer.md
浏览文件 @
937acbad
...
...
@@ -42,7 +42,7 @@ AVMuxer模块提供用于音视频封装功能的函数。
```
OH_AVErrCode OH_AVMuxer_AddTrack (OH_AVMuxer *
muxer, int32_t * trackIndex, OH_AVFormat * trackFormat
)
OH_AVErrCode OH_AVMuxer_AddTrack (OH_AVMuxer *
muxer, int32_t *trackIndex, OH_AVFormat *trackFormat
)
```
**描述:**
...
...
@@ -74,7 +74,7 @@ OH_AVErrCode OH_AVMuxer_AddTrack (OH_AVMuxer * muxer, int32_t * trackIndex, OH_A
```
OH_AVMuxer* OH_AVMuxer_Create (int32_t fd, OH_AVOutputFormat format
)
OH_AVMuxer* OH_AVMuxer_Create (int32_t fd, OH_AVOutputFormat format)
```
**描述:**
...
...
@@ -103,7 +103,7 @@ OH_AVMuxer* OH_AVMuxer_Create (int32_t fd, OH_AVOutputFormat format )
```
OH_AVErrCode OH_AVMuxer_Destroy (OH_AVMuxer *
muxer)
OH_AVErrCode OH_AVMuxer_Destroy (OH_AVMuxer *muxer)
```
**描述:**
...
...
@@ -131,7 +131,7 @@ OH_AVErrCode OH_AVMuxer_Destroy (OH_AVMuxer * muxer)
```
OH_AVErrCode OH_AVMuxer_SetRotation (OH_AVMuxer *
muxer, int32_t rotation
)
OH_AVErrCode OH_AVMuxer_SetRotation (OH_AVMuxer *
muxer, int32_t rotation
)
```
**描述:**
...
...
@@ -162,7 +162,7 @@ OH_AVErrCode OH_AVMuxer_SetRotation (OH_AVMuxer * muxer, int32_t rotation )
```
OH_AVErrCode OH_AVMuxer_Start (OH_AVMuxer *
muxer)
OH_AVErrCode OH_AVMuxer_Start (OH_AVMuxer *muxer)
```
**描述:**
...
...
@@ -192,7 +192,7 @@ OH_AVErrCode OH_AVMuxer_Start (OH_AVMuxer * muxer)
```
OH_AVErrCode OH_AVMuxer_Stop (OH_AVMuxer *
muxer)
OH_AVErrCode OH_AVMuxer_Stop (OH_AVMuxer *muxer)
```
**描述:**
...
...
@@ -222,7 +222,7 @@ OH_AVErrCode OH_AVMuxer_Stop (OH_AVMuxer * muxer)
```
OH_AVErrCode OH_AVMuxer_WriteSample (OH_AVMuxer *
muxer, uint32_t trackIndex, OH_AVMemory * sample, OH_AVCodecBufferAttr info
)
OH_AVErrCode OH_AVMuxer_WriteSample (OH_AVMuxer *
muxer, uint32_t trackIndex, OH_AVMemory *sample, OH_AVCodecBufferAttr info
)
```
**描述:**
...
...
zh-cn/application-dev/reference/native-apis/_a_v_source.md
浏览文件 @
937acbad
...
...
@@ -40,7 +40,7 @@ AVSource模块提供用于构造音视频资源对象功能的函数。
```
OH_AVSource* OH_AVSource_CreateWithFD (int32_t fd, int64_t offset, int64_t size
)
OH_AVSource* OH_AVSource_CreateWithFD (int32_t fd, int64_t offset, int64_t size)
```
**描述:**
...
...
@@ -74,7 +74,7 @@ OH_AVSource* OH_AVSource_CreateWithFD (int32_t fd, int64_t offset, int64_t size
```
OH_AVSource* OH_AVSource_CreateWithURI (char *
uri)
OH_AVSource* OH_AVSource_CreateWithURI (char *uri)
```
**描述:**
...
...
@@ -102,7 +102,7 @@ OH_AVSource* OH_AVSource_CreateWithURI (char * uri)
```
OH_AVErrCode OH_AVSource_Destroy (OH_AVSource *
source)
OH_AVErrCode OH_AVSource_Destroy (OH_AVSource *source)
```
**描述:**
...
...
@@ -134,7 +134,7 @@ OH_AVErrCode OH_AVSource_Destroy (OH_AVSource * source)
```
OH_AVFormat* OH_AVSource_GetSourceFormat (OH_AVSource *
source)
OH_AVFormat* OH_AVSource_GetSourceFormat (OH_AVSource *source)
```
**描述:**
...
...
@@ -162,7 +162,7 @@ OH_AVFormat* OH_AVSource_GetSourceFormat (OH_AVSource * source)
```
OH_AVFormat* OH_AVSource_GetTrackFormat (OH_AVSource *
source, uint32_t trackIndex
)
OH_AVFormat* OH_AVSource_GetTrackFormat (OH_AVSource *
source, uint32_t trackIndex
)
```
**描述:**
...
...
zh-cn/application-dev/reference/native-apis/_codec_base.md
浏览文件 @
937acbad
...
...
@@ -57,17 +57,17 @@ CodecBase模块提供运行音视频编解码通用的结构体、字符常量
| 名称 | 描述 |
| -------- | -------- |
|
[
OH_AVCodecBufferFlags
](
#oh_avcodecbufferflags
)
{
<br/>
**AVCODEC_BUFFER_FLAGS_NONE**
= 0,
**AVCODEC_BUFFER_FLAGS_EOS**
= 1
<<
0,
**AVCODEC_BUFFER_FLAGS_SYNC_FRAME**
= 1
<<
1,
**AVCODEC_BUFFER_FLAGS_INCOMPLETE_FRAME**
= 1
<<
2,
<br/>
**AVCODEC_BUFFER_FLAGS_CODEC_DATA**
= 1
<<
3
<br/>
} | 枚举OH_AVCodec缓冲区标记的类别。 |
|
[
OH_AVOutputFormat
](
#oh_avoutputformat
)
{
**AV_OUTPUT_FORMAT_DEFAULT**
= 0,
**AV_OUTPUT_FORMAT_MPEG_4**
= 2,
**AV_OUTPUT_FORMAT_M4A**
= 6
} | 枚举封装器的输出文件格式。 |
|
[
OH_MediaType
](
#oh_mediatype
)
{
**MEDIA_TYPE_AUD**
= 0,
**MEDIA_TYPE_VID**
= 1
} | 媒体类型。 |
|
[
OH_AVCProfile
](
#oh_avcprofile
)
{
**AVC_PROFILE_BASELINE**
= 0,
**AVC_PROFILE_HIGH**
= 4,
**AVC_PROFILE_MAIN**
= 8
} | AVC Profile枚举。 |
|
[
OH_HEVCProfile
](
#oh_hevcprofile
)
{
<br/>
**HEVC_PROFILE_MAIN**
= 0,
**HEVC_PROFILE_MAIN_10**
= 1,
**HEVC_PROFILE_MAIN_STILL**
= 2,
**HEVC_PROFILE_MAIN_10_HDR10**
= 3,
<br/>
**HEVC_PROFILE_MAIN_10_HDR10_PLUS**
= 4
<br/>
} | HEVC Profile枚举。 |
|
[
OH_AACProfile
](
#oh_aacprofile
)
{
**AAC_PROFILE_LC**
= 0
} | AAC Profile枚举。 |
|
[
OH_AVSeekMode
](
#oh_avseekmode
)
{
**SEEK_MODE_NEXT_SYNC**
= 0,
**SEEK_MODE_PREVIOUS_SYNC**
,
**SEEK_MODE_CLOSEST_SYNC**
} | 跳转模式。 |
|
[
OH_ColorPrimary
](
#oh_colorprimary
)
{
<br/>
**COLOR_PRIMARY_BT709**
= 1,
**COLOR_PRIMARY_UNSPECIFIED**
= 2,
**COLOR_PRIMARY_BT470_M**
= 4,
**COLOR_PRIMARY_BT601_625**
= 5,
<br/>
**COLOR_PRIMARY_BT601_525**
= 6,
**COLOR_PRIMARY_SMPTE_ST240**
= 7,
**COLOR_PRIMARY_GENERIC_FILM**
= 8,
**COLOR_PRIMARY_BT2020**
= 9,
<br/>
**COLOR_PRIMARY_SMPTE_ST428**
= 10,
**COLOR_PRIMARY_P3DCI**
= 11,
**COLOR_PRIMARY_P3D65**
= 12
<br/>
} | 原色。 |
|
[
OH_TransferCharacteristic
](
#oh_transfercharacteristic
)
{
<br/>
**TRANSFER_CHARACTERISTIC_BT709**
= 1,
**TRANSFER_CHARACTERISTIC_UNSPECIFIED**
= 2,
**TRANSFER_CHARACTERISTIC_GAMMA_2_2**
= 4,
**TRANSFER_CHARACTERISTIC_GAMMA_2_8**
= 5,
<br/>
**TRANSFER_CHARACTERISTIC_BT601**
= 6,
**TRANSFER_CHARACTERISTIC_SMPTE_ST240**
= 7,
**TRANSFER_CHARACTERISTIC_LINEAR**
= 8,
**TRANSFER_CHARACTERISTIC_LOG**
= 9,
<br/>
**TRANSFER_CHARACTERISTIC_LOG_SQRT**
= 10,
**TRANSFER_CHARACTERISTIC_IEC_61966_2_4**
= 11,
**TRANSFER_CHARACTERISTIC_BT1361**
= 12,
**TRANSFER_CHARACTERISTIC_IEC_61966_2_1**
= 13,
<br/>
**TRANSFER_CHARACTERISTIC_BT2020_10BIT**
= 14,
**TRANSFER_CHARACTERISTIC_BT2020_12BIT**
= 15,
**TRANSFER_CHARACTERISTIC_PQ**
= 16,
**TRANSFER_CHARACTERISTIC_SMPTE_ST428**
= 17,
<br/>
**TRANSFER_CHARACTERISTIC_HLG**
= 18
<br/>
} | 转移特性。 |
|
[
OH_MatrixCoefficient
](
#oh_matrixcoefficient
)
{
<br/>
**MATRIX_COEFFICIENT_IDENTITY**
= 0,
**MATRIX_COEFFICIENT_BT709**
= 1,
**MATRIX_COEFFICIENT_UNSPECIFIED**
= 2,
**MATRIX_COEFFICIENT_FCC**
= 4,
<br/>
**MATRIX_COEFFICIENT_BT601_625**
= 5,
**MATRIX_COEFFICIENT_BT601_525**
= 6,
**MATRIX_COEFFICIENT_SMPTE_ST240**
= 7,
**MATRIX_COEFFICIENT_YCGCO**
= 8,
<br/>
**MATRIX_COEFFICIENT_BT2020_NCL**
= 9,
**MATRIX_COEFFICIENT_BT2020_CL**
= 10,
**MATRIX_COEFFICIENT_SMPTE_ST2085**
= 11,
**MATRIX_COEFFICIENT_CHROMATICITY_NCL**
= 12,
<br/>
**MATRIX_COEFFICIENT_CHROMATICITY_CL**
= 13,
**MATRIX_COEFFICIENT_ICTCP**
= 14
<br/>
} | 矩阵系数。 |
|
[
OH_BitsPerSample
](
#oh_bitspersample
)
{
<br/>
**SAMPLE_U8**
= 0,
**SAMPLE_S16LE**
= 1,
**SAMPLE_S24LE**
= 2,
**SAMPLE_S32LE**
= 3,
<br/>
**SAMPLE_F32LE**
= 4,
**SAMPLE_U8P**
= 5,
**SAMPLE_S16P**
= 6,
**SAMPLE_S24P**
= 7,
<br/>
**SAMPLE_S32P**
= 8,
**SAMPLE_F32P**
= 9,
**INVALID_WIDTH**
= -1
<br/>
} | 枚举每个编码样本的音频位数。 |
|
[
OH_AVCodecBufferFlags
](
#oh_avcodecbufferflags
)
{
<br/>
**AVCODEC_BUFFER_FLAGS_NONE**
= 0,
<br/>
**AVCODEC_BUFFER_FLAGS_EOS**
= 1
<<
0,
<br/>
**AVCODEC_BUFFER_FLAGS_SYNC_FRAME**
= 1
<<
1,
<br/>
**AVCODEC_BUFFER_FLAGS_INCOMPLETE_FRAME**
= 1
<<
2,
<br/>
**AVCODEC_BUFFER_FLAGS_CODEC_DATA**
= 1
<<
3
<br/>
} | 枚举OH_AVCodec缓冲区标记的类别。 |
|
[
OH_AVOutputFormat
](
#oh_avoutputformat
)
{
<br/>
**AV_OUTPUT_FORMAT_DEFAULT**
= 0,
<br/>
**AV_OUTPUT_FORMAT_MPEG_4**
= 2,
<br/>
**AV_OUTPUT_FORMAT_M4A**
= 6
<br/>
} | 枚举封装器的输出文件格式。 |
|
[
OH_MediaType
](
#oh_mediatype
)
{
<br/>
**MEDIA_TYPE_AUD**
= 0,
<br/>
**MEDIA_TYPE_VID**
= 1
<br/>
} | 媒体类型。 |
|
[
OH_AVCProfile
](
#oh_avcprofile
)
{
<br/>
**AVC_PROFILE_BASELINE**
= 0,
<br/>
**AVC_PROFILE_HIGH**
= 4,
<br/>
**AVC_PROFILE_MAIN**
= 8
<br/>
} | AVC Profile枚举。 |
|
[
OH_HEVCProfile
](
#oh_hevcprofile
)
{
<br/>
**HEVC_PROFILE_MAIN**
= 0,
<br/>
**HEVC_PROFILE_MAIN_10**
= 1,
<br/>
**HEVC_PROFILE_MAIN_STILL**
= 2,
<br/>
**HEVC_PROFILE_MAIN_10_HDR10**
= 3,
<br/>
**HEVC_PROFILE_MAIN_10_HDR10_PLUS**
= 4
<br/>
} | HEVC Profile枚举。 |
|
[
OH_AACProfile
](
#oh_aacprofile
)
{
<br/>
**AAC_PROFILE_LC**
= 0
<br/>
} | AAC Profile枚举。 |
|
[
OH_AVSeekMode
](
#oh_avseekmode
)
{
<br/>
**SEEK_MODE_NEXT_SYNC**
= 0,
<br/>
**SEEK_MODE_PREVIOUS_SYNC**,
<br/>
**SEEK_MODE_CLOSEST_SYNC**
<br/>
} | 跳转模式。 |
|
[
OH_ColorPrimary
](
#oh_colorprimary
)
{
<br/>
**COLOR_PRIMARY_BT709**
= 1,
<br/>
**COLOR_PRIMARY_UNSPECIFIED**
= 2,
<br/>
**COLOR_PRIMARY_BT470_M**
= 4,
<br/>
**COLOR_PRIMARY_BT601_625**
= 5,
<br/>
**COLOR_PRIMARY_BT601_525**
= 6,
<br/>
**COLOR_PRIMARY_SMPTE_ST240**
= 7,
<br/>
**COLOR_PRIMARY_GENERIC_FILM**
= 8,
<br/>
**COLOR_PRIMARY_BT2020**
= 9,
<br/>
**COLOR_PRIMARY_SMPTE_ST428**
= 10,
<br/>
**COLOR_PRIMARY_P3DCI**
= 11,
<br/>
**COLOR_PRIMARY_P3D65**
= 12
<br/>
} | 原色。 |
|
[
OH_TransferCharacteristic
](
#oh_transfercharacteristic
)
{
<br/>
**TRANSFER_CHARACTERISTIC_BT709**
= 1,
<br/>
**TRANSFER_CHARACTERISTIC_UNSPECIFIED**
= 2,
<br/>
**TRANSFER_CHARACTERISTIC_GAMMA_2_2**
= 4,
<br/>
**TRANSFER_CHARACTERISTIC_GAMMA_2_8**
= 5,
<br/>
**TRANSFER_CHARACTERISTIC_BT601**
= 6,
<br/>
**TRANSFER_CHARACTERISTIC_SMPTE_ST240**
= 7,
<br/>
**TRANSFER_CHARACTERISTIC_LINEAR**
= 8,
<br/>
**TRANSFER_CHARACTERISTIC_LOG**
= 9,
<br/>
**TRANSFER_CHARACTERISTIC_LOG_SQRT**
= 10,
<br/>
**TRANSFER_CHARACTERISTIC_IEC_61966_2_4**
= 11,
<br/>
**TRANSFER_CHARACTERISTIC_BT1361**
= 12,
<br/>
**TRANSFER_CHARACTERISTIC_IEC_61966_2_1**
= 13,
<br/>
**TRANSFER_CHARACTERISTIC_BT2020_10BIT**
= 14,
<br/>
**TRANSFER_CHARACTERISTIC_BT2020_12BIT**
= 15,
<br/>
**TRANSFER_CHARACTERISTIC_PQ**
= 16,
<br/>
**TRANSFER_CHARACTERISTIC_SMPTE_ST428**
= 17,
<br/>
**TRANSFER_CHARACTERISTIC_HLG**
= 18
<br/>
} | 转移特性。 |
|
[
OH_MatrixCoefficient
](
#oh_matrixcoefficient
)
{
<br/>
**MATRIX_COEFFICIENT_IDENTITY**
= 0,
<br/>
**MATRIX_COEFFICIENT_BT709**
= 1,
<br/>
**MATRIX_COEFFICIENT_UNSPECIFIED**
= 2,
<br/>
**MATRIX_COEFFICIENT_FCC**
= 4,
<br/>
**MATRIX_COEFFICIENT_BT601_625**
= 5,
<br/>
**MATRIX_COEFFICIENT_BT601_525**
= 6,
<br/>
**MATRIX_COEFFICIENT_SMPTE_ST240**
= 7,
<br/>
**MATRIX_COEFFICIENT_YCGCO**
= 8,
<br/>
**MATRIX_COEFFICIENT_BT2020_NCL**
= 9,
<br/>
**MATRIX_COEFFICIENT_BT2020_CL**
= 10,
<br/>
**MATRIX_COEFFICIENT_SMPTE_ST2085**
= 11,
<br/>
**MATRIX_COEFFICIENT_CHROMATICITY_NCL**
= 12,
<br/>
**MATRIX_COEFFICIENT_CHROMATICITY_CL**
= 13,
<br/>
**MATRIX_COEFFICIENT_ICTCP**
= 14
<br/>
} | 矩阵系数。 |
|
[
OH_BitsPerSample
](
#oh_bitspersample
)
{
<br/>
**SAMPLE_U8**
= 0,
<br/>
**SAMPLE_S16LE**
= 1,
<br/>
**SAMPLE_S24LE**
= 2,
<br/>
**SAMPLE_S32LE**
= 3,
<br/>
**SAMPLE_F32LE**
= 4,
<br/>
**SAMPLE_U8P**
= 5,
<br/>
**SAMPLE_S16P**
= 6,
<br/>
**SAMPLE_S24P**
= 7,
<br/>
**SAMPLE_S32P**
= 8,
<br/>
**SAMPLE_F32P**
= 9,
<br/>
**INVALID_WIDTH**
= -1
<br/>
} | 枚举每个编码样本的音频位数。 |
### 变量
...
...
@@ -145,7 +145,7 @@ CodecBase模块提供运行音视频编解码通用的结构体、字符常量
```
typedef enum OH_AACProfileOH_AACProfile
typedef enum OH_AACProfile
OH_AACProfile
```
**描述:**
...
...
@@ -159,7 +159,7 @@ AAC Profile枚举。
```
typedef struct OH_AVCodecAsyncCallbackOH_AVCodecAsyncCallback
typedef struct OH_AVCodecAsyncCallback
OH_AVCodecAsyncCallback
```
**描述:**
...
...
@@ -182,7 +182,7 @@ OH_AVCodec中所有异步回调函数指针的集合。将该结构体的实例
```
typedef struct OH_AVCodecBufferAttrOH_AVCodecBufferAttr
typedef struct OH_AVCodecBufferAttr
OH_AVCodecBufferAttr
```
**描述:**
...
...
@@ -196,7 +196,7 @@ typedef struct OH_AVCodecBufferAttrOH_AVCodecBufferAttr
```
typedef enum OH_AVCodecBufferFlagsOH_AVCodecBufferFlags
typedef enum OH_AVCodecBufferFlags
OH_AVCodecBufferFlags
```
**描述:**
...
...
@@ -210,7 +210,7 @@ typedef enum OH_AVCodecBufferFlagsOH_AVCodecBufferFlags
```
typedef void
(*
OH_AVCodecOnError) (OH_AVCodec *codec, int32_t errorCode, void *userData)
typedef void
(*
OH_AVCodecOnError) (OH_AVCodec *codec, int32_t errorCode, void *userData)
```
**描述:**
...
...
@@ -232,7 +232,7 @@ typedef void(* OH_AVCodecOnError) (OH_AVCodec *codec, int32_t errorCode, void *u
```
typedef void
(*
OH_AVCodecOnNeedInputData) (OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData)
typedef void
(*
OH_AVCodecOnNeedInputData) (OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData)
```
**描述:**
...
...
@@ -255,7 +255,7 @@ typedef void(* OH_AVCodecOnNeedInputData) (OH_AVCodec *codec, uint32_t index, OH
```
typedef void
(*
OH_AVCodecOnNewOutputData) (OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, void *userData)
typedef void
(*
OH_AVCodecOnNewOutputData) (OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, void *userData)
```
**描述:**
...
...
@@ -279,7 +279,7 @@ typedef void(* OH_AVCodecOnNewOutputData) (OH_AVCodec *codec, uint32_t index, OH
```
typedef void
(*
OH_AVCodecOnStreamChanged) (OH_AVCodec *codec, OH_AVFormat *format, void *userData)
typedef void
(*
OH_AVCodecOnStreamChanged) (OH_AVCodec *codec, OH_AVFormat *format, void *userData)
```
**描述:**
...
...
@@ -301,7 +301,7 @@ typedef void(* OH_AVCodecOnStreamChanged) (OH_AVCodec *codec, OH_AVFormat *forma
```
typedef enum OH_AVCProfileOH_AVCProfile
typedef enum OH_AVCProfile
OH_AVCProfile
```
**描述:**
...
...
@@ -315,7 +315,7 @@ AVC Profile枚举。
```
typedef enum OH_AVOutputFormatOH_AVOutputFormat
typedef enum OH_AVOutputFormat
OH_AVOutputFormat
```
**描述:**
...
...
@@ -327,7 +327,7 @@ typedef enum OH_AVOutputFormatOH_AVOutputFormat
```
typedef enum OH_AVSeekModeOH_AVSeekMode
typedef enum OH_AVSeekMode
OH_AVSeekMode
```
**描述:**
...
...
@@ -341,7 +341,7 @@ typedef enum OH_AVSeekModeOH_AVSeekMode
```
typedef enum OH_BitsPerSampleOH_BitsPerSample
typedef enum OH_BitsPerSample
OH_BitsPerSample
```
**描述:**
...
...
@@ -355,7 +355,7 @@ typedef enum OH_BitsPerSampleOH_BitsPerSample
```
typedef enum OH_ColorPrimaryOH_ColorPrimary
typedef enum OH_ColorPrimary
OH_ColorPrimary
```
**描述:**
...
...
@@ -369,7 +369,7 @@ typedef enum OH_ColorPrimaryOH_ColorPrimary
```
typedef enum OH_HEVCProfileOH_HEVCProfile
typedef enum OH_HEVCProfile
OH_HEVCProfile
```
**描述:**
...
...
@@ -383,7 +383,7 @@ HEVC Profile枚举。
```
typedef enum OH_MatrixCoefficientOH_MatrixCoefficient
typedef enum OH_MatrixCoefficient
OH_MatrixCoefficient
```
**描述:**
...
...
@@ -397,7 +397,7 @@ typedef enum OH_MatrixCoefficientOH_MatrixCoefficient
```
typedef enum OH_MediaTypeOH_MediaType
typedef enum OH_MediaType
OH_MediaType
```
**描述:**
...
...
@@ -411,7 +411,7 @@ typedef enum OH_MediaTypeOH_MediaType
```
typedef enum OH_TransferCharacteristicOH_TransferCharacteristic
typedef enum OH_TransferCharacteristic
OH_TransferCharacteristic
```
**描述:**
...
...
zh-cn/application-dev/reference/native-apis/_core.md
浏览文件 @
937acbad
...
...
@@ -36,8 +36,8 @@ Core模块提供用于播放框架的基础骨干能力,包含内存、错误
| 名称 | 描述 |
| -------- | -------- |
|
[
OH_AVErrCode
](
#oh_averrcode
)
{
<br/>
AV_ERR_OK = 0, AV_ERR_NO_MEMORY = 1, AV_ERR_OPERATE_NOT_PERMIT = 2, AV_ERR_INVALID_VAL = 3,
<br/>
AV_ERR_IO = 4, AV_ERR_TIMEOUT = 5, AV_ERR_UNKNOWN = 6, AV_ERR_SERVICE_DIED = 7,
<br/>
AV_ERR_INVALID_STATE = 8, AV_ERR_UNSUPPORT = 9,
AV_ERR_EXTEND_START = 100
<br/>
} | 音视频错误码。 |
|
[
OH_AVPixelFormat
](
#oh_avpixelformat
)
{
<br/>
AV_PIXEL_FORMAT_YUVI420 = 1, AV_PIXEL_FORMAT_NV12 = 2, AV_PIXEL_FORMAT_NV21 = 3, AV_PIXEL_FORMAT_SURFACE_FORMAT = 4,
<br/>
AV_PIXEL_FORMAT_RGBA = 5
<br/>
} | AVPixel 格式的枚举类。 |
|
[
OH_AVErrCode
](
#oh_averrcode
)
{
<br/>
AV_ERR_OK = 0,
<br/>
AV_ERR_NO_MEMORY = 1,
<br/>
AV_ERR_OPERATE_NOT_PERMIT = 2,
<br/>
AV_ERR_INVALID_VAL = 3,
<br/>
AV_ERR_IO = 4,
<br/>
AV_ERR_TIMEOUT = 5,
<br/>
AV_ERR_UNKNOWN = 6,
<br/>
AV_ERR_SERVICE_DIED = 7,
<br/>
AV_ERR_INVALID_STATE = 8,
<br/>
AV_ERR_UNSUPPORT = 9,
<br/>
AV_ERR_EXTEND_START = 100
<br/>
} | 音视频错误码。 |
|
[
OH_AVPixelFormat
](
#oh_avpixelformat
)
{
<br/>
AV_PIXEL_FORMAT_YUVI420 = 1,
<br/>
AV_PIXEL_FORMAT_NV12 = 2,
<br/>
AV_PIXEL_FORMAT_NV21 = 3,
<br/>
AV_PIXEL_FORMAT_SURFACE_FORMAT = 4,
<br/>
AV_PIXEL_FORMAT_RGBA = 5
<br/>
} | AVPixel 格式的枚举类。 |
### 函数
...
...
@@ -75,7 +75,7 @@ Core模块提供用于播放框架的基础骨干能力,包含内存、错误
```
typedef enum OH_AVErrCodeOH_AVErrCode
typedef enum OH_AVErrCode
OH_AVErrCode
```
**描述:**
...
...
@@ -93,7 +93,7 @@ typedef enum OH_AVErrCodeOH_AVErrCode
```
typedef enum OH_AVPixelFormatOH_AVPixelFormat
typedef enum OH_AVPixelFormat
OH_AVPixelFormat
```
**描述:**
...
...
@@ -175,7 +175,7 @@ enum OH_AVPixelFormat
```
bool OH_AVFormat_Copy (struct OH_AVFormat *
to, struct OH_AVFormat * from
)
bool OH_AVFormat_Copy (struct OH_AVFormat *
to, struct OH_AVFormat *from
)
```
**描述:**
...
...
@@ -204,7 +204,7 @@ bool OH_AVFormat_Copy (struct OH_AVFormat * to, struct OH_AVFormat * from )
```
struct OH_AVFormat* OH_AVFormat_Create (void
)
struct OH_AVFormat* OH_AVFormat_Create (void)
```
**描述:**
...
...
@@ -226,7 +226,7 @@ struct OH_AVFormat* OH_AVFormat_Create (void )
```
struct OH_AVFormat* OH_AVFormat_CreateAudioFormat (const char *
mimeType, int32_t sampleRate, int32_t channelCount
)
struct OH_AVFormat* OH_AVFormat_CreateAudioFormat (const char *
mimeType, int32_t sampleRate, int32_t channelCount
)
```
**描述:**
...
...
@@ -256,7 +256,7 @@ struct OH_AVFormat* OH_AVFormat_CreateAudioFormat (const char * mimeType, int32_
```
struct OH_AVFormat* OH_AVFormat_CreateVideoFormat (const char *
mimeType, int32_t width, int32_t height
)
struct OH_AVFormat* OH_AVFormat_CreateVideoFormat (const char *
mimeType, int32_t width, int32_t height
)
```
**描述:**
...
...
@@ -286,7 +286,7 @@ struct OH_AVFormat* OH_AVFormat_CreateVideoFormat (const char * mimeType, int32_
```
void OH_AVFormat_Destroy (struct OH_AVFormat *
format)
void OH_AVFormat_Destroy (struct OH_AVFormat *format)
```
**描述:**
...
...
@@ -310,7 +310,7 @@ void OH_AVFormat_Destroy (struct OH_AVFormat * format)
```
const char* OH_AVFormat_DumpInfo (struct OH_AVFormat *
format)
const char* OH_AVFormat_DumpInfo (struct OH_AVFormat *format)
```
**描述:**
...
...
@@ -338,7 +338,7 @@ const char* OH_AVFormat_DumpInfo (struct OH_AVFormat * format)
```
bool OH_AVFormat_GetBuffer (struct OH_AVFormat *
format, const char * key, uint8_t ** addr, size_t * size
)
bool OH_AVFormat_GetBuffer (struct OH_AVFormat *
format, const char *key, uint8_t **addr, size_t *size
)
```
**描述:**
...
...
@@ -369,7 +369,7 @@ bool OH_AVFormat_GetBuffer (struct OH_AVFormat * format, const char * key, uint8
```
bool OH_AVFormat_GetDoubleValue (struct OH_AVFormat *
format, const char * key, double * out
)
bool OH_AVFormat_GetDoubleValue (struct OH_AVFormat *
format, const char *key, double *out
)
```
**描述:**
...
...
@@ -399,7 +399,7 @@ bool OH_AVFormat_GetDoubleValue (struct OH_AVFormat * format, const char * key,
```
bool OH_AVFormat_GetFloatValue (struct OH_AVFormat *
format, const char * key, float * out
)
bool OH_AVFormat_GetFloatValue (struct OH_AVFormat *
format, const char *key, float *out
)
```
**描述:**
...
...
@@ -429,7 +429,7 @@ bool OH_AVFormat_GetFloatValue (struct OH_AVFormat * format, const char * key, f
```
bool OH_AVFormat_GetIntValue (struct OH_AVFormat *
format, const char * key, int32_t * out
)
bool OH_AVFormat_GetIntValue (struct OH_AVFormat *
format, const char *key, int32_t *out
)
```
**描述:**
...
...
@@ -455,7 +455,7 @@ bool OH_AVFormat_GetIntValue (struct OH_AVFormat * format, const char * key, int
```
bool OH_AVFormat_GetLongValue (struct OH_AVFormat *
format, const char * key, int64_t * out
)
bool OH_AVFormat_GetLongValue (struct OH_AVFormat *
format, const char *key, int64_t *out
)
```
**描述:**
...
...
@@ -485,7 +485,7 @@ bool OH_AVFormat_GetLongValue (struct OH_AVFormat * format, const char * key, in
```
bool OH_AVFormat_GetStringValue (struct OH_AVFormat *
format, const char * key, const char ** out
)
bool OH_AVFormat_GetStringValue (struct OH_AVFormat *
format, const char *key, const char **out
)
```
**描述:**
...
...
@@ -515,7 +515,7 @@ bool OH_AVFormat_GetStringValue (struct OH_AVFormat * format, const char * key,
```
bool OH_AVFormat_SetBuffer (struct OH_AVFormat *
format, const char * key, const uint8_t * addr, size_t size
)
bool OH_AVFormat_SetBuffer (struct OH_AVFormat *
format, const char *key, const uint8_t *addr, size_t size
)
```
**描述:**
...
...
@@ -546,7 +546,7 @@ bool OH_AVFormat_SetBuffer (struct OH_AVFormat * format, const char * key, const
```
bool OH_AVFormat_SetDoubleValue (struct OH_AVFormat *
format, const char * key, double value
)
bool OH_AVFormat_SetDoubleValue (struct OH_AVFormat *
format, const char *key, double value
)
```
**描述:**
...
...
@@ -576,7 +576,7 @@ bool OH_AVFormat_SetDoubleValue (struct OH_AVFormat * format, const char * key,
```
bool OH_AVFormat_SetFloatValue (struct OH_AVFormat *
format, const char * key, float value
)
bool OH_AVFormat_SetFloatValue (struct OH_AVFormat *
format, const char *key, float value
)
```
**描述:**
...
...
@@ -606,7 +606,7 @@ bool OH_AVFormat_SetFloatValue (struct OH_AVFormat * format, const char * key, f
```
bool OH_AVFormat_SetIntValue (struct OH_AVFormat *
format, const char * key, int32_t value
)
bool OH_AVFormat_SetIntValue (struct OH_AVFormat *
format, const char *key, int32_t value
)
```
**描述:**
...
...
@@ -636,7 +636,7 @@ bool OH_AVFormat_SetIntValue (struct OH_AVFormat * format, const char * key, int
```
bool OH_AVFormat_SetLongValue (struct OH_AVFormat *
format, const char * key, int64_t value
)
bool OH_AVFormat_SetLongValue (struct OH_AVFormat *
format, const char *key, int64_t value
)
```
**描述:**
...
...
@@ -666,7 +666,7 @@ bool OH_AVFormat_SetLongValue (struct OH_AVFormat * format, const char * key, in
```
bool OH_AVFormat_SetStringValue (struct OH_AVFormat *
format, const char * key, const char * value
)
bool OH_AVFormat_SetStringValue (struct OH_AVFormat *
format, const char *key, const char *value
)
```
**描述:**
...
...
@@ -724,7 +724,7 @@ OH_AVMemory* OH_AVMemory_Create (int32_t size)
```
OH_AVErrCode OH_AVMemory_Destroy (struct OH_AVMemory *
mem)
OH_AVErrCode OH_AVMemory_Destroy (struct OH_AVMemory *mem)
```
**描述:**
...
...
@@ -752,7 +752,7 @@ OH_AVErrCode OH_AVMemory_Destroy (struct OH_AVMemory * mem)
```
uint8_t* OH_AVMemory_GetAddr (struct OH_AVMemory *
mem)
uint8_t* OH_AVMemory_GetAddr (struct OH_AVMemory *mem)
```
**描述:**
...
...
@@ -780,7 +780,7 @@ uint8_t* OH_AVMemory_GetAddr (struct OH_AVMemory * mem)
```
int32_t OH_AVMemory_GetSize (struct OH_AVMemory *
mem)
int32_t OH_AVMemory_GetSize (struct OH_AVMemory *mem)
```
**描述:**
...
...
zh-cn/application-dev/reference/native-apis/_video_decoder.md
浏览文件 @
937acbad
...
...
@@ -52,7 +52,7 @@ VideoDecoder模块提供用于视频解码的函数。
```
OH_AVErrCode OH_VideoDecoder_Configure (OH_AVCodec *
codec, OH_AVFormat * format
)
OH_AVErrCode OH_VideoDecoder_Configure (OH_AVCodec *
codec, OH_AVFormat *format
)
```
**描述:**
...
...
@@ -83,7 +83,7 @@ OH_AVErrCode OH_VideoDecoder_Configure (OH_AVCodec * codec, OH_AVFormat * format
```
OH_AVCodec* OH_VideoDecoder_CreateByMime (const char *
mime)
OH_AVCodec* OH_VideoDecoder_CreateByMime (const char *mime)
```
**描述:**
...
...
@@ -111,7 +111,7 @@ OH_AVCodec* OH_VideoDecoder_CreateByMime (const char * mime)
```
OH_AVCodec* OH_VideoDecoder_CreateByName (const char *
name)
OH_AVCodec* OH_VideoDecoder_CreateByName (const char *name)
```
**描述:**
...
...
@@ -139,7 +139,7 @@ OH_AVCodec* OH_VideoDecoder_CreateByName (const char * name)
```
OH_AVErrCode OH_VideoDecoder_Destroy (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoDecoder_Destroy (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -167,7 +167,7 @@ OH_AVErrCode OH_VideoDecoder_Destroy (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoDecoder_Flush (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoDecoder_Flush (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -197,7 +197,7 @@ OH_AVErrCode OH_VideoDecoder_Flush (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoDecoder_FreeOutputData (OH_AVCodec *
codec, uint32_t index
)
OH_AVErrCode OH_VideoDecoder_FreeOutputData (OH_AVCodec *
codec, uint32_t index
)
```
**描述:**
...
...
@@ -226,7 +226,7 @@ OH_AVErrCode OH_VideoDecoder_FreeOutputData (OH_AVCodec * codec, uint32_t index
```
OH_AVFormat* OH_VideoDecoder_GetOutputDescription (OH_AVCodec *
codec)
OH_AVFormat* OH_VideoDecoder_GetOutputDescription (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -256,7 +256,7 @@ OH_AVFormat* OH_VideoDecoder_GetOutputDescription (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoDecoder_IsValid (OH_AVCodec *
codec, bool * isValid
)
OH_AVErrCode OH_VideoDecoder_IsValid (OH_AVCodec *
codec, bool *isValid
)
```
**描述:**
...
...
@@ -285,7 +285,7 @@ OH_AVErrCode OH_VideoDecoder_IsValid (OH_AVCodec * codec, bool * isValid )
```
OH_AVErrCode OH_VideoDecoder_Prepare (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoDecoder_Prepare (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -313,7 +313,7 @@ OH_AVErrCode OH_VideoDecoder_Prepare (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoDecoder_PushInputData (OH_AVCodec *
codec, uint32_t index, OH_AVCodecBufferAttr attr
)
OH_AVErrCode OH_VideoDecoder_PushInputData (OH_AVCodec *
codec, uint32_t index, OH_AVCodecBufferAttr attr
)
```
**描述:**
...
...
@@ -349,7 +349,7 @@ OH_AVErrCode OH_VideoDecoder_PushInputData (OH_AVCodec * codec, uint32_t index,
```
OH_AVErrCode OH_VideoDecoder_RenderOutputData (OH_AVCodec *
codec, uint32_t index
)
OH_AVErrCode OH_VideoDecoder_RenderOutputData (OH_AVCodec *
codec, uint32_t index
)
```
**描述:**
...
...
@@ -380,7 +380,7 @@ OH_AVErrCode OH_VideoDecoder_RenderOutputData (OH_AVCodec * codec, uint32_t inde
```
OH_AVErrCode OH_VideoDecoder_Reset (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoDecoder_Reset (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -408,7 +408,7 @@ OH_AVErrCode OH_VideoDecoder_Reset (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoDecoder_SetCallback (OH_AVCodec *
codec, OH_AVCodecAsyncCallback callback, void * userData
)
OH_AVErrCode OH_VideoDecoder_SetCallback (OH_AVCodec *
codec, OH_AVCodecAsyncCallback callback, void *userData
)
```
**描述:**
...
...
@@ -440,7 +440,7 @@ OH_AVErrCode OH_VideoDecoder_SetCallback (OH_AVCodec * codec, OH_AVCodecAsyncCal
```
OH_AVErrCode OH_VideoDecoder_SetParameter (OH_AVCodec *
codec, OH_AVFormat * format
)
OH_AVErrCode OH_VideoDecoder_SetParameter (OH_AVCodec *
codec, OH_AVFormat *format
)
```
**描述:**
...
...
@@ -471,7 +471,7 @@ OH_AVErrCode OH_VideoDecoder_SetParameter (OH_AVCodec * codec, OH_AVFormat * for
```
OH_AVErrCode OH_VideoDecoder_SetSurface (OH_AVCodec *
codec, OHNativeWindow * window
)
OH_AVErrCode OH_VideoDecoder_SetSurface (OH_AVCodec *
codec, OHNativeWindow *window
)
```
**描述:**
...
...
@@ -500,7 +500,7 @@ OH_AVErrCode OH_VideoDecoder_SetSurface (OH_AVCodec * codec, OHNativeWindow * wi
```
OH_AVErrCode OH_VideoDecoder_Start (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoDecoder_Start (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -530,7 +530,7 @@ OH_AVErrCode OH_VideoDecoder_Start (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoDecoder_Stop (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoDecoder_Stop (OH_AVCodec *codec)
```
**描述:**
...
...
zh-cn/application-dev/reference/native-apis/_video_encoder.md
浏览文件 @
937acbad
...
...
@@ -67,7 +67,7 @@ VideoEncoder模块提供用于视频编码功能的函数。
```
typedef enum OH_VideoEncodeBitrateModeOH_VideoEncodeBitrateMode
typedef enum OH_VideoEncodeBitrateMode
OH_VideoEncodeBitrateMode
```
**描述:**
...
...
@@ -88,7 +88,7 @@ typedef enum OH_VideoEncodeBitrateModeOH_VideoEncodeBitrateMode
```
enum OH_VideoEncodeBitrateMode
enum OH_VideoEncode
BitrateMode
```
**描述:**
...
...
@@ -115,7 +115,7 @@ enum OH_VideoEncodeBitrateMode
```
OH_AVErrCode OH_VideoEncoder_Configure (OH_AVCodec *
codec, OH_AVFormat * format
)
OH_AVErrCode OH_VideoEncoder_Configure (OH_AVCodec *
codec, OH_AVFormat *format
)
```
**描述:**
...
...
@@ -146,7 +146,7 @@ OH_AVErrCode OH_VideoEncoder_Configure (OH_AVCodec * codec, OH_AVFormat * format
```
OH_AVCodec* OH_VideoEncoder_CreateByMime (const char *
mime)
OH_AVCodec* OH_VideoEncoder_CreateByMime (const char *mime)
```
**描述:**
...
...
@@ -174,7 +174,7 @@ OH_AVCodec* OH_VideoEncoder_CreateByMime (const char * mime)
```
OH_AVCodec* OH_VideoEncoder_CreateByName (const char *
name)
OH_AVCodec* OH_VideoEncoder_CreateByName (const char *name)
```
**描述:**
...
...
@@ -202,7 +202,7 @@ OH_AVCodec* OH_VideoEncoder_CreateByName (const char * name)
```
OH_AVErrCode OH_VideoEncoder_Destroy (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoEncoder_Destroy (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -230,7 +230,7 @@ OH_AVErrCode OH_VideoEncoder_Destroy (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoEncoder_Flush (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoEncoder_Flush (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -260,7 +260,7 @@ OH_AVErrCode OH_VideoEncoder_Flush (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoEncoder_FreeOutputData (OH_AVCodec *
codec, uint32_t index
)
OH_AVErrCode OH_VideoEncoder_FreeOutputData (OH_AVCodec *
codec, uint32_t index
)
```
**描述:**
...
...
@@ -289,7 +289,7 @@ OH_AVErrCode OH_VideoEncoder_FreeOutputData (OH_AVCodec * codec, uint32_t index
```
OH_AVFormat* OH_VideoEncoder_GetInputDescription (OH_AVCodec *
codec)
OH_AVFormat* OH_VideoEncoder_GetInputDescription (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -319,7 +319,7 @@ OH_AVFormat* OH_VideoEncoder_GetInputDescription (OH_AVCodec * codec)
```
OH_AVFormat* OH_VideoEncoder_GetOutputDescription (OH_AVCodec *
codec)
OH_AVFormat* OH_VideoEncoder_GetOutputDescription (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -349,7 +349,7 @@ OH_AVFormat* OH_VideoEncoder_GetOutputDescription (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoEncoder_GetSurface (OH_AVCodec *
codec, OHNativeWindow ** window
)
OH_AVErrCode OH_VideoEncoder_GetSurface (OH_AVCodec *
codec, OHNativeWindow **window
)
```
**描述:**
...
...
@@ -378,7 +378,7 @@ OH_AVErrCode OH_VideoEncoder_GetSurface (OH_AVCodec * codec, OHNativeWindow ** w
```
OH_AVErrCode OH_VideoEncoder_IsValid (OH_AVCodec *
codec, bool * isValid
)
OH_AVErrCode OH_VideoEncoder_IsValid (OH_AVCodec *
codec, bool *isValid
)
```
**描述:**
...
...
@@ -407,7 +407,7 @@ OH_AVErrCode OH_VideoEncoder_IsValid (OH_AVCodec * codec, bool * isValid )
```
OH_AVErrCode OH_VideoEncoder_NotifyEndOfStream (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoEncoder_NotifyEndOfStream (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -437,7 +437,7 @@ OH_AVErrCode OH_VideoEncoder_NotifyEndOfStream (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoEncoder_Prepare (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoEncoder_Prepare (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -465,7 +465,7 @@ OH_AVErrCode OH_VideoEncoder_Prepare (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoEncoder_PushInputData (OH_AVCodec *
codec, uint32_t index, OH_AVCodecBufferAttr attr
)
OH_AVErrCode OH_VideoEncoder_PushInputData (OH_AVCodec *
codec, uint32_t index, OH_AVCodecBufferAttr attr
)
```
**描述:**
...
...
@@ -495,7 +495,7 @@ OH_AVErrCode OH_VideoEncoder_PushInputData (OH_AVCodec * codec, uint32_t index,
```
OH_AVErrCode OH_VideoEncoder_Reset (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoEncoder_Reset (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -523,7 +523,7 @@ OH_AVErrCode OH_VideoEncoder_Reset (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoEncoder_SetCallback (OH_AVCodec *
codec, OH_AVCodecAsyncCallback callback, void * userData
)
OH_AVErrCode OH_VideoEncoder_SetCallback (OH_AVCodec *
codec, OH_AVCodecAsyncCallback callback, void *userData
)
```
**描述:**
...
...
@@ -555,7 +555,7 @@ OH_AVErrCode OH_VideoEncoder_SetCallback (OH_AVCodec * codec, OH_AVCodecAsyncCal
```
OH_AVErrCode OH_VideoEncoder_SetParameter (OH_AVCodec *
codec, OH_AVFormat * format
)
OH_AVErrCode OH_VideoEncoder_SetParameter (OH_AVCodec *
codec, OH_AVFormat *format
)
```
**描述:**
...
...
@@ -586,7 +586,7 @@ OH_AVErrCode OH_VideoEncoder_SetParameter (OH_AVCodec * codec, OH_AVFormat * for
```
OH_AVErrCode OH_VideoEncoder_Start (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoEncoder_Start (OH_AVCodec *codec)
```
**描述:**
...
...
@@ -616,7 +616,7 @@ OH_AVErrCode OH_VideoEncoder_Start (OH_AVCodec * codec)
```
OH_AVErrCode OH_VideoEncoder_Stop (OH_AVCodec *
codec)
OH_AVErrCode OH_VideoEncoder_Stop (OH_AVCodec *codec)
```
**描述:**
...
...
zh-cn/application-dev/reference/native-apis/native__avcapability_8h.md
浏览文件 @
937acbad
...
...
@@ -37,8 +37,8 @@
| 名称 | 描述 |
| -------- | -------- |
|
[
OH_BitrateMode
](
_a_v_capability.md#oh_bitratemode
)
{
**BITRATE_MODE_CBR**
= 0,
**BITRATE_MODE_VBR**
= 1,
**BITRATE_MODE_CQ**
= 2
} | 编码器的比特率模式。 |
|
[
OH_AVCodecCategory
](
_a_v_capability.md#oh_avcodeccategory
)
{
**HARDWARE**
= 0,
**SOFTWARE**
} | 编解码器类别。 |
|
[
OH_BitrateMode
](
_a_v_capability.md#oh_bitratemode
)
{
<br/>
**BITRATE_MODE_CBR**
= 0,
<br/>
**BITRATE_MODE_VBR**
= 1,
<br/>
**BITRATE_MODE_CQ**
= 2
<br/>
} | 编码器的比特率模式。 |
|
[
OH_AVCodecCategory
](
_a_v_capability.md#oh_avcodeccategory
)
{
<br/>
**HARDWARE**
= 0,
<br/>
**SOFTWARE**
<br/>
} | 编解码器类别。 |
### 函数
...
...
zh-cn/application-dev/reference/native-apis/native__avcodec__base_8h.md
浏览文件 @
937acbad
...
...
@@ -52,17 +52,17 @@
| 名称 | 描述 |
| -------- | -------- |
|
[
OH_AVCodecBufferFlags
](
_codec_base.md#oh_avcodecbufferflags
)
{
<br/>
**AVCODEC_BUFFER_FLAGS_NONE**
= 0,
**AVCODEC_BUFFER_FLAGS_EOS**
= 1
<<
0,
**AVCODEC_BUFFER_FLAGS_SYNC_FRAME**
= 1
<<
1,
**AVCODEC_BUFFER_FLAGS_INCOMPLETE_FRAME**
= 1
<<
2,
<br/>
**AVCODEC_BUFFER_FLAGS_CODEC_DATA**
= 1
<<
3
<br/>
} | 枚举OH_AVCodec缓冲区标记的类别。 |
|
[
OH_AVOutputFormat
](
_codec_base.md#oh_avoutputformat
)
{
**AV_OUTPUT_FORMAT_DEFAULT**
= 0,
**AV_OUTPUT_FORMAT_MPEG_4**
= 2,
**AV_OUTPUT_FORMAT_M4A**
= 6
} | 枚举封装器的输出文件格式。 |
|
[
OH_MediaType
](
_codec_base.md#oh_mediatype
)
{
**MEDIA_TYPE_AUD**
= 0,
**MEDIA_TYPE_VID**
= 1
} | 媒体类型。 |
|
[
OH_AVCProfile
](
_codec_base.md#oh_avcprofile
)
{
**AVC_PROFILE_BASELINE**
= 0,
**AVC_PROFILE_HIGH**
= 4,
**AVC_PROFILE_MAIN**
= 8
} | AVC Profile枚举。 |
|
[
OH_HEVCProfile
](
_codec_base.md#oh_hevcprofile
)
{
<br/>
**HEVC_PROFILE_MAIN**
= 0,
**HEVC_PROFILE_MAIN_10**
= 1,
**HEVC_PROFILE_MAIN_STILL**
= 2,
**HEVC_PROFILE_MAIN_10_HDR10**
= 3,
<br/>
**HEVC_PROFILE_MAIN_10_HDR10_PLUS**
= 4
<br/>
} | HEVC Profile枚举。 |
|
[
OH_AACProfile
](
_codec_base.md#oh_aacprofile
)
{
**AAC_PROFILE_LC**
= 0
} | AAC Profile枚举。 |
|
[
OH_AVSeekMode
](
_codec_base.md#oh_avseekmode
)
{
**SEEK_MODE_NEXT_SYNC**
= 0,
**SEEK_MODE_PREVIOUS_SYNC**
,
**SEEK_MODE_CLOSEST_SYNC**
} | 跳转模式。 |
|
[
OH_ColorPrimary
](
_codec_base.md#oh_colorprimary
)
{
<br/>
**COLOR_PRIMARY_BT709**
= 1,
**COLOR_PRIMARY_UNSPECIFIED**
= 2,
**COLOR_PRIMARY_BT470_M**
= 4,
**COLOR_PRIMARY_BT601_625**
= 5,
<br/>
**COLOR_PRIMARY_BT601_525**
= 6,
**COLOR_PRIMARY_SMPTE_ST240**
= 7,
**COLOR_PRIMARY_GENERIC_FILM**
= 8,
**COLOR_PRIMARY_BT2020**
= 9,
<br/>
**COLOR_PRIMARY_SMPTE_ST428**
= 10,
**COLOR_PRIMARY_P3DCI**
= 11,
**COLOR_PRIMARY_P3D65**
= 12
<br/>
} | 原色。 |
|
[
OH_TransferCharacteristic
](
_codec_base.md#oh_transfercharacteristic
)
{
<br/>
**TRANSFER_CHARACTERISTIC_BT709**
= 1,
**TRANSFER_CHARACTERISTIC_UNSPECIFIED**
= 2,
**TRANSFER_CHARACTERISTIC_GAMMA_2_2**
= 4,
**TRANSFER_CHARACTERISTIC_GAMMA_2_8**
= 5,
<br/>
**TRANSFER_CHARACTERISTIC_BT601**
= 6,
**TRANSFER_CHARACTERISTIC_SMPTE_ST240**
= 7,
**TRANSFER_CHARACTERISTIC_LINEAR**
= 8,
**TRANSFER_CHARACTERISTIC_LOG**
= 9,
<br/>
**TRANSFER_CHARACTERISTIC_LOG_SQRT**
= 10,
**TRANSFER_CHARACTERISTIC_IEC_61966_2_4**
= 11,
**TRANSFER_CHARACTERISTIC_BT1361**
= 12,
**TRANSFER_CHARACTERISTIC_IEC_61966_2_1**
= 13,
<br/>
**TRANSFER_CHARACTERISTIC_BT2020_10BIT**
= 14,
**TRANSFER_CHARACTERISTIC_BT2020_12BIT**
= 15,
**TRANSFER_CHARACTERISTIC_PQ**
= 16,
**TRANSFER_CHARACTERISTIC_SMPTE_ST428**
= 17,
<br/>
**TRANSFER_CHARACTERISTIC_HLG**
= 18
<br/>
} | 转移特性。 |
|
[
OH_MatrixCoefficient
](
_codec_base.md#oh_matrixcoefficient
)
{
<br/>
**MATRIX_COEFFICIENT_IDENTITY**
= 0,
**MATRIX_COEFFICIENT_BT709**
= 1,
**MATRIX_COEFFICIENT_UNSPECIFIED**
= 2,
**MATRIX_COEFFICIENT_FCC**
= 4,
<br/>
**MATRIX_COEFFICIENT_BT601_625**
= 5,
**MATRIX_COEFFICIENT_BT601_525**
= 6,
**MATRIX_COEFFICIENT_SMPTE_ST240**
= 7,
**MATRIX_COEFFICIENT_YCGCO**
= 8,
<br/>
**MATRIX_COEFFICIENT_BT2020_NCL**
= 9,
**MATRIX_COEFFICIENT_BT2020_CL**
= 10,
**MATRIX_COEFFICIENT_SMPTE_ST2085**
= 11,
**MATRIX_COEFFICIENT_CHROMATICITY_NCL**
= 12,
<br/>
**MATRIX_COEFFICIENT_CHROMATICITY_CL**
= 13,
**MATRIX_COEFFICIENT_ICTCP**
= 14
<br/>
} | 矩阵系数。 |
|
[
OH_BitsPerSample
](
_codec_base.md#oh_bitspersample
)
{
<br/>
**SAMPLE_U8**
= 0,
**SAMPLE_S16LE**
= 1,
**SAMPLE_S24LE**
= 2,
**SAMPLE_S32LE**
= 3,
<br/>
**SAMPLE_F32LE**
= 4,
**SAMPLE_U8P**
= 5,
**SAMPLE_S16P**
= 6,
**SAMPLE_S24P**
= 7,
<br/>
**SAMPLE_S32P**
= 8,
**SAMPLE_F32P**
= 9,
**INVALID_WIDTH**
= -1
<br/>
} | 枚举每个编码样本的音频位数。 |
|
[
OH_AVCodecBufferFlags
](
_codec_base.md#oh_avcodecbufferflags
)
{
<br/>
**AVCODEC_BUFFER_FLAGS_NONE**
= 0,
<br/>
**AVCODEC_BUFFER_FLAGS_EOS**
= 1
<<
0,
<br/>
**AVCODEC_BUFFER_FLAGS_SYNC_FRAME**
= 1
<<
1,
<br/>
**AVCODEC_BUFFER_FLAGS_INCOMPLETE_FRAME**
= 1
<<
2,
<br/>
**AVCODEC_BUFFER_FLAGS_CODEC_DATA**
= 1
<<
3
<br/>
} | 枚举OH_AVCodec缓冲区标记的类别。 |
|
[
OH_AVOutputFormat
](
_codec_base.md#oh_avoutputformat
)
{
<br/>
**AV_OUTPUT_FORMAT_DEFAULT**
= 0,
<br/>
**AV_OUTPUT_FORMAT_MPEG_4**
= 2,
<br/>
**AV_OUTPUT_FORMAT_M4A**
= 6
<br/>
} | 枚举封装器的输出文件格式。 |
|
[
OH_MediaType
](
_codec_base.md#oh_mediatype
)
{
<br/>
**MEDIA_TYPE_AUD**
= 0,
<br/>
**MEDIA_TYPE_VID**
= 1
<br/>
} | 媒体类型。 |
|
[
OH_AVCProfile
](
_codec_base.md#oh_avcprofile
)
{
<br/>
**AVC_PROFILE_BASELINE**
= 0,
<br/>
**AVC_PROFILE_HIGH**
= 4,
<br/>
**AVC_PROFILE_MAIN**
= 8
<br/>
} | AVC Profile枚举。 |
|
[
OH_HEVCProfile
](
_codec_base.md#oh_hevcprofile
)
{
<br/>
**HEVC_PROFILE_MAIN**
= 0,
<br/>
**HEVC_PROFILE_MAIN_10**
= 1,
<br/>
**HEVC_PROFILE_MAIN_STILL**
= 2,
<br/>
**HEVC_PROFILE_MAIN_10_HDR10**
= 3,
<br/>
**HEVC_PROFILE_MAIN_10_HDR10_PLUS**
= 4
<br/>
} | HEVC Profile枚举。 |
|
[
OH_AACProfile
](
_codec_base.md#oh_aacprofile
)
{
<br/>
**AAC_PROFILE_LC**
= 0
<br/>
} | AAC Profile枚举。 |
|
[
OH_AVSeekMode
](
_codec_base.md#oh_avseekmode
)
{
<br/>
**SEEK_MODE_NEXT_SYNC**
= 0,
<br/>
**SEEK_MODE_PREVIOUS_SYNC**,
<br/>
**SEEK_MODE_CLOSEST_SYNC**
<br/>
} | 跳转模式。 |
|
[
OH_ColorPrimary
](
_codec_base.md#oh_colorprimary
)
{
<br/>
**COLOR_PRIMARY_BT709**
= 1,
<br/>
**COLOR_PRIMARY_UNSPECIFIED**
= 2,
<br/>
**COLOR_PRIMARY_BT470_M**
= 4,
<br/>
**COLOR_PRIMARY_BT601_625**
= 5,
<br/>
**COLOR_PRIMARY_BT601_525**
= 6,
<br/>
**COLOR_PRIMARY_SMPTE_ST240**
= 7,
<br/>
**COLOR_PRIMARY_GENERIC_FILM**
= 8,
<br/>
**COLOR_PRIMARY_BT2020**
= 9,
<br/>
**COLOR_PRIMARY_SMPTE_ST428**
= 10,
<br/>
**COLOR_PRIMARY_P3DCI**
= 11,
<br/>
**COLOR_PRIMARY_P3D65**
= 12
<br/>
} | 原色。 |
|
[
OH_TransferCharacteristic
](
_codec_base.md#oh_transfercharacteristic
)
{
<br/>
**TRANSFER_CHARACTERISTIC_BT709**
= 1,
<br/>
**TRANSFER_CHARACTERISTIC_UNSPECIFIED**
= 2,
<br/>
**TRANSFER_CHARACTERISTIC_GAMMA_2_2**
= 4,
<br/>
**TRANSFER_CHARACTERISTIC_GAMMA_2_8**
= 5,
<br/>
**TRANSFER_CHARACTERISTIC_BT601**
= 6,
<br/>
**TRANSFER_CHARACTERISTIC_SMPTE_ST240**
= 7,
<br/>
**TRANSFER_CHARACTERISTIC_LINEAR**
= 8,
<br/>
**TRANSFER_CHARACTERISTIC_LOG**
= 9,
<br/>
**TRANSFER_CHARACTERISTIC_LOG_SQRT**
= 10,
<br/>
**TRANSFER_CHARACTERISTIC_IEC_61966_2_4**
= 11,
<br/>
**TRANSFER_CHARACTERISTIC_BT1361**
= 12,
<br/>
**TRANSFER_CHARACTERISTIC_IEC_61966_2_1**
= 13,
<br/>
**TRANSFER_CHARACTERISTIC_BT2020_10BIT**
= 14,
<br/>
**TRANSFER_CHARACTERISTIC_BT2020_12BIT**
= 15,
<br/>
**TRANSFER_CHARACTERISTIC_PQ**
= 16,
<br/>
**TRANSFER_CHARACTERISTIC_SMPTE_ST428**
= 17,
<br/>
**TRANSFER_CHARACTERISTIC_HLG**
= 18
<br/>
} | 转移特性。 |
|
[
OH_MatrixCoefficient
](
_codec_base.md#oh_matrixcoefficient
)
{
<br/>
**MATRIX_COEFFICIENT_IDENTITY**
= 0,
<br/>
**MATRIX_COEFFICIENT_BT709**
= 1,
<br/>
**MATRIX_COEFFICIENT_UNSPECIFIED**
= 2,
<br/>
**MATRIX_COEFFICIENT_FCC**
= 4,
<br/>
**MATRIX_COEFFICIENT_BT601_625**
= 5,
<br/>
**MATRIX_COEFFICIENT_BT601_525**
= 6,
<br/>
**MATRIX_COEFFICIENT_SMPTE_ST240**
= 7,
<br/>
**MATRIX_COEFFICIENT_YCGCO**
= 8,
<br/>
**MATRIX_COEFFICIENT_BT2020_NCL**
= 9,
<br/>
**MATRIX_COEFFICIENT_BT2020_CL**
= 10,
<br/>
**MATRIX_COEFFICIENT_SMPTE_ST2085**
= 11,
<br/>
**MATRIX_COEFFICIENT_CHROMATICITY_NCL**
= 12,
<br/>
**MATRIX_COEFFICIENT_CHROMATICITY_CL**
= 13,
<br/>
**MATRIX_COEFFICIENT_ICTCP**
= 14
<br/>
} | 矩阵系数。 |
|
[
OH_BitsPerSample
](
_codec_base.md#oh_bitspersample
)
{
<br/>
**SAMPLE_U8**
= 0,
<br/>
**SAMPLE_S16LE**
= 1,
<br/>
**SAMPLE_S24LE**
= 2,
<br/>
**SAMPLE_S32LE**
= 3,
<br/>
**SAMPLE_F32LE**
= 4,i
<br/>
**SAMPLE_U8P**
= 5,
<br/>
**SAMPLE_S16P**
= 6,
<br/>
**SAMPLE_S24P**
= 7,
<br/>
**SAMPLE_S32P**
= 8,
<br/>
**SAMPLE_F32P**
= 9,
<br/>
**INVALID_WIDTH**
= -1
<br/>
} | 枚举每个编码样本的音频位数。 |
### 变量
...
...
zh-cn/application-dev/reference/native-apis/native__avcodec__videoencoder_8h.md
浏览文件 @
937acbad
...
...
@@ -28,7 +28,7 @@
| 名称 | 描述 |
| -------- | -------- |
|
[
OH_VideoEncodeBitrateMode
](
_video_encoder.md#oh_videoencodebitratemode
)
{
**CBR**
= 0,
**VBR**
= 1,
**CQ**
= 2
} | 视频编码器的比特率模式。 |
|
[
OH_VideoEncodeBitrateMode
](
_video_encoder.md#oh_videoencodebitratemode
)
{
<br/>
**CBR**
= 0,
<br/>
**VBR**
= 1,
<br/>
**CQ**
= 2
<br/>
} | 视频编码器的比特率模式。 |
### 函数
...
...
zh-cn/application-dev/reference/native-apis/native__averrors_8h.md
浏览文件 @
937acbad
...
...
@@ -28,4 +28,4 @@
| 名称 | 描述 |
| -------- | -------- |
|
[
OH_AVErrCode
](
_core.md#oh_averrcode
)
{
<br/>
AV_ERR_OK = 0, AV_ERR_NO_MEMORY = 1, AV_ERR_OPERATE_NOT_PERMIT = 2, AV_ERR_INVALID_VAL = 3,
<br/>
AV_ERR_IO = 4, AV_ERR_TIMEOUT = 5, AV_ERR_UNKNOWN = 6, AV_ERR_SERVICE_DIED = 7,
<br/>
AV_ERR_INVALID_STATE = 8, AV_ERR_UNSUPPORT = 9,
AV_ERR_EXTEND_START = 100
<br/>
} | 音视频错误码。 |
|
[
OH_AVErrCode
](
_core.md#oh_averrcode
)
{
<br/>
AV_ERR_OK = 0,
<br/>
AV_ERR_NO_MEMORY = 1,
<br/>
AV_ERR_OPERATE_NOT_PERMIT = 2,
<br/>
AV_ERR_INVALID_VAL = 3,
<br/>
AV_ERR_IO = 4,
<br/>
AV_ERR_TIMEOUT = 5,
<br/>
AV_ERR_UNKNOWN = 6,
<br/>
AV_ERR_SERVICE_DIED = 7,
<br/>
AV_ERR_INVALID_STATE = 8,
<br/>
AV_ERR_UNSUPPORT = 9,
<br/>
AV_ERR_EXTEND_START = 100
<br/>
} | 音视频错误码。 |
zh-cn/application-dev/reference/native-apis/native__avformat_8h.md
浏览文件 @
937acbad
...
...
@@ -28,7 +28,7 @@
| 名称 | 描述 |
| -------- | -------- |
|
[
OH_AVPixelFormat
](
_core.md#oh_avpixelformat
)
{
<br/>
AV_PIXEL_FORMAT_YUVI420 = 1, AV_PIXEL_FORMAT_NV12 = 2, AV_PIXEL_FORMAT_NV21 = 3, AV_PIXEL_FORMAT_SURFACE_FORMAT = 4,
<br/>
AV_PIXEL_FORMAT_RGBA = 5
<br/>
} | AVPixel 格式的枚举类。 |
|
[
OH_AVPixelFormat
](
_core.md#oh_avpixelformat
)
{
<br/>
AV_PIXEL_FORMAT_YUVI420 = 1,
<br/>
AV_PIXEL_FORMAT_NV12 = 2,
<br/>
AV_PIXEL_FORMAT_NV21 = 3,
<br/>
AV_PIXEL_FORMAT_SURFACE_FORMAT = 4,
<br/>
AV_PIXEL_FORMAT_RGBA = 5
<br/>
} | AVPixel 格式的枚举类。 |
### 函数
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录