DiffPredRow_JPEG

Computes the differences between input sample and predictor for all lines but the first.

Syntax

IppStatus ippiDiffPredRow_JPEG_16s_C1(const Ipp16s* pSrc, const Ipp16s* pPrevRow, Ipp16s* pDst, int width, int predictor);

Parameters

pSrc

Pointer to the row of samples.

pPrevRow

Pointer to the adjacent row of samples just above the current row.

pDst

Pointer to the row of calculated differences.

width

Row width in elements; has always the same value for all rows.

predictor

Selected predictor, should be in the range [1, 7].

Description

The function ippiDiffPredRow_JPEG is declared in the ippj.h file. This function operates on all rows of samples except the first row at the start of the scan and at the beginning of the restart interval. It computes modulo 216 differences between input samples pSrc and the specified predictor predictor. The first sample of the row uses the sample from the row pPrevRow above as a predictor.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsSizeErr

Indicates an error condition if the width parameter has a negative value.

ippStsBadArgrErr

Indicates an error condition if predictor has an illegal value.

Submit feedback on this help topic

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