xref: /rockchip-linux_mpp/mpp/codec/dec/h263/h263d_parser.h (revision 437bfbeb9567cca9cd9080e3f6954aa9d6a94f18)
1 /*
2  *
3  * Copyright 2010 Rockchip Electronics Co. LTD
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef __H263D_PARSER_H__
19 #define __H263D_PARSER_H__
20 
21 #include "mpp_packet.h"
22 #include "mpp_buf_slot.h"
23 #include "hal_dec_task.h"
24 
25 #define H263D_DBG_FUNCTION          (0x00000001)
26 #define H263D_DBG_STARTCODE         (0x00000002)
27 #define H263D_DBG_BITS              (0x00000004)
28 #define H263D_DBG_STATUS            (0x00000008)
29 #define H263D_DBG_TIME              (0x00000100)
30 
31 typedef void* H263dParser;
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 MPP_RET mpp_h263_parser_init(H263dParser *ctx, MppBufSlots frame_slots);
38 MPP_RET mpp_h263_parser_deinit(H263dParser ctx);
39 MPP_RET mpp_h263_parser_flush(H263dParser ctx);
40 MPP_RET mpp_h263_parser_reset(H263dParser ctx);
41 
42 MPP_RET mpp_h263_parser_split(H263dParser ctx, MppPacket dst, MppPacket src);
43 MPP_RET mpp_h263_parser_decode(H263dParser ctx, MppPacket pkt);
44 MPP_RET mpp_h263_parser_setup_syntax(H263dParser ctx, MppSyntax *syntax);
45 MPP_RET mpp_h263_parser_setup_hal_output(H263dParser ctx, RK_S32 *output);
46 MPP_RET mpp_h263_parser_setup_refer(H263dParser ctx, RK_S32 *refer, RK_S32 max_ref);
47 MPP_RET mpp_h263_parser_update_dpb(H263dParser ctx);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif/* __H263D_PAESER_H__ */
54