CABACEncodeBin_H264

Encodes one bin with CABAC and writes it to the stream.

Syntax

IppStatus ippiCABACEncodeBin_H264(Ipp32u ctxIdx, Ipp32u code, IppvcCABACState* pCabacState);

Parameters

ctxIdx

Index of CABAC context to encode this bin; must be in range 0 to 459. See clause 9.3.3.1 of H.264 standard [ITUH264_07].

code

Value of bin to be encoded; must be either 0 or 1.

pCabacState

Pointer to CABAC state initialized with ippiCABACInit_H264 or ippiCABACInitAlloc_H264.

Description

The function ippiCABACEncodeBin_H264 is declared in the ippvc.h file. This function encodes one bin with CABAC and writes it to the stream.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when pCabacState is NULL.

ippStsOutOfRangeErr

The ctxIdx parameter is not within the range of [0; 459] or code is out of range [0; 1].

ippStsH264BufferFullErr

Not enough free space in the bitstream. This error code can be returned if less than 8 free bytes remain in the bitstream.


Submit feedback on this help topic

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