DeinterlaceBlendInitAlloc

Allocates and initializes internal structure for DeinterlaceBlend function.

Syntax

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);

Parameters

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.

Description

The functions ippiDeinterlaceBlendInitAlloc_8u_C1 and ippiDeinterlaceBlendInitAlloc_8u_C2 are declared in the ippvc.h file. The functions perform the following sequence of steps:

Return Values

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.

ippiDeinterlaceBlendInitAlloc_8u_C1 Usage Example

IppiDeinterlaceBlendSpec_8u_C1* pState=NULL;
IppiSize planeSize = {1664,1088};
		
sts = ippiDeinterlaceBlendInitAlloc_8u_C1 (planeSize, blendThresh[2], blendConstants[2],
                                           &pState);
{
...pState processing...
...
}
ippiDeinterlaceBlendFree_8u_C1(pState);

ippiDeinterlaceBlendInitAlloc_8u_C2 Usage Example

IppiDeinterlaceBlendSpec_8u_C2* pSpec=NULL;
IppiSize planeSize = {1664,1088};

sts = ippiDeinterlaceBlendInitAlloc_8u_C2 (planeSize, blendThresh[2], blendConstants[2],
                                           &pSpec);
{
...pSpec processing...
...
}
ippiDeinterlaceBlendFree_8u_C2(pSpec);

Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.