You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avutil/tests/channel_layout: also test ambisonic layouts in av_channel_layout_subset()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -340,6 +340,12 @@ int main(void)
|
|||||||
CHANNEL_LAYOUT_CHANNEL_FROM_INDEX(11);
|
CHANNEL_LAYOUT_CHANNEL_FROM_INDEX(11);
|
||||||
printf("On \"ambisonic 2+stereo\" layout with 11: %21d\n", ret);
|
printf("On \"ambisonic 2+stereo\" layout with 11: %21d\n", ret);
|
||||||
|
|
||||||
|
printf("\nTesting av_channel_layout_subset\n");
|
||||||
|
CHANNEL_LAYOUT_SUBSET(AV_CH_LAYOUT_STEREO);
|
||||||
|
printf("On \"ambisonic 2+stereo\" layout with AV_CH_LAYOUT_STEREO: 0x%"PRIx64"\n", mask);
|
||||||
|
CHANNEL_LAYOUT_SUBSET(AV_CH_LAYOUT_QUAD);
|
||||||
|
printf("On \"ambisonic 2+stereo\" layout with AV_CH_LAYOUT_QUAD: 0x%"PRIx64"\n", mask);
|
||||||
|
|
||||||
av_channel_layout_uninit(&layout);
|
av_channel_layout_uninit(&layout);
|
||||||
av_bprint_finalize(&bp, NULL);
|
av_bprint_finalize(&bp, NULL);
|
||||||
|
|
||||||
|
@@ -173,3 +173,7 @@ On "ambisonic 2+stereo" layout with 0: 1024
|
|||||||
On "ambisonic 2+stereo" layout with 9: 0
|
On "ambisonic 2+stereo" layout with 9: 0
|
||||||
On "ambisonic 2+stereo" layout with 10: 1
|
On "ambisonic 2+stereo" layout with 10: 1
|
||||||
On "ambisonic 2+stereo" layout with 11: -1
|
On "ambisonic 2+stereo" layout with 11: -1
|
||||||
|
|
||||||
|
Testing av_channel_layout_subset
|
||||||
|
On "ambisonic 2+stereo" layout with AV_CH_LAYOUT_STEREO: 0x3
|
||||||
|
On "ambisonic 2+stereo" layout with AV_CH_LAYOUT_QUAD: 0x3
|
||||||
|
Reference in New Issue
Block a user