Beispiel #1
0
        // Queries the color primaries for a video media type.
        public void GetVideoPrimaries(out MFVideoPrimaries pPrimaries)
        {
            int     i;
            HResult hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_VIDEO_PRIMARIES, out i);

            MFError.ThrowExceptionForHR(hr);
            pPrimaries = (MFVideoPrimaries)i;
        }
Beispiel #2
0
 // Sets the color primaries for a video media type.
 public void SetVideoPrimaries(MFVideoPrimaries nPrimaries)
 {
     int hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_VIDEO_PRIMARIES, (int)nPrimaries);
     MFError.ThrowExceptionForHR(hr);
 }
Beispiel #3
0
 // Queries the color primaries for a video media type.
 public void GetVideoPrimaries(out MFVideoPrimaries pPrimaries)
 {
     int i;
     int hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_VIDEO_PRIMARIES, out i);
     MFError.ThrowExceptionForHR(hr);
     pPrimaries = (MFVideoPrimaries)i;
 }
Beispiel #4
0
        // Sets the color primaries for a video media type.
        public void SetVideoPrimaries(MFVideoPrimaries nPrimaries)
        {
            HResult hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_VIDEO_PRIMARIES, (int)nPrimaries);

            MFError.ThrowExceptionForHR(hr);
        }