Ejemplo n.º 1
0
        // 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;
        }
Ejemplo n.º 2
0
 // 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);
 }
Ejemplo n.º 3
0
 // 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;
 }
Ejemplo n.º 4
0
        // 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);
        }