1 /* 2 * Copyright 2010 Rockchip Electronics S.LSI 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 __ENC_IMPL_H__ 18 #define __ENC_IMPL_H__ 19 20 #include "enc_impl_api.h" 21 22 typedef void* EncImpl; 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 MPP_RET enc_impl_init(EncImpl *impl, EncImplCfg *cfg); 29 MPP_RET enc_impl_deinit(EncImpl impl); 30 31 MPP_RET enc_impl_proc_cfg(EncImpl impl, MpiCmd cmd, void *para); 32 MPP_RET enc_impl_gen_hdr(EncImpl impl, MppPacket pkt); 33 34 MPP_RET enc_impl_start(EncImpl impl, HalEncTask *task); 35 MPP_RET enc_impl_proc_dpb(EncImpl impl, HalEncTask *task); 36 MPP_RET enc_impl_proc_hal(EncImpl impl, HalEncTask *task); 37 38 MPP_RET enc_impl_add_prefix(EncImpl impl, MppPacket pkt, RK_S32 *length, 39 RK_U8 uuid[16], const void *data, RK_S32 size); 40 41 MPP_RET enc_impl_sw_enc(EncImpl impl, HalEncTask *task); 42 43 #ifdef __cplusplus 44 } 45 #endif 46 47 #endif /*__MPP_ENC_IMPL_H__*/ 48