openharmony 鸿蒙 capi-avcodec-audio-channel-layout-h

2026-08-25 浏览 (1)

avcodec_audio_channel_layout.h

Overview

The file declares the enums used for audio codec channel layouts.

File to include: <multimedia/player_framework/avcodec_audio_channel_layout.h>

Library: libnative_media_codecbase.so

System capability: SystemCapability.Multimedia.Media.CodecBase

Since: 10

Deprecated from: 11

Related module: CodecBase

Summary

Enums

NameDescription
AudioChannelSetEnumerates the audio channels. Each channel is mapped to a variable of int64. (It is deprecated from API version 11.)
AudioChannelLayoutEnumerates the layouts of audio channels. The output format of the decoder is described using the channel layout of the codec. (It is deprecated from API version 11.)

Enum Description

AudioChannelSet

enum AudioChannelSet : uint64_t

Description

Enumerates the audio channels. Each channel is mapped to a variable of int64.

System capability: SystemCapability.Multimedia.Media.CodecBase

Since: 10

Deprecated from: 11

Substitute: OH_AudioChannelSet

ValueDescription
FRONT_LEFT = 1ULL << 0UFront left channel.
FRONT_RIGHT = 1ULL << 1UFront right channel.
FRONT_CENTER = 1ULL << 2UFront center channel.
LOW_FREQUENCY = 1ULL << 3ULow-frequency channel.
BACK_LEFT = 1ULL << 4URear left channel.
BACK_RIGHT = 1ULL << 5URear right channel.
FRONT_LEFT_OF_CENTER = 1ULL << 6UFront left center channel.
FRONT_RIGHT_OF_CENTER = 1ULL << 7UFront right center channel.
BACK_CENTER = 1ULL << 8URear center channel.
SIDE_LEFT = 1ULL << 9ULeft channel.
SIDE_RIGHT = 1ULL << 10URight channel.
TOP_CENTER = 1ULL << 11UTop center channel.
TOP_FRONT_LEFT = 1ULL << 12UTop left front channel.
TOP_FRONT_CENTER = 1ULL << 13UTop center front channel.
TOP_FRONT_RIGHT = 1ULL << 14UTop right front channel.
TOP_BACK_LEFT = 1ULL << 15UTop left rear channel.
TOP_BACK_CENTER = 1ULL << 16UTop center rear channel.
TOP_BACK_RIGHT = 1ULL << 17UTop right rear channel.
STEREO_LEFT = 1ULL << 29UStereo left channel.
STEREO_RIGHT = 1ULL << 30UStereo right channel.
WIDE_LEFT = 1ULL << 31UWide left channel.
WIDE_RIGHT = 1ULL << 32UWide right channel.
SURROUND_DIRECT_LEFT = 1ULL << 33ULeft surround channel.
SURROUND_DIRECT_RIGHT = 1ULL << 34URight surround channel.
LOW_FREQUENCY_2 = 1ULL << 35ULow-frequency channel 2.
TOP_SIDE_LEFT = 1ULL << 36UTop left channel.
TOP_SIDE_RIGHT = 1ULL << 37UTop right channel.
BOTTOM_FRONT_CENTER = 1ULL << 38UBottom center front channel.
BOTTOM_FRONT_LEFT = 1ULL << 39UBottom left front channel.
BOTTOM_FRONT_RIGHT = 1ULL << 40UBottom right front channel.
AMBISONICS_ACN0 = 1ULL << 41UChannel 0 for the zero-order stereo.
AMBISONICS_ACN1 = 1ULL << 42UChannel 1 for the first-order stereo.
AMBISONICS_ACN2 = 1ULL << 43UChannel 2 for the first-order stereo.
AMBISONICS_ACN3 = 1ULL << 44UChannel 3 for the first-order stereo.
AMBISONICS_W = AMBISONICS_ACN0Equivalent to channel 0 for the zero-order stereo.
AMBISONICS_Y = AMBISONICS_ACN1Equivalent to channel 1 for the first-order stereo.
AMBISONICS_Z = AMBISONICS_ACN2Equivalent to channel 2 for the first-order stereo.
AMBISONICS_X = AMBISONICS_ACN3Equivalent to channel 3 for the first-order stereo.
AMBISONICS_ACN4 = 1ULL << 45UChannel 4 for the second-order stereo.
AMBISONICS_ACN5 = 1ULL << 46UChannel 5 for the second-order stereo.
AMBISONICS_ACN6 = 1ULL << 47UChannel 6 for the second-order stereo.
AMBISONICS_ACN7 = 1ULL << 48UChannel 7 for the second-order stereo.
AMBISONICS_ACN8 = 1ULL << 49UChannel 8 for the second-order stereo.
AMBISONICS_ACN9 = 1ULL << 50UChannel 9 for the third-order stereo.
AMBISONICS_ACN10 = 1ULL << 51UChannel 10 for the third-order stereo.
AMBISONICS_ACN11 = 1ULL << 52UChannel 11 for the third-order stereo.
AMBISONICS_ACN12 = 1ULL << 53UChannel 12 for the third-order stereo.
AMBISONICS_ACN13 = 1ULL << 54UChannel 13 for the third-order stereo.
AMBISONICS_ACN14 = 1ULL << 55UChannel 14 for the third-order stereo.
AMBISONICS_ACN15 = 1ULL << 56UChannel 15 for the third-order stereo.

