1*437bfbebSnyanmisaka /* 2*437bfbebSnyanmisaka * Copyright 2015 Rockchip Electronics Co. LTD 3*437bfbebSnyanmisaka * 4*437bfbebSnyanmisaka * Licensed under the Apache License, Version 2.0 (the "License"); 5*437bfbebSnyanmisaka * you may not use this file except in compliance with the License. 6*437bfbebSnyanmisaka * You may obtain a copy of the License at 7*437bfbebSnyanmisaka * 8*437bfbebSnyanmisaka * http://www.apache.org/licenses/LICENSE-2.0 9*437bfbebSnyanmisaka * 10*437bfbebSnyanmisaka * Unless required by applicable law or agreed to in writing, software 11*437bfbebSnyanmisaka * distributed under the License is distributed on an "AS IS" BASIS, 12*437bfbebSnyanmisaka * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*437bfbebSnyanmisaka * See the License for the specific language governing permissions and 14*437bfbebSnyanmisaka * limitations under the License. 15*437bfbebSnyanmisaka */ 16*437bfbebSnyanmisaka 17*437bfbebSnyanmisaka #ifndef __H264D_API_H__ 18*437bfbebSnyanmisaka #define __H264D_API_H__ 19*437bfbebSnyanmisaka 20*437bfbebSnyanmisaka #include "parser_api.h" 21*437bfbebSnyanmisaka 22*437bfbebSnyanmisaka typedef enum mpp_decmtd_type { 23*437bfbebSnyanmisaka MPP_DEC_NULL = 0, 24*437bfbebSnyanmisaka MPP_DEC_BY_SLICE = 0x1, 25*437bfbebSnyanmisaka MPP_DEC_BY_FRAME = 0x2, 26*437bfbebSnyanmisaka MPP_DEC_MAX, 27*437bfbebSnyanmisaka } MppDecMtd_type; 28*437bfbebSnyanmisaka 29*437bfbebSnyanmisaka 30*437bfbebSnyanmisaka #ifdef __cplusplus 31*437bfbebSnyanmisaka extern "C" { 32*437bfbebSnyanmisaka #endif 33*437bfbebSnyanmisaka 34*437bfbebSnyanmisaka extern const ParserApi api_h264d_parser; 35*437bfbebSnyanmisaka 36*437bfbebSnyanmisaka MPP_RET h264d_init (void *decoder, ParserCfg *cfg); 37*437bfbebSnyanmisaka MPP_RET h264d_deinit (void *decoder); 38*437bfbebSnyanmisaka MPP_RET h264d_reset (void *decoder); 39*437bfbebSnyanmisaka MPP_RET h264d_flush (void *decoder); 40*437bfbebSnyanmisaka MPP_RET h264d_control(void *decoder, MpiCmd cmd_type, void *param); 41*437bfbebSnyanmisaka MPP_RET h264d_prepare(void *decoder, MppPacket pkt, HalDecTask *task); 42*437bfbebSnyanmisaka MPP_RET h264d_parse (void *decoder, HalDecTask *task); 43*437bfbebSnyanmisaka MPP_RET h264d_callback(void *decoder, void *err_info); 44*437bfbebSnyanmisaka 45*437bfbebSnyanmisaka #ifdef __cplusplus 46*437bfbebSnyanmisaka } 47*437bfbebSnyanmisaka #endif 48*437bfbebSnyanmisaka 49*437bfbebSnyanmisaka #endif /*__H264D_API_H__*/ 50