Example #1
0
        // 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;
        }
Example #2
0
 // 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);
 }
Example #3
0
 // 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;
 }
Example #4
0
        // 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);
        }