DeinterlaceBlend

Calculates output pixels as alpha blends of the results of two filters applied to input pixels.

Syntax

IppStatus ippiDeinterlaceBlend_8u_C1(const Ipp8u* pSrcPlane[3], int srcStep, Ipp8u* pDst, int dstStep, IppiSize planeSize, int topFirst, int topField, int copyField, IppiDeinterlaceBlendState_8u_C1* pState);

IppStatus ippiDeinterlaceBlend_8u_C2(const Ipp8u* pSrcPrev, int srcPrevStep, const Ipp8u* pSrcCur, int srcCurStep, const Ipp8u* pSrcNext, int srcNextStep, Ipp8u* pDst, int dstStep, IppiSize size, IppiFrameFieldType fieldFirst, IppiFrameFieldType fieldProcess, IppBool fieldCopy, IppiDeinterlaceBlendSpec_8u_C2* pSpec);

Parameters

pSrcPlane

Array of pointers to source images: previous, current, and next source plane pointers.

pSrcPrev

Pointer to the previous source images.

pSrcCur

Pointer to the current source images.

pSrcPlane

Pointer to the next source images.

srcStep

Distance in bytes between starts of the consecutive lines in the source image buffer.

srcPrevStep

Distance in bytes between starts of the consecutive lines in the buffer of the previous source image.

srcCurStep

Distance in bytes between starts of the consecutive lines in the buffer of the current source image.

srcNextStep

Distance in bytes between starts of the consecutive lines in the buffer of the next source image.

pDst

Pointer to the destination image.

dstStep

Distance in bytes between starts of the consecutive lines in the destination image buffer.

planeSize, size

Size of the source and destination image planes in pixels.

topFirst

Defines the field order for the video sequence; can be 0 - bottom field is the first field, 1 - top field is the first field.

topField

Defines the field to process; can be 0 - bottom field, 1 - top field.

copyField

Defines copying of unprocessed field from the source frame to the destination; can be 0 - the unprocessed field is not copied to the destination frame, 1 - the unprocessed field is copied from the source frame to the destination.

fieldFirst

Defines the field order for the video sequence; can be BOTTOM_FIELD - bottom field is the first field, TOP_FIELD - top field is the first field.

fieldProcess

Defines the field to process; can be BOTTOM_FIELD - bottom field, TOP_FIELD - top field.

fieldCopy

Defines copying of unprocessed field from the source frame to the destination; can be IppFalse - the unprocessed field is not copied to the destination frame, IppTrue - the unprocessed field is copied from the source frame to the destination.

pState

Pointer to the internal structure IppiDeinterlaceBlendState_8u_C1.

pSpec

Pointer to the internal structure IppiDeinterlaceBlendSpec_8u_C2.

Description

The functions ippiDeinterlaceBlend_8u_C1 and ippiDeinterlaceBlend_8u_C2 are declared in the ippvc.h file. The functions calculate each output pixel as an alpha blend of the results of two filters - EdgeDetect and Median 3 - applied to the input pixels. The blending coefficient alpha is determined by differences of the corresponding pixels in the previous, current, and subsequent source frames.

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.


Submit feedback on this help topic

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