QuantIntraInit_MPEG4, QuantInterInit_MPEG4

Initialize specification structures.

Syntax

IppStatus ippiQuantIntraInit_MPEG4(const Ipp8u* pQuantMatrix, IppiQuantIntraSpec_MPEG4* pSpec, int bitsPerPixel);

IppStatus ippiQuantInterInit_MPEG4(const Ipp8u* pQuantMatrix, IppiQuantInterSpec_MPEG4* pSpec, int bitsPerPixel);

Parameters

pQuantMatrix

Pointer to quantization matrix size of 64.

pSpec

Pointer to the initialized specification structure IppiQuantIntraSpec_MPEG4 or IppiQuantInterSpec_MPEG4.

bitsPerPixel

Video data precision used for saturation of the result. Valid within the range [4, 12].

Description

The functions ippiQuantIntraInit_MPEG4 and ippiQuantInterInit_MPEG4 are declared in the ippvc.h file. These functions initialize specification structure IppiQuantIntraSpec_MPEG4 or IppiQuantInterSpec_MPEG4. If pQuantMatrix is NULL, the second quantization method is used; otherwise, the first method is used.

These functions are used in the MPEG-4 encoder included into Intel IPP Samples. See introduction to MPEG-4.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error pointer pSpec is NULL.

ippStsOutOfRangeErr

Indicates an error condition when bitsPerPixel is out of the range [4, 12].


Submit feedback on this help topic

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