Exemplo n.º 1
0
        // Queries the nominal range of the color information in a video media type.
        public void GetVideoNominalRange(out MFNominalRange pRange)
        {
            int     i;
            HResult hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_VIDEO_NOMINAL_RANGE, out i);

            MFError.ThrowExceptionForHR(hr);
            pRange = (MFNominalRange)i;
        }
Exemplo n.º 2
0
 // Sets the nominal range of the color information in a video media type.
 public void SetVideoNominalRange(MFNominalRange nRange)
 {
     int hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_VIDEO_NOMINAL_RANGE, (int)nRange);
     MFError.ThrowExceptionForHR(hr);
 }
Exemplo n.º 3
0
 // Queries the nominal range of the color information in a video media type.
 public void GetVideoNominalRange(out MFNominalRange pRange)
 {
     int i;
     int hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_VIDEO_NOMINAL_RANGE, out i);
     MFError.ThrowExceptionForHR(hr);
     pRange = (MFNominalRange)i;
 }
Exemplo n.º 4
0
        // Sets the nominal range of the color information in a video media type.
        public void SetVideoNominalRange(MFNominalRange nRange)
        {
            HResult hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_VIDEO_NOMINAL_RANGE, (int)nRange);

            MFError.ThrowExceptionForHR(hr);
        }