Exemple #1
0
        // Retrieves the aspect ratio of the output rectangle for a video media type.
        public void GetPadControlFlags(out MFVideoPadFlags pFlags)
        {
            int     i;
            HResult hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_PAD_CONTROL_FLAGS, out i);

            MFError.ThrowExceptionForHR(hr);
            pFlags = (MFVideoPadFlags)i;
        }
Exemple #2
0
 // Sets the aspect ratio of the output rectangle for a video media type.
 public void SetPadControlFlags(MFVideoPadFlags flags)
 {
     int hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_PAD_CONTROL_FLAGS, (int)flags);
     MFError.ThrowExceptionForHR(hr);
 }
Exemple #3
0
 // Retrieves the aspect ratio of the output rectangle for a video media type.
 public void GetPadControlFlags(out MFVideoPadFlags pFlags)
 {
     int i;
     int hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_PAD_CONTROL_FLAGS, out i);
     MFError.ThrowExceptionForHR(hr);
     pFlags = (MFVideoPadFlags)i;
 }
Exemple #4
0
        // Sets the aspect ratio of the output rectangle for a video media type.
        public void SetPadControlFlags(MFVideoPadFlags flags)
        {
            HResult hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_PAD_CONTROL_FLAGS, (int)flags);

            MFError.ThrowExceptionForHR(hr);
        }