forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-08-21 fc437ccf3419c424092701f3d883215fa4552a8b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*------------------------------------------------------------------------------
--                                                                            --
--       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 */