1 /****************************************************************************** 2 * 3 * Copyright (C) 2018 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 * \file ihevce_nbr_avail.h 23 * 24 * \brief 25 * This file contains function prototypes of neihbour acces related funcs 26 * 27 * \date 28 * 18/09/2012 29 * 30 * \author 31 * Ittiam 32 * 33 ****************************************************************************** 34 */ 35 36 #ifndef _IHEVCE_NBR_AVAIL_H_ 37 #define _IHEVCE_NBR_AVAIL_H_ 38 39 /*****************************************************************************/ 40 /* Constant Macros */ 41 /*****************************************************************************/ 42 43 /*****************************************************************************/ 44 /* Function Macros */ 45 /*****************************************************************************/ 46 47 /*****************************************************************************/ 48 /* Typedefs */ 49 /*****************************************************************************/ 50 51 /*****************************************************************************/ 52 /* Enums */ 53 /*****************************************************************************/ 54 55 /*****************************************************************************/ 56 /* Structure */ 57 /*****************************************************************************/ 58 59 /*****************************************************************************/ 60 /* Extern Function Declarations */ 61 /*****************************************************************************/ 62 63 void ihevce_set_ctb_nbr( 64 nbr_avail_flags_t *ps_nbr, 65 UWORD8 *pu1_nbr_map, 66 WORD32 nbr_map_strd, 67 WORD32 ctb_pos_x, 68 WORD32 ctb_pos_y, 69 frm_ctb_ctxt_t *ps_frm_ctb_prms); 70 71 WORD32 ihevce_get_nbr_intra( 72 nbr_avail_flags_t *ps_cu_nbr, 73 UWORD8 *pu1_nbr_map, 74 WORD32 nbr_map_strd, 75 WORD32 unit_4x4_pos_x, 76 WORD32 unit_4x4_pos_y, 77 WORD32 unit_4x4_size); 78 79 void ihevce_get_only_nbr_flag( 80 nbr_avail_flags_t *ps_cu_nbr, 81 UWORD8 *pu1_nbr_map, 82 WORD32 nbr_map_strd, 83 WORD32 unit_4x4_pos_x, 84 WORD32 unit_4x4_pos_y, 85 WORD32 unit_4x4_size_hz, 86 WORD32 unit_4x4_size_vt); 87 88 void ihevce_set_nbr_map( 89 UWORD8 *pu1_nbr_map, 90 WORD32 nbr_map_strd, 91 WORD32 unit_4x4_pos_x, 92 WORD32 unit_4x4_pos_y, 93 WORD32 unit_4x4_size, 94 WORD32 val); 95 void ihevce_set_inter_nbr_map( 96 UWORD8 *pu1_nbr_map, 97 WORD32 nbr_map_strd, 98 WORD32 unit_4x4_pos_x, 99 WORD32 unit_4x4_pos_y, 100 WORD32 unit_4x4_size_hz, 101 WORD32 unit_4x4_size_vt, 102 WORD32 val); 103 104 WORD32 ihevce_get_nbr_intra_mxn_tu( 105 UWORD8 *pu1_nbr_map, 106 WORD32 nbr_map_strd, 107 WORD32 unit_4x4_pos_x, 108 WORD32 unit_4x4_pos_y, 109 WORD32 unit_4x4_size_horz, 110 WORD32 unit_4x4_size_vert); 111 112 WORD32 ihevce_get_intra_chroma_tu_nbr( 113 WORD32 i4_luma_nbr_flags, WORD32 i4_subtu_idx, WORD32 i4_trans_size, UWORD8 u1_is_422); 114 115 #endif /* _IHEVCE_NBR_AVAIL_H_ */ 116