Esempio n. 1
0
            private IMFMediaType MediaTypeFromProperties(IMediaEncodingProperties properties)
            {
                IMFMediaType mediaType = null;

                MFPlat.MFCreateMediaTypeFromProperties(properties, out mediaType);
                return(mediaType);
            }
Esempio n. 2
0
            private IMediaEncodingProperties PropertiesFromMediaType(IMFMediaType type)
            {
                Guid   iidAudioEncodingProperties = new Guid("B4002AF6-ACD4-4E5A-A24B-5D7498A8B8C4");
                Object properties = null;

                MFPlat.MFCreatePropertiesFromMediaType(type, ref iidAudioEncodingProperties, out properties);
                return(properties as IMediaEncodingProperties);
            }