Evaluate sum of squares, 16X16 block
SSE2
FwStatus | fwiSqrDiff16x16_8u32s | ( | const Fw8u * pSrc, Fw32s srcStep, const Fw8u * pRef, Fw32s refStep, Fw32s mcType, Fw32s * pSqrDiff ); |
mcType | Specifies the type of prediction used for motion compensation. | |
pRef | Pointer to a prefetch buffer which contains previously decoded bits. | |
pSqrDiff | Pointer to a sum of square differences between the current and reference blocks. | |
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). |
This function evaluates the sum of squares variance between all the elements of a 16X16 source block and the corresponding elements of a 16X16 reference block. Integer results are written to a location specified by pSqrDiff.
A compensation type for the reference block is specified by the mcType parameter.
When mcType = FWVC_MC_APX_FF, each element of the reference block is used.
When mcType = FWVC_MC_APX_FH or FWVC_MC_APX_HF, the average of two reference block elements is used.
When mcType = FWVC_MC_APX_HH, the average of four reference block elements is used.