예제 #1
0
        // Gets a enumeration representing the conversion matrix from the
        // Y'Cb'Cr' color space to the R'G'B' color space.
        public void GetYUVMatrix(out MFVideoTransferMatrix pMatrix)
        {
            int     i;
            HResult hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_YUV_MATRIX, out i);

            MFError.ThrowExceptionForHR(hr);
            pMatrix = (MFVideoTransferMatrix)i;
        }
예제 #2
0
 // Sets an enumeration representing the conversion matrix from the
 // Y'Cb'Cr' color space to the R'G'B' color space.
 public void SetYUVMatrix(MFVideoTransferMatrix nMatrix)
 {
     int hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_YUV_MATRIX, (int)nMatrix);
     MFError.ThrowExceptionForHR(hr);
 }
예제 #3
0
 // Gets a enumeration representing the conversion matrix from the
 // Y'Cb'Cr' color space to the R'G'B' color space.
 public void GetYUVMatrix(out MFVideoTransferMatrix pMatrix)
 {
     int i;
     int hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_YUV_MATRIX, out i);
     MFError.ThrowExceptionForHR(hr);
     pMatrix = (MFVideoTransferMatrix)i;
 }
예제 #4
0
        // Sets an enumeration representing the conversion matrix from the
        // Y'Cb'Cr' color space to the R'G'B' color space.
        public void SetYUVMatrix(MFVideoTransferMatrix nMatrix)
        {
            HResult hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_YUV_MATRIX, (int)nMatrix);

            MFError.ThrowExceptionForHR(hr);
        }