Calculates SAD between field lines and SAD between frame lines of block 16x16.
IppStatus ippiFrameFieldSAD16x16_8u32s_C1R(const Ipp8u* pSrc, int srcStep, Ipp32s* pFrameSAD, Ipp32s* pFieldSAD);
IppStatus ippiFrameFieldSAD16x16_16s32s_C1R(const Ipp16s* pSrc, int srcStep, Ipp32s* pFrameSAD, Ipp32s* pFieldSAD);
pSrc |
Pointer to the 16x16 block. |
srcStep |
Distance in bytes between starts of the consecutive lines in the source image. |
pFrameSAD |
Pointer to the resulting SAD between frame lines of the block. |
pFieldSAD |
Pointer to the resulting SAD between field lines of the block. |
This function is declared in the ippvc.h header file. The functions ippiFrameFieldSAD16x16_8u32s_C1R and ippiFrameFieldSAD16x16_16s32s_C1R calculate SAD between field lines and between frame lines of 16x16 blocks. The functions are used for decision on DCT type (Frame or Field) in encoding process of interlaced video.
The computation formulas are as follows:
The functions ippiFrameFieldSAD16x16_8u32s_C1R and ippiFrameFieldSAD16x16_16s32s_C1R are used in the MPEG-4 encoder included into Intel IPP Samples. See introduction to Motion Estimation.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when at least one input pointer is NULL. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.