aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/tests/channel_layout.c
Commit message (Collapse)AuthorAgeFilesLines
* avutil/channel_layout: add specific text versions for unknown and unused ↵Marton Balint2024-03-161-0/+2
| | | | | | channels Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/tests/channel_layout: add some av_channel_from_string and ↵Marton Balint2024-03-161-0/+26
| | | | | | | | | 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>
* avutil/tests/channel_layout: make printing results part of the testsMarton Balint2024-03-161-185/+98
| | | | | | | | | | 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>
* avutil/tests/channel_layout: add tests for av_channel_order_retypeMarton Balint2024-02-181-0/+63
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/tests/channel_layout: Test av_channel_layout_copy()Andreas Rheinhardt2023-08-101-1/+11
| | | | | | | | | | Specifically, test copying a channel layout with custom order, so that the allocation codepath of av_channel_layout_copy() is executed. Reviewed-by: Nicolas George <george@nsup.org> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/tests/channel_layout: Don't include lavu/channel_layout.cAndreas Rheinhardt2023-08-101-1/+7
| | | | | | | | | This test does not need access to the internals of said compilation unit. Reviewed-by: Nicolas George <george@nsup.org> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/tests/channel_layout: Also test non-AVBPrint variantsAndreas Rheinhardt2023-08-101-18/+90
| | | | | | Reviewed-by: Nicolas George <george@nsup.org> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/tests/channel_layout: also test ambisonic layouts in ↵James Almer2022-03-251-0/+6
| | | | | | av_channel_layout_subset() Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/tests/channel_layout: test av_channel_layout_check()James Almer2022-03-251-2/+4
| | | | | | Should increase test coverage Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/tests/channel_layout: test the output of av_channel_layout_subset()James Almer2022-03-251-0/+18
| | | | | | Should increase test coverage a bit Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/tests/channel_layout: test the output of av_channel_layout_standard()James Almer2022-03-251-1/+20
| | | | | | Should increase test coverage. Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/tests/channel_layout: test generating a custom layout using ambisonic ↵James Almer2022-03-251-0/+2
| | | | | | | | channels and a non diegetic channel with a custom name Should increase test coverage a bit Signed-off-by: James Almer <jamrial@gmail.com>
* channel_layout: add support for AmbisonicVittorio Giovara2022-03-151-0/+40
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add a channel_layout API testJames Almer2022-03-151-0/+266
Signed-off-by: James Almer <jamrial@gmail.com>