コード例 #1
0
ファイル: Extern.cs プロジェクト: damian-krak/VideoPlayer
        // 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;
        }
コード例 #2
0
ファイル: Extern.cs プロジェクト: GoshaDE/SuperMFLib
 // 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);
 }
コード例 #3
0
ファイル: Extern.cs プロジェクト: GoshaDE/SuperMFLib
 // 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;
 }
コード例 #4
0
ファイル: Extern.cs プロジェクト: damian-krak/VideoPlayer
        // 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);
        }