// 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; }
// 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); }
// 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; }
// 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); }