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