Calculates the size of an internal structure for DeinterlaceBlend function.
IppStatus ippiDeinterlaceBlendGetSize_8u_C1(int* pStateSize);
IppStatus ippiDeinterlaceBlendGetSize_8u_C2(int* pSpecSize);
pStateSize |
Pointer to the computed size in bytes of the IppiDeinterlaceBlendState_8u_C1 structure. |
pSpecSize |
Pointer to the computed size in bytes of the IppiDeinterlaceBlendSpec_8u_C2 structure. |
The functions DeinterlaceBlendGetSize_8u_C1 and DeinterlaceBlendGetSize_8u_C2 are declared in the ippvc.h file. The functions calculates the number of bytes needed to allocate for the structures IppiDeinterlaceBlendState_8u_C1 and IppiDeinterlaceBlendSpec_8u_C2 respectively.
ippStsNoErr |
Indicates no error. Any other value indicates an error. |
ippStsNullPtrErr |
Indicates an error condition when the specified pointer is NULL. |
Int stateSize; Ipp8u* pMemState; IppiDeinterlaceBlendState_8u_C1* pState=NULL; IppiSize planeSize={1664,1088]; /* size of the image plane in pixels, no dependency on stateSize */ Sts = ippiDeinterlaceBlendGetSize_8u_C1 (&stateSize); pMemState = malloc(stateSize); sts = ippiDeinterlaceBlendInit_8u_C1 (planeSize, blendThresh[2], blendConstants[2], &pState, pMemState); { ...pState processing... ... } free(pMemState); pState = NULL;
Int stateSize; Ipp8u* pMemState; IppiDeinterlaceBlendState_8u_C2* pSpec=NULL; IppiSize planeSize={1664,1088]; /* size of the image plane in pixels, no dependency on stateSize */ Sts = ippiDeinterlaceBlendGetSize_8u_C2 (&specSize); pMemState = malloc(specSize); sts = ippiDeinterlaceBlendInit_8u_C2 (planeSize, blendThresh[2], blendConstants[2], &pSpec, pMemState); { ...pSpec processing... ... } free(pMemState); pSpec = NULL;
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.