/*------------------------------------------------------------------------------
|
-- --
|
-- This software is confidential and proprietary and may be used --
|
-- only as expressly authorized by a licensing agreement from --
|
-- --
|
-- Rockchip Products . --
|
-- --
|
-- (C) COPYRIGHT 2014 ROCKCHIP PRODUCTS --
|
-- ALL RIGHTS RESERVED --
|
-- --
|
-- The entire notice above must be reproduced --
|
-- on all copies and should not be removed. --
|
-- --
|
--------------------------------------------------------------------------------
|
--
|
-- Description : Jpeg Decoder utils header file
|
--
|
--------------------------------------------------------------------------------
|
--
|
--
|
--
|
------------------------------------------------------------------------------*/
|
|
/*------------------------------------------------------------------------------
|
|
Table of contents
|
|
1. Include headers
|
2. Module defines
|
3. Data types
|
4. Function prototypes
|
|
------------------------------------------------------------------------------*/
|
|
#ifndef JPEGDECUTILS_H
|
#define JPEGDECUTILS_H
|
|
/*------------------------------------------------------------------------------
|
1. Include headers
|
------------------------------------------------------------------------------*/
|
#include "jpegdeccontainer.h"
|
#include "vpu_type.h"
|
|
/*------------------------------------------------------------------------------
|
2. Module defines
|
------------------------------------------------------------------------------*/
|
#define STRM_ERROR 0xFFFFFFFFU
|
|
#ifndef OK
|
#define OK 0
|
#endif
|
#ifndef NOK
|
#define NOK -1
|
#endif
|
#ifndef STATIC
|
#define STATIC static
|
#endif
|
|
/*------------------------------------------------------------------------------
|
3. Data types
|
------------------------------------------------------------------------------*/
|
|
/*------------------------------------------------------------------------------
|
4. Function prototypes
|
------------------------------------------------------------------------------*/
|
|
RK_U32 JpegDecGet2Bytes(StreamStorage * pStream);
|
RK_U32 JpegDecGetByte(StreamStorage * pStream);
|
RK_U32 JpegDecShowBits(StreamStorage * pStream);
|
RK_U32 JpegDecFlushBits(StreamStorage * pStream, RK_U32 bits);
|
|
#endif /* #ifdef MODULE_H */
|