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 __H264D_API_H__ 18 #define __H264D_API_H__ 19 20 #include "parser_api.h" 21 22 typedef enum mpp_decmtd_type { 23 MPP_DEC_NULL = 0, 24 MPP_DEC_BY_SLICE = 0x1, 25 MPP_DEC_BY_FRAME = 0x2, 26 MPP_DEC_MAX, 27 } MppDecMtd_type; 28 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 extern const ParserApi api_h264d_parser; 35 36 MPP_RET h264d_init (void *decoder, ParserCfg *cfg); 37 MPP_RET h264d_deinit (void *decoder); 38 MPP_RET h264d_reset (void *decoder); 39 MPP_RET h264d_flush (void *decoder); 40 MPP_RET h264d_control(void *decoder, MpiCmd cmd_type, void *param); 41 MPP_RET h264d_prepare(void *decoder, MppPacket pkt, HalDecTask *task); 42 MPP_RET h264d_parse (void *decoder, HalDecTask *task); 43 MPP_RET h264d_callback(void *decoder, void *err_info); 44 45 #ifdef __cplusplus 46 } 47 #endif 48 49 #endif /*__H264D_API_H__*/ 50