1 /* 2 * Copyright 2015 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 __VP9D_API_H__ 18 #define __VP9D_API_H__ 19 20 #include "parser_api.h" 21 22 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 extern const ParserApi api_vp9d_parser; 29 30 MPP_RET vp9d_init (void *decoder, ParserCfg *cfg); 31 MPP_RET vp9d_deinit (void *decoder); 32 MPP_RET vp9d_reset (void *decoder); 33 MPP_RET vp9d_flush (void *decoder); 34 MPP_RET vp9d_control(void *decoder, MpiCmd cmd_type, void *param); 35 MPP_RET vp9d_prepare(void *decoder, MppPacket pkt, HalDecTask *task); 36 MPP_RET vp9d_parse (void *decoder, HalDecTask *task); 37 MPP_RET vp9d_callback(void *decoder, void *info); 38 39 #ifdef __cplusplus 40 } 41 #endif 42 43 #endif /* __VP9D_API_H__*/ 44