Esempio n. 1
0
        private static IEnumerable <Guid> FindVideoFormatCompatibleProfiles(VideoDevice videoDevice, AVCodec codec)
        {
            for (var i = 0; i < videoDevice.VideoDecoderProfileCount; ++i)
            {
                videoDevice.GetVideoDecoderProfile(i, out var profile);

                // TODO Check profile id

                videoDevice.CheckVideoDecoderFormat(profile, DecoderOuputFormat, out var suppported);
                if (suppported)
                {
                    yield return(profile);
                }
            }

            yield break;
        }