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 __AV1D_API_H__ 18 #define __AV1D_API_H__ 19 20 #include "parser_api.h" 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 extern const ParserApi api_av1d_parser; 27 28 MPP_RET av1d_init (void *decoder, ParserCfg *cfg); 29 MPP_RET av1d_deinit (void *decoder); 30 MPP_RET av1d_reset (void *decoder); 31 MPP_RET av1d_flush (void *decoder); 32 MPP_RET av1d_control(void *decoder, MpiCmd cmd_type, void *param); 33 MPP_RET av1d_prepare(void *decoder, MppPacket pkt, HalDecTask *task); 34 MPP_RET av1d_parse (void *decoder, HalDecTask *task); 35 MPP_RET av1d_callback(void *decoder, void *info); 36 37 #ifdef __cplusplus 38 } 39 #endif 40 41 #endif /* __AV1D_API_H__*/ 42