DeinterlaceBlendGetSize

Calculates the size of an internal structure for DeinterlaceBlend function.

Syntax

IppStatus ippiDeinterlaceBlendGetSize_8u_C1(int* pStateSize);

IppStatus ippiDeinterlaceBlendGetSize_8u_C2(int* pSpecSize);

Parameters

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.

Description

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.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error.

ippStsNullPtrErr

Indicates an error condition when the specified pointer is NULL.

ippiDeinterlaceBlendGetSize_8u_C1 Usage Example

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;

ippiDeinterlaceBlendGetSize_8u_C2 Usage Example

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;

Submit feedback on this help topic

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