1*495ae853SAndroid Build Coastguard Worker /****************************************************************************** 2*495ae853SAndroid Build Coastguard Worker * 3*495ae853SAndroid Build Coastguard Worker * Copyright (C) 2015 The Android Open Source Project 4*495ae853SAndroid Build Coastguard Worker * 5*495ae853SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 6*495ae853SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 7*495ae853SAndroid Build Coastguard Worker * You may obtain a copy of the License at: 8*495ae853SAndroid Build Coastguard Worker * 9*495ae853SAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 10*495ae853SAndroid Build Coastguard Worker * 11*495ae853SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 12*495ae853SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 13*495ae853SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14*495ae853SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 15*495ae853SAndroid Build Coastguard Worker * limitations under the License. 16*495ae853SAndroid Build Coastguard Worker * 17*495ae853SAndroid Build Coastguard Worker ***************************************************************************** 18*495ae853SAndroid Build Coastguard Worker * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore 19*495ae853SAndroid Build Coastguard Worker */ 20*495ae853SAndroid Build Coastguard Worker 21*495ae853SAndroid Build Coastguard Worker #ifndef _IH264D_INTER_PRED_H_ 22*495ae853SAndroid Build Coastguard Worker #define _IH264D_INTER_PRED_H_ 23*495ae853SAndroid Build Coastguard Worker 24*495ae853SAndroid Build Coastguard Worker /*! 25*495ae853SAndroid Build Coastguard Worker ************************************************************************** 26*495ae853SAndroid Build Coastguard Worker * \file ih264d_inter_pred.h 27*495ae853SAndroid Build Coastguard Worker * 28*495ae853SAndroid Build Coastguard Worker * \brief 29*495ae853SAndroid Build Coastguard Worker * Decalaration for routines defined in MorionCompensate.c 30*495ae853SAndroid Build Coastguard Worker * 31*495ae853SAndroid Build Coastguard Worker * Detailed_description 32*495ae853SAndroid Build Coastguard Worker * 33*495ae853SAndroid Build Coastguard Worker * \date 34*495ae853SAndroid Build Coastguard Worker * creation_date 35*495ae853SAndroid Build Coastguard Worker * 36*495ae853SAndroid Build Coastguard Worker * \author Arvind Raman 37*495ae853SAndroid Build Coastguard Worker ************************************************************************** 38*495ae853SAndroid Build Coastguard Worker */ 39*495ae853SAndroid Build Coastguard Worker 40*495ae853SAndroid Build Coastguard Worker #include "ih264d_structs.h" 41*495ae853SAndroid Build Coastguard Worker 42*495ae853SAndroid Build Coastguard Worker #define BUFFER_WIDTH 16 43*495ae853SAndroid Build Coastguard Worker /*! 44*495ae853SAndroid Build Coastguard Worker ************************************************************************** 45*495ae853SAndroid Build Coastguard Worker * \brief PRED_BUFFER_WIDTH / HEIGHT 46*495ae853SAndroid Build Coastguard Worker * 47*495ae853SAndroid Build Coastguard Worker * Width and height of the 16 bit (also reused a 2 8 bits buffers). The 48*495ae853SAndroid Build Coastguard Worker * required dimensions for these buffers are 21x21, however to align the 49*495ae853SAndroid Build Coastguard Worker * start of every row to a WORD aligned boundary the width has been increased 50*495ae853SAndroid Build Coastguard Worker * to 24. 51*495ae853SAndroid Build Coastguard Worker ************************************************************************** 52*495ae853SAndroid Build Coastguard Worker */ 53*495ae853SAndroid Build Coastguard Worker //#define PRED_BUFFER_WIDTH 24 54*495ae853SAndroid Build Coastguard Worker //#define PRED_BUFFER_HEIGHT 21 55*495ae853SAndroid Build Coastguard Worker #define PRED_BUFFER_WIDTH 24*2 56*495ae853SAndroid Build Coastguard Worker #define PRED_BUFFER_HEIGHT 24*2 57*495ae853SAndroid Build Coastguard Worker 58*495ae853SAndroid Build Coastguard Worker void ih264d_fill_pred_info(WORD16 *pi2_mv,WORD32 part_width,WORD32 part_height, WORD32 sub_mb_num, 59*495ae853SAndroid Build Coastguard Worker WORD32 pred_dir,pred_info_pkd_t *ps_pred_pkd,WORD8 i1_buf_id, 60*495ae853SAndroid Build Coastguard Worker WORD8 i1_ref_idx,UWORD32 *pu4_wt_offset,UWORD8 u1_pic_type); 61*495ae853SAndroid Build Coastguard Worker 62*495ae853SAndroid Build Coastguard Worker WORD32 ih264d_form_mb_part_info_bp(pred_info_pkd_t *ps_pred_pkd, 63*495ae853SAndroid Build Coastguard Worker dec_struct_t * ps_dec, 64*495ae853SAndroid Build Coastguard Worker UWORD16 u2_mb_x, 65*495ae853SAndroid Build Coastguard Worker UWORD16 u2_mb_y, 66*495ae853SAndroid Build Coastguard Worker WORD32 mb_index, 67*495ae853SAndroid Build Coastguard Worker dec_mb_info_t *ps_cur_mb_info); 68*495ae853SAndroid Build Coastguard Worker 69*495ae853SAndroid Build Coastguard Worker WORD32 ih264d_form_mb_part_info_mp(pred_info_pkd_t *ps_pred_pkd, 70*495ae853SAndroid Build Coastguard Worker dec_struct_t * ps_dec, 71*495ae853SAndroid Build Coastguard Worker UWORD16 u2_mb_x, 72*495ae853SAndroid Build Coastguard Worker UWORD16 u2_mb_y, 73*495ae853SAndroid Build Coastguard Worker WORD32 mb_index, 74*495ae853SAndroid Build Coastguard Worker dec_mb_info_t *ps_cur_mb_info); 75*495ae853SAndroid Build Coastguard Worker 76*495ae853SAndroid Build Coastguard Worker 77*495ae853SAndroid Build Coastguard Worker void ih264d_motion_compensate_bp(dec_struct_t * ps_dec, dec_mb_info_t *ps_cur_mb_info); 78*495ae853SAndroid Build Coastguard Worker void ih264d_motion_compensate_mp(dec_struct_t * ps_dec, dec_mb_info_t *ps_cur_mb_info); 79*495ae853SAndroid Build Coastguard Worker 80*495ae853SAndroid Build Coastguard Worker 81*495ae853SAndroid Build Coastguard Worker void TransferRefBuffs(dec_struct_t *ps_dec); 82*495ae853SAndroid Build Coastguard Worker 83*495ae853SAndroid Build Coastguard Worker void ih264d_multiplex_ref_data(dec_struct_t * ps_dec, 84*495ae853SAndroid Build Coastguard Worker pred_info_t *ps_pred, 85*495ae853SAndroid Build Coastguard Worker UWORD8* pu1_dest_y, 86*495ae853SAndroid Build Coastguard Worker UWORD8* pu1_dest_u, 87*495ae853SAndroid Build Coastguard Worker dec_mb_info_t *ps_cur_mb_info, 88*495ae853SAndroid Build Coastguard Worker UWORD16 u2_dest_wd_y, 89*495ae853SAndroid Build Coastguard Worker UWORD16 u2_dest_wd_uv, 90*495ae853SAndroid Build Coastguard Worker UWORD8 u1_dir); 91*495ae853SAndroid Build Coastguard Worker #endif /* _IH264D_INTER_PRED_H_ */ 92*495ae853SAndroid Build Coastguard Worker 93