Allocates and initializes internal structure for DeinterlaceBlend function.
IppStatus ippiDeinterlaceBlendInitAlloc_8u_C1(IppiSize planeSize, int blendThresh[2], double blendConstants[2], IppiDeinterlaceBlendState_8u_C1** ppState);
IppStatus ippiDeinterlaceBlendInitAlloc_8u_C2(IppiSize size, int blendThresh[2], double blendConstants[2], IppiDeinterlaceBlendSpec_8u_C2** ppSpec);
planeSize, size |
Size of the image plane in pixels. |
blendThresh |
Array of two thresholds to determine alpha-coefficients; parameter values must be in the range [0,255]. Recommended values are 5, 9. |
blendConstants |
Array of two values for alpha-coefficients; parameter values must be in the range [0.0, 0.1]. Recommended values are 0.3, 0.7. The blendConstants parameter corresponds to blendThresh. |
ppState |
Pointer to pointer to an instance of the IppiDeinterlaceBlendState_8u_C1 structure containing internal table to store calculated alpha-coefficients. |
ppSpec |
Pointer to pointer to an instance of the IppiDeinterlaceBlendSpec_8u_C2 structure. |
The functions ippiDeinterlaceBlendInitAlloc_8u_C1 and ippiDeinterlaceBlendInitAlloc_8u_C2 are declared in the ippvc.h file. The functions perform the following sequence of steps:
Allocating memory for the internal structure IppiDeinterlaceBlendState_8u_C1 or IppiDeinterlaceBlendState_8u_C2 respectively
Setting a pointer **ppState/**ppSpec to the instance of the internal structure
Initilaizing the internal structure in accordance with the values of blendConstants[2] and blendThresh[2].
ippStsNoErr |
Indicates no error. Any other value indicates an error. |
ippStsNullPtrErr |
Indicates an error condition when the specified pointer is NULL. |
ippStsSizeErr |
Indicates an error condition if planeSize/size has a field with a value smaller than 3. |
ippStsMemAllocErr |
Indicates a memory allocation error. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.