NeedDestPMBuff method

Determines whether a temporary buffer is needed when calling a sample for surface read/write methods.

Syntax

BOOL retVal = object.NeedDestPMBuff();

Parameters

This method has no parameters.

Remarks

If the native pixel format of your transform is PMARGB32, you will call methods such as IDXARGBReadWritePtr::PackPremultAndMove to write sample data. If the format of the output surface does not match, a temporary buffer is required by the output methods. The CDXBaseNTo1::NeedDestPMBuff method tests for this condition and informs you if a buffer will need to be allocated or not.

See also

Reference

CDXBaseNTo1::OutputSampleFormat

IDXARGBReadWritePtr