1 /* 2 * Copyright 2021 Rockchip Electronics Co. LTD 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __AVS2D_PARSE_H__ 18 #define __AVS2D_PARSE_H__ 19 20 #include "avs2d_global.h" 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 MPP_RET avs2d_reset_parser(Avs2dCtx_t *p_dec); 27 28 MPP_RET avs2d_commit_syntaxs(Avs2dSyntax_t *syntax, HalDecTask *task); 29 MPP_RET avs2d_fill_parameters(Avs2dCtx_t *p_dec, Avs2dSyntax_t *syntax); 30 31 MPP_RET avs2d_parse_prepare_fast(Avs2dCtx_t *p_dec, MppPacket *pkt, HalDecTask *task); 32 MPP_RET avs2d_parse_prepare_split(Avs2dCtx_t *p_dec, MppPacket *pkt, HalDecTask *task); 33 MPP_RET avs2d_parse_stream(Avs2dCtx_t *p_dec, HalDecTask *task); 34 RK_S32 avs2d_split_frame(void *sc, const RK_U8 **poutbuf, RK_S32 *poutbuf_size, 35 const RK_U8 *buf, RK_U32 buf_size, RK_S64 pts, RK_S64 dts); 36 37 #ifdef __cplusplus 38 } 39 #endif 40 41 #endif /*__AVS2D_PARSE_H__*/ 42