omxVCM4P10_DecodeChromaDcCoeffsToPairCAVLC.c revision 21e525fdcc234c22d843a8bf1a4ec35c4b376314
1/* ----------------------------------------------------------------
2 *
3 *
4 * File Name:  omxVCM4P10_DecodeChromaDcCoeffsToPairCAVLC.c
5 * OpenMAX DL: v1.0.2
6 * Revision:   12290
7 * Date:       Wednesday, April 9, 2008
8 *
9 * (c) Copyright 2007-2008 ARM Limited. All Rights Reserved.
10 *
11 *
12 *
13 * H.264 decode coefficients module
14 *
15 */
16
17#include "omxtypes.h"
18#include "armOMX.h"
19#include "omxVC.h"
20
21#include "armCOMM.h"
22#include "armVC.h"
23
24/**
25 * Function: omxVCM4P10_DecodeChromaDcCoeffsToPairCAVLC
26 *
27 * Description:
28 * Performs CAVLC decoding and inverse raster scan for 2x2 block of
29 * ChromaDCLevel. The decoded coefficients in packed position-coefficient
30 * buffer are stored in increasing raster scan order, namely position order.
31 *
32 * Remarks:
33 *
34 * Parameters:
35 * [in]	ppBitStream		Double pointer to current byte in bit stream
36 *								buffer
37 * [in]	pOffset			Pointer to current bit position in the byte
38 *								pointed to by *ppBitStream
39 * [out]	ppBitStream		*ppBitStream is updated after each block is decoded
40 * [out]	pOffset			*pOffset is updated after each block is decoded
41 * [out]	pNumCoeff		Pointer to the number of nonzero coefficients
42 *								in this block
43 * [out]	ppPosCoefbuf	Double pointer to destination residual
44 *								coefficient-position pair buffer
45 *
46 * Return Value:
47 * Standard omxError result. See enumeration for possible result codes.
48 *
49 */
50
51OMXResult omxVCM4P10_DecodeChromaDcCoeffsToPairCAVLC (
52     const OMX_U8** ppBitStream,
53     OMX_S32* pOffset,
54     OMX_U8* pNumCoeff,
55     OMX_U8** ppPosCoefbuf
56 )
57
58{
59    return armVCM4P10_DecodeCoeffsToPair(ppBitStream, pOffset, pNumCoeff,
60                                         ppPosCoefbuf, 17, 4);
61
62}
63