1 /****************************************************************************** 2 * 3 * Copyright (C) 2015 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ***************************************************************************** 18 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore 19 */ 20 21 /** 22 ******************************************************************************* 23 * @file 24 * ih264e_process.h 25 * 26 * @brief 27 * Contains functions for codec thread 28 * 29 * @author 30 * ittiam 31 * 32 * @remarks 33 * none 34 * 35 ******************************************************************************* 36 */ 37 38 #ifndef _IH264E_PROCESS_H_ 39 #define _IH264E_PROCESS_H_ 40 41 /*****************************************************************************/ 42 /* Function Declarations */ 43 /*****************************************************************************/ 44 45 IH264E_ERROR_T ih264e_generate_sps_pps(codec_t *ps_codec); 46 47 IH264E_ERROR_T ih264e_init_entropy_ctxt(process_ctxt_t *ps_proc); 48 49 IH264E_ERROR_T ih264e_entropy(process_ctxt_t *ps_proc); 50 51 IH264E_ERROR_T ih264e_pack_header_data(process_ctxt_t *ps_proc); 52 53 WORD32 ih264e_update_proc_ctxt(process_ctxt_t *ps_proc); 54 55 IH264E_ERROR_T ih264e_init_proc_ctxt(process_ctxt_t *ps_proc); 56 57 IH264E_ERROR_T ih264e_pad_recon_buffer(process_ctxt_t *ps_proc, 58 UWORD8 *pu1_curr_pic_luma, 59 UWORD8 *pu1_curr_pic_chroma, 60 WORD32 i4_mb_x, 61 WORD32 i4_mb_y, 62 WORD32 i4_pad_ht); 63 64 IH264E_ERROR_T ih264e_halfpel_generation(process_ctxt_t *ps_proc, 65 UWORD8 *pu1_curr_pic_luma, 66 WORD32 i4_mb_x, 67 WORD32 i4_mb_y); 68 69 WORD32 ih264e_process(process_ctxt_t *ps_proc); 70 71 WORD32 ih264e_update_rc_post_enc(codec_t *ps_codec, WORD32 ctxt_sel, WORD32 pic_cnt); 72 73 WORD32 ih264e_process_thread(void *pv_proc); 74 75 #endif /* _IH264E_PROCESS_H_ */ 76