// Queries an enumeration which represents the conversion function from RGB to R'G'B'. public void GetTransferFunction(out MFVideoTransferFunction pnFxn) { int i; HResult hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_TRANSFER_FUNCTION, out i); MFError.ThrowExceptionForHR(hr); pnFxn = (MFVideoTransferFunction)i; }
// Set an enumeration which represents the conversion function from RGB to R'G'B'. public void SetTransferFunction(MFVideoTransferFunction nFxn) { int hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_TRANSFER_FUNCTION, (int)nFxn); MFError.ThrowExceptionForHR(hr); }
// Queries an enumeration which represents the conversion function from RGB to R'G'B'. public void GetTransferFunction(out MFVideoTransferFunction pnFxn) { int i; int hr = GetMediaType().GetUINT32(MFAttributesClsid.MF_MT_TRANSFER_FUNCTION, out i); MFError.ThrowExceptionForHR(hr); pnFxn = (MFVideoTransferFunction)i; }
// Set an enumeration which represents the conversion function from RGB to R'G'B'. public void SetTransferFunction(MFVideoTransferFunction nFxn) { HResult hr = GetMediaType().SetUINT32(MFAttributesClsid.MF_MT_TRANSFER_FUNCTION, (int)nFxn); MFError.ThrowExceptionForHR(hr); }