// Queries the intended aspect ratio. public void GetSourceContentHint(out MFVideoSrcContentHintFlags pFlags) { int i; HResult hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_SOURCE_CONTENT_HINT, out i); MFError.ThrowExceptionForHR(hr); pFlags = (MFVideoSrcContentHintFlags)i; }
// Sets the intended aspect ratio. public void SetSourceContentHint(MFVideoSrcContentHintFlags nFlags) { int hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_SOURCE_CONTENT_HINT, (int)nFlags); MFError.ThrowExceptionForHR(hr); }
// Queries the intended aspect ratio. public void GetSourceContentHint(out MFVideoSrcContentHintFlags pFlags) { int i; int hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_SOURCE_CONTENT_HINT, out i); MFError.ThrowExceptionForHR(hr); pFlags = (MFVideoSrcContentHintFlags)i; }
// Sets the intended aspect ratio. public void SetSourceContentHint(MFVideoSrcContentHintFlags nFlags) { HResult hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_SOURCE_CONTENT_HINT, (int)nFlags); MFError.ThrowExceptionForHR(hr); }