QuantLuma8x8_H264

Performs quantization for 8X8 luma block coefficients including 8X8 transform normalization.

Syntax

IppStatus ippiQuantLuma8x8_H264_16s_C1(const Ipp16s* pSrc, Ipp16s* pDst, int Qp6, int Intra, const Ipp16s* pScanMatrix, const Ipp16s* pScaleLavels, int* pNumLevels, int* pLastCoeff);

Parameters

pSrc

Pointer to source luma block coefficients - array of size 64.

pDst

Pointer to the destination quantized block - array of size 64.

QP6

Quantization parameter divided by 6.

Intra

Flag that is equal to 1 if the slice is intra and 0 otherwise.

pScanMatrix

Pointer to a scan matrix for the coefficients in the block (array of size 64).

pScaleLevels

Pointer to a scale level matrix.

pNumLevels

Pointer to a value that contains:

  • a negative value of a number of non-zero elements in block after quantization (when the first quantized element in block is not equal to zero),

  • a number of non-zero elements in block after quantization (when the first quantized element in block is equal to zero).

pLastCoeff

Position of the last (in order of pScanMatrix) non-zero coefficient in block after quantization. This value is calculated by the function.

Description

The function ippiQuantLuma8x8_H264_16s_C1 is declared in the ippvc.h file. This function performs quantization of the coefficients of a luma block after 8x8 transform including transform normalization (see normAdjust8x8 matrix described in [ITUH264]).

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsQPErr

Indicates an error if Qp6 > 8 or Qp6 < 0.


Submit feedback on this help topic

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