BiDirWeightBlock_H264, BidirWeight_H264

Average two blocks with two weights and two offsets.

Syntax

IppStatus ippiBiDirWeightBlock_H264_8u_P2P1R(const Ipp8u* pSrc1, const Ipp8u* pSrc2, Ipp8u* pDst, Ipp32u srcStep, Ipp32u dstStep, Ipp32u ulog2wd, Ipp32s iWeight1, Ipp32s iOffset1, Ipp32s iWeight2, Ipp32s iOffset2, IppiSize roi);

IppStatus ippiBiDirWeightBlock_H264_8u_C2R(IppVCWeightBlock_8u* pIppVCWeightBlock, const IppVCWeightParams_8u* pIppVCWeightParamP1, const IppVCWeightParams_8u* pIppVCWeightParamP2);

IppStatus ippiBidirWeight_H264_16u_P2P1R(const IppVCBidir_16u* bidirInfo, Ipp32u ulog2wd, Ipp32s iWeight1, Ipp32s iOffset1, Ipp32s iWeight2, Ipp32s iOffset2);

Parameters

pSrc1

Pointer to the first source.

pSrc2

Pointer to the second source.

pDst

Pointer to the result.

srcStep

Distance in items between starts of the consecutive lines in the source images.

dstStep

Distance in items between starts of the consecutive lines in the result image.

ulog2wd

log2 weight denominator.

iWeight1, iWeight2

Weights.

iOffset1, iOffset2

Offsets.

roi

Flag that specifies the region of interest (could be 16, 8, 4 or 2 in each dimension).

bidirInfo

Pointer to the IppVCBidir_16u structure.

pIppVCWeightBlock

Pointer to the structure that holds parameters for both source and destination chrominance combined planes.

pIppVCWeightParamP1

Pointer to the structure that holds parameters for both channels (U and V) of the first source plane.

pIppVCWeightParamP2

Pointer to the structure that holds parameters for both channels (U and V) of the second source plane.

Description

The functions ippiBiDirWeightBlock_H264_8u_P2P1R, ippiBiDirWeightBlock_H264_8u_C2R and ippiBidirWeight_H264_16u_P2P1R are declared in the ippvc.h file. These functions perform weighted prediction as specified in 8.4.2.3.2 of [ITUH264] when both predFlagL0 and predFlagL1 are equal to 1.

ippiBiDirWeightBlock_H264_8u_C2R is intended for a chrominance combined plane as in the N12 format.

The functions use the following formula:



where x [0,roi.width-1], y [0,roi.height-1],



The above formula corresponds to formula 8-272 of ITUH264.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error condition if at least one of the specified pointers is NULL.

ippStsStepErr

Indicates an error condition if srcStep value or dstStep value is less than roi.width.

ippStsSizeErr

Indicates an error condition if roi.width or roi.height value is not equal to 2 or 4 or 8 or 16.


Submit feedback on this help topic

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