AudioChannelLayout

enum AudioChannelLayout : uint64_t

Description

Enumerates the layouts of audio channels. The output format of the decoder is described using the channel layout of the codec.

System capability: SystemCapability.Multimedia.Media.CodecBase

Since: 10

Deprecated from: 11

Substitute: OH_AudioChannelLayout

ValueDescription
UNKNOWN_CHANNEL_LAYOUT = 0Unknown.
MONO = (AudioChannelSet::FRONT_CENTER)Mono layout.
STEREO = (AudioChannelSet::FRONT_LEFT |AudioChannelSet::FRONT_RIGHT)Stereo layout.
CH_2POINT1 = (STEREO |AudioChannelSet::LOW_FREQUENCY)2.1 layout.
CH_2_1 = (STEREO |AudioChannelSet::BACK_CENTER)2_1 layout.
SURROUND = (STEREO |AudioChannelSet::FRONT_CENTER)Surround layout.
CH_3POINT1 = (SURROUND |AudioChannelSet::LOW_FREQUENCY)3.1 layout.
CH_4POINT0 = (SURROUND |AudioChannelSet::BACK_CENTER)4.0 layout.
CH_4POINT1 = (CH_4POINT0 |AudioChannelSet::LOW_FREQUENCY)4.1 layout.
CH_2_2 = (STEREO |AudioChannelSet::SIDE_LEFT |AudioChannelSet::SIDE_RIGHT)2_2 layout.
QUAD = (STEREO |AudioChannelSet::BACK_LEFT |AudioChannelSet::BACK_RIGHT)Quad layout.
CH_5POINT0 = (SURROUND |AudioChannelSet::SIDE_LEFT |AudioChannelSet::SIDE_RIGHT)5.0 layout.
CH_5POINT1 = (CH_5POINT0 |AudioChannelSet::LOW_FREQUENCY)5.1 layout.
CH_5POINT0_BACK = (SURROUND |AudioChannelSet::BACK_LEFT |AudioChannelSet::BACK_RIGHT)5.0 rear layout.
CH_5POINT1_BACK = (CH_5POINT0_BACK |AudioChannelSet::LOW_FREQUENCY)5.1 rear layout.
CH_6POINT0 = (CH_5POINT0 |AudioChannelSet::BACK_CENTER)6.0 layout.
CH_6POINT0_FRONT = (CH_2_2 |AudioChannelSet::FRONT_LEFT_OF_CENTER |AudioChannelSet::FRONT_RIGHT_OF_CENTER)6.0 front layout.
HEXAGONAL = (CH_5POINT0_BACK |AudioChannelSet::BACK_CENTER)Hexagonal layout.
CH_6POINT1 = (CH_5POINT1 |AudioChannelSet::BACK_CENTER)6.1 layout.
CH_6POINT1_BACK = (CH_5POINT1_BACK |AudioChannelSet::BACK_CENTER)6.1 rear layout.
CH_6POINT1_FRONT = (CH_6POINT0_FRONT |AudioChannelSet::LOW_FREQUENCY)6.1 front layout.
CH_7POINT0 = (CH_5POINT0 |AudioChannelSet::BACK_LEFT |AudioChannelSet::BACK_RIGHT)7.0 layout.
CH_7POINT0_FRONT = (CH_5POINT0 |AudioChannelSet::FRONT_LEFT_OF_CENTER |AudioChannelSet::FRONT_RIGHT_OF_CENTER)7.0 front layout.
CH_7POINT1 = (CH_5POINT1 |AudioChannelSet::BACK_LEFT |AudioChannelSet::BACK_RIGHT)7.1 layout.
CH_7POINT1_WIDE = (CH_5POINT1 |AudioChannelSet::FRONT_LEFT_OF_CENTER |AudioChannelSet::FRONT_RIGHT_OF_CENTER)7.1 wide layout.
CH_7POINT1_WIDE_BACK =7.1 rear wide layout.
CH_3POINT1POINT2 = (CH_3POINT1 |AudioChannelSet::TOP_FRONT_LEFT |AudioChannelSet::TOP_FRONT_RIGHT)3.1.2 layout.
CH_5POINT1POINT2 = (CH_5POINT1 |AudioChannelSet::TOP_SIDE_LEFT |AudioChannelSet::TOP_SIDE_RIGHT)5.1.2 layout.
(CH_5POINT1 |AudioChannelSet::TOP_FRONT_LEFT |AudioChannelSet::TOP_FRONT_RIGHT |AudioChannelSet::TOP_BACK_LEFT |AudioChannelSet::TOP_BACK_RIGHT)5.1.4 layout.
CH_7POINT1POINT2 = (CH_7POINT1 |AudioChannelSet::TOP_SIDE_LEFT |AudioChannelSet::TOP_SIDE_RIGHT)7.1.2 layout.
CH_7POINT1POINT4 = (CH_7POINT1 |AudioChannelSet::TOP_FRONT_LEFT |AudioChannelSet::TOP_FRONT_RIGHT |AudioChannelSet::TOP_BACK_LEFT |AudioChannelSet::TOP_BACK_RIGHT)7.1.4 layout.
CH_9POINT1POINT4 = (CH_7POINT1POINT4 |AudioChannelSet::WIDE_LEFT |AudioChannelSet::WIDE_RIGHT)9.1.4 layout.
CH_9POINT1POINT6 = (CH_9POINT1POINT4 |AudioChannelSet::TOP_SIDE_LEFT |AudioChannelSet::TOP_SIDE_RIGHT)9.1.6 layout.
CH_10POINT2 = (AudioChannelSet::FRONT_LEFT |AudioChannelSet::FRONT_RIGHT |AudioChannelSet::FRONT_CENTER |AudioChannelSet::TOP_FRONT_LEFT |AudioChannelSet::TOP_FRONT_RIGHT |AudioChannelSet::BACK_LEFT |AudioChannelSet::BACK_RIGHT |AudioChannelSet::BACK_CENTER |AudioChannelSet::SIDE_LEFT |AudioChannelSet::SIDE_RIGHT |AudioChannelSet::WIDE_LEFT |AudioChannelSet::WIDE_RIGHT)10.2 layout.
CH_22POINT2 = (CH_7POINT1POINT4 |AudioChannelSet::FRONT_LEFT_OF_CENTER |AudioChannelSet::FRONT_RIGHT_OF_CENTER |AudioChannelSet::BACK_CENTER |AudioChannelSet::TOP_CENTER |AudioChannelSet::TOP_FRONT_CENTER |AudioChannelSet::TOP_BACK_CENTER |AudioChannelSet::TOP_SIDE_LEFT |AudioChannelSet::TOP_SIDE_RIGHT |AudioChannelSet::BOTTOM_FRONT_LEFT |AudioChannelSet::BOTTOM_FRONT_RIGHT |AudioChannelSet::BOTTOM_FRONT_CENTER |AudioChannelSet::LOW_FREQUENCY_2)22.2 layout.
OCTAGONAL = (CH_5POINT0 |AudioChannelSet::BACK_LEFT |AudioChannelSet::BACK_CENTER |AudioChannelSet::BACK_RIGHT)Octagonal layout.
HEXADECAGONAL = (OCTAGONAL |AudioChannelSet::WIDE_LEFT |AudioChannelSet::WIDE_RIGHT |AudioChannelSet::TOP_BACK_LEFT |AudioChannelSet::TOP_BACK_RIGHT |AudioChannelSet::TOP_BACK_CENTER |AudioChannelSet::TOP_FRONT_CENTER |AudioChannelSet::TOP_FRONT_LEFT |AudioChannelSet::TOP_FRONT_RIGHT)Hexadecagonal layout.
STEREO_DOWNMIX = (AudioChannelSet::STEREO_LEFT |AudioChannelSet::STEREO_RIGHT)Stereo downmix layout.
HOA_FIRST = AudioChannelSet::AMBISONICS_ACN0 |AudioChannelSet::AMBISONICS_ACN1 |AudioChannelSet::AMBISONICS_ACN2 |AudioChannelSet::AMBISONICS_ACN3High-Order Ambisonics (HOA) first-order layout.
HOA_SECOND = HOA_FIRST |AudioChannelSet::AMBISONICS_ACN4 |AudioChannelSet::AMBISONICS_ACN5 |AudioChannelSet::AMBISONICS_ACN6 |AudioChannelSet::AMBISONICS_ACN7 |AudioChannelSet::AMBISONICS_ACN8HOA second-order layout.
HOA_THIRD = HOA_SECOND |AudioChannelSet::AMBISONICS_ACN9 |AudioChannelSet::AMBISONICS_ACN10 |AudioChannelSet::AMBISONICS_ACN11 |AudioChannelSet::AMBISONICS_ACN12 |AudioChannelSet::AMBISONICS_ACN13 |AudioChannelSet::AMBISONICS_ACN14 |AudioChannelSet::AMBISONICS_ACN15HOA third-order layout.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-native-avcodec-audiocodec-h

openharmony 鸿蒙 capi-avsource-oh-avsource

openharmony 鸿蒙 capi-native-cencinfo-h

openharmony 鸿蒙 capi-avmuxer

openharmony 鸿蒙 capi-multimedia-drm-oh-avcencinfo

openharmony 鸿蒙 capi-native-avdemuxer-h

openharmony 鸿蒙 capi-media-types-h

openharmony 鸿蒙 capi-native-audio-channel-layout-h

openharmony 鸿蒙 capi-native-avbuffer-info-h

openharmony 鸿蒙 capi-codecbase-oh-avcodecasynccallback

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/dCofFlgN