SAD4x4

Evaluate sum of absolute difference, 4x4 block

Supported Technologies

SSE2

Synopsis

FwStatus   fwiSAD4x4_8u32s ( const Fw8u * pSrcFw32s srcStepFw8u * pRefFw32s refStepFw32s * pSADFw32s mcType );

Parameters

mcType   Specifies the type of prediction used for motion compensation.
pRef   Pointer to a prefetch buffer which contains previously decoded bits.
pSAD   Pointer to an SAD result.
pSrc   Pointer to a block of DCT coefficients.
refStep   Reference block step size (width of the block in bytes).
srcStep   Source buffer step size (width of the buffer in bytes).

Description

This function evaluates the sum of absolute difference between the elements of a 4X4 block and the corresponding elements of a reference block. The integer result is stored in the location pointed to by pSAD.