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