xref: /rockchip-linux_mpp/mpp/codec/dec/h264/h264d_parse.h (revision 437bfbeb9567cca9cd9080e3f6954aa9d6a94f18)
1 /*
2 *
3 * Copyright 2015 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 __H264D_PARSE_H__
19 #define __H264D_PARSE_H__
20 #include "rk_type.h"
21 #include "mpp_err.h"
22 
23 #include "h264d_global.h"
24 
25 
26 
27 #ifdef  __cplusplus
28 extern "C" {
29 #endif
30 
31 MPP_RET open_stream_file(H264dInputCtx_t *p_Inp, char *path);
32 MPP_RET fwrite_stream_to_file(H264dInputCtx_t *p_Inp, RK_U8 *pdata, RK_U32 len);
33 MPP_RET close_stream_file(H264dInputCtx_t *p_Inp);
34 MPP_RET parse_loop(H264_DecCtx_t *p_Dec);
35 MPP_RET parse_prepare(H264dInputCtx_t *p_Inp, H264dCurCtx_t *p_Cur);
36 MPP_RET parse_prepare_fast(H264dInputCtx_t *p_Inp, H264dCurCtx_t *p_Cur);
37 MPP_RET parse_prepare_avcC_header(H264dInputCtx_t *p_Inp, H264dCurCtx_t *p_Cur);
38 MPP_RET parse_prepare_avcC_data(H264dInputCtx_t *p_Inp, H264dCurCtx_t *p_Cur);
39 
40 #ifdef  __cplusplus
41 }
42 #endif
43 
44 
45 #endif /* __H264D_PARSE_H__ */
46