Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e23f84d9
Commit
e23f84d9
authored
Aug 21, 2015
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
channel_layout: Add a 16channel default layout
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
d5eab59a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
channel_layout.c
libavutil/channel_layout.c
+2
-0
channel_layout.h
libavutil/channel_layout.h
+1
-0
No files found.
libavutil/channel_layout.c
View file @
e23f84d9
...
...
@@ -97,6 +97,7 @@ static const struct {
{
"7.1(wide)"
,
8
,
AV_CH_LAYOUT_7POINT1_WIDE
},
{
"7.1(wide)"
,
8
,
AV_CH_LAYOUT_7POINT1_WIDE_BACK
},
{
"octagonal"
,
8
,
AV_CH_LAYOUT_OCTAGONAL
},
{
"hexadecagonal"
,
16
,
AV_CH_LAYOUT_HEXADECAGONAL
},
{
"downmix"
,
2
,
AV_CH_LAYOUT_STEREO_DOWNMIX
,
},
{
0
}
};
...
...
@@ -193,6 +194,7 @@ uint64_t av_get_default_channel_layout(int nb_channels)
case
6
:
return
AV_CH_LAYOUT_5POINT1
;
case
7
:
return
AV_CH_LAYOUT_6POINT1
;
case
8
:
return
AV_CH_LAYOUT_7POINT1
;
case
16
:
return
AV_CH_LAYOUT_HEXADECAGONAL
;
default:
return
0
;
}
}
...
...
libavutil/channel_layout.h
View file @
e23f84d9
...
...
@@ -100,6 +100,7 @@
#define AV_CH_LAYOUT_7POINT1_WIDE (AV_CH_LAYOUT_5POINT1|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
#define AV_CH_LAYOUT_7POINT1_WIDE_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
#define AV_CH_LAYOUT_OCTAGONAL (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_CENTER|AV_CH_BACK_RIGHT)
#define AV_CH_LAYOUT_HEXADECAGONAL (AV_CH_LAYOUT_OCTAGONAL|AV_CH_WIDE_LEFT|AV_CH_WIDE_RIGHT|AV_CH_TOP_BACK_LEFT|AV_CH_TOP_BACK_RIGHT|AV_CH_TOP_BACK_CENTER|AV_CH_TOP_FRONT_CENTER|AV_CH_TOP_FRONT_LEFT|AV_CH_TOP_FRONT_RIGHT)
#define AV_CH_LAYOUT_STEREO_DOWNMIX (AV_CH_STEREO_LEFT|AV_CH_STEREO_RIGHT)
enum
AVMatrixEncoding
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment