James Almer
aba9fafee7
avutil/channel_layout: fix definition of 5.1.4 layout
...
It's meant to have the side channels, as defined in Sound System D from
ITU-R - BS.2051-3
Signed-off-by: James Almer <jamrial@gmail.com>
2025-01-03 10:27:12 -03:00
James Almer
da9dcaba69
avutil/channel_layout: add a 5.1.2 layout using side channels
...
And rename the existing 5.1.2 to explicitly state it contains back channels.
Signed-off-by: James Almer <jamrial@gmail.com>
2025-01-03 10:27:12 -03:00
James Almer
6eb4bf04e9
avutil/channel_layout: add a 9.1.6 layout
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-12-13 16:35:47 -03:00
James Almer
20af68b63a
avutil/channel_layout: add Binaural channels and layout
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-13 12:38:04 -03:00
Marton Balint
a4fc331118
avutil/channel_layout: add specific text versions for unknown and unused channels
...
Signed-off-by: Marton Balint <cus@passwd.hu>
2024-03-16 19:49:39 +01:00
Marton Balint
95d31db82c
avutil/channel_layout: factorize parsing list of channel names
...
Also make use of the av_channel_from_string() function to determine the channel
id. This fixes some parse issues in av_channel_layout_from_string().
Signed-off-by: Marton Balint <cus@passwd.hu>
2024-03-16 19:49:39 +01:00
Marton Balint
0b3b8a1918
avutil/tests/channel_layout: add some av_channel_from_string and av_channel_layout_from_string tests
...
We lacked tests which supposed to fail, and there are some which should fail
but right now it does not. This will be fixed in a later commit.
Signed-off-by: Marton Balint <cus@passwd.hu>
2024-03-16 19:49:39 +01:00
Marton Balint
b2b22c2d1a
avutil/tests/channel_layout: make printing results part of the tests
...
Deduplicates a lot of code.
Some minor differences (mostly white space and inconsistent use of quotes) are
expected in the fate tests, there was no point aiming for exactly the same
formatting.
Signed-off-by: Marton Balint <cus@passwd.hu>
2024-03-16 19:49:39 +01:00
James Almer
b5911654c4
avutil/channel_layout: print known layout names in custom layout
...
If a custom layout is equivalent to a native one, check if it matches one of the
known layout names and print that instead.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-02-18 09:59:40 -03:00
Marton Balint
65c9c52a5a
avutil/tests/channel_layout: add tests for av_channel_order_retype
...
Signed-off-by: Marton Balint <cus@passwd.hu>
2024-02-18 10:54:22 +01:00
James Almer
04e53927ad
avutil/channel_layout: add a 9.1.4 channel layout
...
Mapping to ITU-R BS.2051-3 "Sound System G" and ITU-R BS.1196-8 "Channel
Configuration 20".
Signed-off-by: James Almer <jamrial@gmail.com>
2023-11-08 10:09:46 -03:00
James Almer
b4169760b0
avutil/channel_layout: add a 7.2.3 channel layout
...
Mapping to ITU-R BS.2051-3 "Sound System F" and ITU-R BS.1196-8 "Channel
Configuration 15".
Signed-off-by: James Almer <jamrial@gmail.com>
2023-11-08 10:09:46 -03:00
James Almer
35b06853d1
avutil/channel_layout: add a 3.1.2 channel layout
...
Signed-off-by: James Almer <jamrial@gmail.com>
2023-10-27 08:46:34 -03:00
Will Wolcott
e9397ae054
avutil/channel_layout: add a 7.1.4 channel layout
...
Mapping to ITU-R BS.2051-3 "Sound System J" and ITU-R BS.1196-8 "Channel
Configuration 19".
Signed-off-by: Will Wolcott <wwolcott@netflix.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2023-10-27 08:46:34 -03:00
James Almer
a41c4b923d
avutil/channel_layout: add a 7.1.2 channel layout
...
Signed-off-by: James Almer <jamrial@gmail.com>
2023-10-27 08:46:34 -03:00
James Almer
8d46cbce4f
avutil/channel_layout: add a 5.1.4 channel layout
...
Mapping to ITU-R BS.2051-3 "Sound System D" and ITU-R BS.1196-8 "Channel
Configuration 16".
Signed-off-by: James Almer <jamrial@gmail.com>
2023-10-27 08:46:34 -03:00
James Almer
4b8404815d
avutil/channel_layout: rename 7.1(top) channel layout to 5.1.2
...
This layout maps to ITU-R BS.2051-3 "Sound System C" and ITU-R BS.1196-8 "Channel
Configuration 14", and it being the first layout with top layer channels, it's
best to use a different scheme to properly convey the presence and amount of said
channels.
The new name will also be a better fit for the additions in the following commits.
Signed-off-by: James Almer <jamrial@gmail.com>
2023-10-27 08:46:34 -03:00
James Almer
6228ba141d
avutil/channel_layout: add a 7.1(top) channel layout
...
Signed-off-by: James Almer <jamrial@gmail.com>
2022-11-03 19:39:45 -03:00
James Almer
83e918de71
avutil/channel_layout: add a cube channel layout
...
Signed-off-by: James Almer <jamrial@gmail.com>
2022-10-30 16:18:30 -03:00
James Almer
7602b4e4c2
avutil/tests/channel_layout: also test ambisonic layouts in av_channel_layout_subset()
...
Signed-off-by: James Almer <jamrial@gmail.com>
2022-03-25 17:10:39 -03:00
James Almer
95ac380252
avutil/tests/channel_layout: test the output of av_channel_layout_subset()
...
Should increase test coverage a bit
Signed-off-by: James Almer <jamrial@gmail.com>
2022-03-25 12:09:19 -03:00
James Almer
167c5a6afc
avutil/tests/channel_layout: test the output of av_channel_layout_standard()
...
Should increase test coverage.
Signed-off-by: James Almer <jamrial@gmail.com>
2022-03-25 11:46:51 -03:00
James Almer
f9ed91abc9
avutil/tests/channel_layout: test generating a custom layout using ambisonic channels and a non diegetic channel with a custom name
...
Should increase test coverage a bit
Signed-off-by: James Almer <jamrial@gmail.com>
2022-03-25 11:46:48 -03:00
Vittorio Giovara
886847afa0
channel_layout: add support for Ambisonic
...
Signed-off-by: James Almer <jamrial@gmail.com>
2022-03-15 09:42:47 -03:00
James Almer
f51e169d2b
fate: add a channel_layout API test
...
Signed-off-by: James Almer <jamrial@gmail.com>
2022-03-15 09:42:29 -03:00