NeedSrcPMBuff method

Determines whether a temporary buffer is needed when calling sample input methods on the IDXARGBReadPtr interface.


BOOL retVal = object.NeedSrcPMBuff(i);


  • i [in]
    Type: unsigned long

    Index of the specified input surface. The default value is zero.


If the native pixel format of your transform is PMARGB32, you will call methods such as IDXARGBReadPtr::UnpackPremult to read sample data. If the format of the input surface does not match, a temporary buffer is required by the input methods. The CDXBaseNTo1::NeedDestPMBuff method tests for this condition and lets the implementer know if a buffer will need to be allocated or not.

See also