NeedSrcPMBuff method
Determines whether a temporary buffer is needed when calling sample input methods on the IDXARGBReadPtr interface.
Syntax
BOOL retVal = object.NeedSrcPMBuff(i);
Parameters
i [in]
Type: unsigned longIndex of the specified input surface. The default value is zero.
Remarks
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.