Bob Badour | f15d715 | 2021-02-12 15:26:01 -0800 | [diff] [blame^] | 1 | package { |
| 2 | default_applicable_licenses: ["external_libhevc_license"], |
| 3 | } |
| 4 | |
| 5 | // Added automatically by a large-scale-change |
| 6 | // See: http://go/android-license-faq |
| 7 | license { |
| 8 | name: "external_libhevc_license", |
| 9 | visibility: [":__subpackages__"], |
| 10 | license_kinds: [ |
| 11 | "SPDX-license-identifier-Apache-2.0", |
| 12 | ], |
| 13 | license_text: [ |
| 14 | "NOTICE", |
| 15 | ], |
| 16 | } |
| 17 | |
Colin Cross | 3f77436 | 2017-04-20 16:42:47 -0700 | [diff] [blame] | 18 | cc_library_static { |
| 19 | name: "libhevcdec", |
Jiyong Park | 0323e53 | 2017-08-07 13:15:09 +0900 | [diff] [blame] | 20 | vendor_available: true, |
Mitch Phillips | 84e41b1 | 2019-06-17 14:49:49 -0700 | [diff] [blame] | 21 | host_supported: true, |
Colin Cross | 3f77436 | 2017-04-20 16:42:47 -0700 | [diff] [blame] | 22 | |
| 23 | cflags: [ |
| 24 | "-D_LIB", |
| 25 | "-DMULTICORE", |
| 26 | "-fPIC", |
| 27 | |
| 28 | "-O3", |
| 29 | "-DANDROID", |
Chih-Hung Hsieh | 3dcae23 | 2017-09-28 14:24:46 -0700 | [diff] [blame] | 30 | "-Wall", |
| 31 | "-Werror", |
| 32 | // common/x86/ihevc_sao_ssse3_intr.c: implicit conversion from |
| 33 | // 'int' to 'char' changes value from 128 to -128 |
| 34 | "-Wno-error=constant-conversion", |
Manisha Jajoo | c57a803 | 2020-08-13 11:20:23 +0530 | [diff] [blame] | 35 | // #KEEP_THREAD_ACTIVE is experimental |
| 36 | "-UKEEP_THREADS_ACTIVE", |
Colin Cross | 3f77436 | 2017-04-20 16:42:47 -0700 | [diff] [blame] | 37 | ], |
| 38 | |
| 39 | export_include_dirs: [ |
| 40 | "decoder", |
| 41 | "common", |
| 42 | ], |
| 43 | |
| 44 | srcs: [ |
| 45 | "common/ihevc_quant_tables.c", |
| 46 | "common/ihevc_inter_pred_filters.c", |
| 47 | "common/ihevc_weighted_pred.c", |
| 48 | "common/ihevc_padding.c", |
| 49 | "common/ihevc_deblk_edge_filter.c", |
| 50 | "common/ihevc_deblk_tables.c", |
| 51 | "common/ihevc_cabac_tables.c", |
| 52 | "common/ihevc_common_tables.c", |
| 53 | "common/ihevc_intra_pred_filters.c", |
| 54 | "common/ihevc_chroma_intra_pred_filters.c", |
| 55 | "common/ihevc_mem_fns.c", |
| 56 | "common/ihevc_sao.c", |
| 57 | "common/ihevc_trans_tables.c", |
| 58 | "common/ihevc_recon.c", |
| 59 | "common/ihevc_itrans.c", |
| 60 | "common/ihevc_itrans_recon.c", |
| 61 | "common/ihevc_iquant_recon.c", |
| 62 | "common/ihevc_iquant_itrans_recon.c", |
| 63 | "common/ihevc_itrans_recon_32x32.c", |
| 64 | "common/ihevc_itrans_recon_16x16.c", |
| 65 | "common/ihevc_itrans_recon_8x8.c", |
| 66 | "common/ihevc_chroma_itrans_recon.c", |
| 67 | "common/ihevc_chroma_iquant_recon.c", |
| 68 | "common/ihevc_chroma_iquant_itrans_recon.c", |
| 69 | "common/ihevc_chroma_recon.c", |
| 70 | "common/ihevc_chroma_itrans_recon_16x16.c", |
| 71 | "common/ihevc_chroma_itrans_recon_8x8.c", |
| 72 | "common/ihevc_buf_mgr.c", |
| 73 | "common/ihevc_disp_mgr.c", |
| 74 | "common/ihevc_dpb_mgr.c", |
| 75 | "common/ithread.c", |
| 76 | "decoder/ihevcd_version.c", |
| 77 | "decoder/ihevcd_api.c", |
| 78 | "decoder/ihevcd_decode.c", |
| 79 | "decoder/ihevcd_nal.c", |
| 80 | "decoder/ihevcd_bitstream.c", |
| 81 | "decoder/ihevcd_parse_headers.c", |
| 82 | "decoder/ihevcd_parse_slice_header.c", |
| 83 | "decoder/ihevcd_parse_slice.c", |
| 84 | "decoder/ihevcd_parse_residual.c", |
| 85 | "decoder/ihevcd_cabac.c", |
| 86 | "decoder/ihevcd_intra_pred_mode_prediction.c", |
| 87 | "decoder/ihevcd_process_slice.c", |
| 88 | "decoder/ihevcd_utils.c", |
| 89 | "decoder/ihevcd_job_queue.c", |
| 90 | "decoder/ihevcd_ref_list.c", |
| 91 | "decoder/ihevcd_get_mv.c", |
| 92 | "decoder/ihevcd_mv_pred.c", |
| 93 | "decoder/ihevcd_mv_merge.c", |
| 94 | "decoder/ihevcd_iquant_itrans_recon_ctb.c", |
| 95 | "decoder/ihevcd_itrans_recon_dc.c", |
| 96 | "decoder/ihevcd_common_tables.c", |
| 97 | "decoder/ihevcd_boundary_strength.c", |
| 98 | "decoder/ihevcd_deblk.c", |
| 99 | "decoder/ihevcd_inter_pred.c", |
| 100 | "decoder/ihevcd_sao.c", |
| 101 | "decoder/ihevcd_ilf_padding.c", |
| 102 | "decoder/ihevcd_fmt_conv.c", |
| 103 | ], |
| 104 | |
| 105 | arch: { |
| 106 | arm64: { |
| 107 | cflags: [ |
| 108 | "-DARMV8", |
| 109 | "-DDISABLE_NEONINTR", |
| 110 | "-DARM", |
| 111 | "-DARMGCC", |
| 112 | |
| 113 | "-DDEFAULT_ARCH=D_ARCH_ARMV8_GENERIC", |
| 114 | ], |
| 115 | local_include_dirs: [ |
| 116 | "decoder/arm", |
| 117 | "common/arm", |
| 118 | "decoder/arm64", |
| 119 | "common/arm64", |
| 120 | ], |
| 121 | |
| 122 | srcs: [ |
| 123 | "decoder/arm/ihevcd_function_selector.c", |
| 124 | "decoder/arm/ihevcd_function_selector_noneon.c", |
| 125 | "decoder/arm64/ihevcd_function_selector_av8.c", |
| 126 | "common/arm/ihevc_intra_pred_filters_neon_intr.c", |
| 127 | "common/arm/ihevc_weighted_pred_neon_intr.c", |
| 128 | "common/arm64/ihevc_mem_fns.s", |
| 129 | "common/arm64/ihevc_itrans_recon_32x32.s", |
| 130 | "common/arm64/ihevc_weighted_pred_bi_default.s", |
| 131 | "common/arm64/ihevc_weighted_pred_bi.s", |
| 132 | "common/arm64/ihevc_weighted_pred_uni.s", |
| 133 | "common/arm64/ihevc_deblk_luma_horz.s", |
| 134 | "common/arm64/ihevc_deblk_luma_vert.s", |
| 135 | "common/arm64/ihevc_deblk_chroma_vert.s", |
| 136 | "common/arm64/ihevc_deblk_chroma_horz.s", |
| 137 | "common/arm64/ihevc_sao_band_offset_luma.s", |
| 138 | "common/arm64/ihevc_sao_band_offset_chroma.s", |
| 139 | "common/arm64/ihevc_sao_edge_offset_class0.s", |
| 140 | "common/arm64/ihevc_sao_edge_offset_class0_chroma.s", |
| 141 | "common/arm64/ihevc_sao_edge_offset_class1.s", |
| 142 | "common/arm64/ihevc_sao_edge_offset_class1_chroma.s", |
| 143 | "common/arm64/ihevc_sao_edge_offset_class2.s", |
| 144 | "common/arm64/ihevc_sao_edge_offset_class2_chroma.s", |
| 145 | "common/arm64/ihevc_sao_edge_offset_class3.s", |
| 146 | "common/arm64/ihevc_sao_edge_offset_class3_chroma.s", |
| 147 | "common/arm64/ihevc_inter_pred_luma_horz_w16out.s", |
| 148 | "common/arm64/ihevc_inter_pred_filters_luma_horz.s", |
| 149 | "common/arm64/ihevc_inter_pred_filters_luma_vert.s", |
| 150 | "common/arm64/ihevc_inter_pred_chroma_horz.s", |
| 151 | "common/arm64/ihevc_inter_pred_chroma_horz_w16out.s", |
| 152 | "common/arm64/ihevc_inter_pred_chroma_vert.s", |
| 153 | "common/arm64/ihevc_inter_pred_chroma_vert_w16out.s", |
| 154 | "common/arm64/ihevc_inter_pred_chroma_vert_w16inp.s", |
| 155 | "common/arm64/ihevc_inter_pred_chroma_vert_w16inp_w16out.s", |
| 156 | "common/arm64/ihevc_inter_pred_filters_luma_vert_w16inp.s", |
| 157 | "common/arm64/ihevc_inter_pred_filters_luma_vert_w16out.s", |
| 158 | "common/arm64/ihevc_inter_pred_luma_vert_w16inp_w16out.s", |
| 159 | "common/arm64/ihevc_inter_pred_luma_copy_w16out.s", |
| 160 | "common/arm64/ihevc_inter_pred_luma_copy.s", |
| 161 | "common/arm64/ihevc_inter_pred_chroma_copy.s", |
| 162 | "common/arm64/ihevc_inter_pred_chroma_copy_w16out.s", |
| 163 | "common/arm64/ihevc_itrans_recon_4x4_ttype1.s", |
| 164 | "common/arm64/ihevc_itrans_recon_4x4.s", |
| 165 | "common/arm64/ihevc_itrans_recon_8x8.s", |
| 166 | "common/arm64/ihevc_itrans_recon_16x16.s", |
| 167 | "common/arm64/ihevc_intra_pred_chroma_planar.s", |
| 168 | "common/arm64/ihevc_intra_pred_chroma_dc.s", |
| 169 | "common/arm64/ihevc_intra_pred_chroma_horz.s", |
| 170 | "common/arm64/ihevc_intra_pred_chroma_ver.s", |
| 171 | "common/arm64/ihevc_intra_pred_chroma_mode2.s", |
| 172 | "common/arm64/ihevc_intra_pred_chroma_mode_18_34.s", |
| 173 | "common/arm64/ihevc_intra_pred_filters_chroma_mode_11_to_17.s", |
| 174 | "common/arm64/ihevc_intra_pred_filters_chroma_mode_19_to_25.s", |
| 175 | "common/arm64/ihevc_intra_pred_chroma_mode_3_to_9.s", |
| 176 | "common/arm64/ihevc_intra_pred_chroma_mode_27_to_33.s", |
| 177 | "common/arm64/ihevc_intra_pred_luma_planar.s", |
| 178 | "common/arm64/ihevc_intra_pred_luma_horz.s", |
| 179 | "common/arm64/ihevc_intra_pred_luma_mode2.s", |
| 180 | "common/arm64/ihevc_intra_pred_luma_mode_27_to_33.s", |
| 181 | "common/arm64/ihevc_intra_pred_luma_mode_18_34.s", |
| 182 | "common/arm64/ihevc_intra_pred_luma_vert.s", |
| 183 | "common/arm64/ihevc_intra_pred_luma_dc.s", |
| 184 | "common/arm64/ihevc_intra_pred_filters_luma_mode_11_to_17.s", |
| 185 | "common/arm64/ihevc_intra_pred_filters_luma_mode_19_to_25.s", |
| 186 | "common/arm64/ihevc_intra_pred_luma_mode_3_to_9.s", |
| 187 | "common/arm64/ihevc_padding.s", |
| 188 | "decoder/arm64/ihevcd_itrans_recon_dc_luma.s", |
| 189 | "decoder/arm64/ihevcd_itrans_recon_dc_chroma.s", |
| 190 | "decoder/arm64/ihevcd_fmt_conv_420sp_to_420p.s", |
| 191 | "decoder/arm64/ihevcd_fmt_conv_420sp_to_420sp.s", |
| 192 | "decoder/arm64/ihevcd_fmt_conv_420sp_to_rgba8888.s", |
| 193 | ], |
| 194 | }, |
| 195 | |
| 196 | arm: { |
| 197 | local_include_dirs: [ |
| 198 | "decoder/arm", |
| 199 | "common/arm", |
| 200 | ], |
| 201 | |
| 202 | srcs: [ |
| 203 | "decoder/arm/ihevcd_function_selector.c", |
| 204 | "decoder/arm/ihevcd_function_selector_noneon.c", |
| 205 | ], |
| 206 | |
| 207 | cflags: [ |
| 208 | "-DDISABLE_NEONINTR", |
| 209 | "-DARM", |
| 210 | "-DARMGCC", |
| 211 | "-fno-tree-vectorize", |
| 212 | |
| 213 | // These will be overriden by armv7_a_neon |
| 214 | "-DDISABLE_NEON", |
| 215 | "-DDEFAULT_ARCH=D_ARCH_ARM_NONEON", |
| 216 | ], |
| 217 | |
| 218 | instruction_set: "arm", |
| 219 | |
Isaac Chen | 36ff7b6 | 2017-09-12 16:58:19 +0800 | [diff] [blame] | 220 | neon: { |
Colin Cross | 3f77436 | 2017-04-20 16:42:47 -0700 | [diff] [blame] | 221 | srcs: [ |
| 222 | "decoder/arm/ihevcd_function_selector_a9q.c", |
| 223 | "common/arm/ihevc_intra_ref_substitution_a9q.c", |
| 224 | "common/arm/ihevc_intra_pred_filters_neon_intr.c", |
| 225 | "common/arm/ihevc_weighted_pred_neon_intr.c", |
| 226 | "common/arm/ihevc_mem_fns.s", |
| 227 | "common/arm/ihevc_itrans_recon_32x32.s", |
| 228 | "common/arm/ihevc_weighted_pred_bi_default.s", |
| 229 | "common/arm/ihevc_weighted_pred_bi.s", |
| 230 | "common/arm/ihevc_weighted_pred_uni.s", |
| 231 | "common/arm/ihevc_deblk_luma_horz.s", |
| 232 | "common/arm/ihevc_deblk_luma_vert.s", |
| 233 | "common/arm/ihevc_deblk_chroma_vert.s", |
| 234 | "common/arm/ihevc_deblk_chroma_horz.s", |
| 235 | "common/arm/ihevc_sao_band_offset_luma.s", |
| 236 | "common/arm/ihevc_sao_band_offset_chroma.s", |
| 237 | "common/arm/ihevc_sao_edge_offset_class0.s", |
| 238 | "common/arm/ihevc_sao_edge_offset_class0_chroma.s", |
| 239 | "common/arm/ihevc_sao_edge_offset_class1.s", |
| 240 | "common/arm/ihevc_sao_edge_offset_class1_chroma.s", |
| 241 | "common/arm/ihevc_sao_edge_offset_class2.s", |
| 242 | "common/arm/ihevc_sao_edge_offset_class2_chroma.s", |
| 243 | "common/arm/ihevc_sao_edge_offset_class3.s", |
| 244 | "common/arm/ihevc_sao_edge_offset_class3_chroma.s", |
| 245 | "common/arm/ihevc_inter_pred_luma_horz_w16out.s", |
| 246 | "common/arm/ihevc_inter_pred_filters_luma_horz.s", |
| 247 | "common/arm/ihevc_inter_pred_filters_luma_vert.s", |
| 248 | "common/arm/ihevc_inter_pred_chroma_horz.s", |
| 249 | "common/arm/ihevc_inter_pred_chroma_horz_w16out.s", |
| 250 | "common/arm/ihevc_inter_pred_chroma_vert.s", |
| 251 | "common/arm/ihevc_inter_pred_chroma_vert_w16out.s", |
| 252 | "common/arm/ihevc_inter_pred_chroma_vert_w16inp.s", |
| 253 | "common/arm/ihevc_inter_pred_chroma_vert_w16inp_w16out.s", |
| 254 | "common/arm/ihevc_inter_pred_filters_luma_vert_w16inp.s", |
| 255 | "common/arm/ihevc_inter_pred_luma_vert_w16inp_w16out.s", |
| 256 | "common/arm/ihevc_inter_pred_luma_copy_w16out.s", |
| 257 | "common/arm/ihevc_inter_pred_luma_copy.s", |
| 258 | "common/arm/ihevc_inter_pred_chroma_copy.s", |
| 259 | "common/arm/ihevc_inter_pred_chroma_copy_w16out.s", |
| 260 | "common/arm/ihevc_itrans_recon_4x4_ttype1.s", |
| 261 | "common/arm/ihevc_itrans_recon_4x4.s", |
| 262 | "common/arm/ihevc_itrans_recon_8x8.s", |
| 263 | "common/arm/ihevc_itrans_recon_16x16.s", |
| 264 | "common/arm/ihevc_intra_pred_chroma_planar.s", |
| 265 | "common/arm/ihevc_intra_pred_chroma_dc.s", |
| 266 | "common/arm/ihevc_intra_pred_chroma_horz.s", |
| 267 | "common/arm/ihevc_intra_pred_chroma_ver.s", |
| 268 | "common/arm/ihevc_intra_pred_chroma_mode2.s", |
| 269 | "common/arm/ihevc_intra_pred_chroma_mode_18_34.s", |
| 270 | "common/arm/ihevc_intra_pred_filters_chroma_mode_11_to_17.s", |
| 271 | "common/arm/ihevc_intra_pred_filters_chroma_mode_19_to_25.s", |
| 272 | "common/arm/ihevc_intra_pred_chroma_mode_3_to_9.s", |
| 273 | "common/arm/ihevc_intra_pred_chroma_mode_27_to_33.s", |
| 274 | "common/arm/ihevc_intra_pred_luma_planar.s", |
| 275 | "common/arm/ihevc_intra_pred_luma_horz.s", |
| 276 | "common/arm/ihevc_intra_pred_luma_mode2.s", |
| 277 | "common/arm/ihevc_intra_pred_luma_mode_27_to_33.s", |
| 278 | "common/arm/ihevc_intra_pred_luma_mode_18_34.s", |
| 279 | "common/arm/ihevc_intra_pred_luma_vert.s", |
| 280 | "common/arm/ihevc_intra_pred_luma_dc.s", |
| 281 | "common/arm/ihevc_intra_pred_filters_luma_mode_11_to_17.s", |
| 282 | "common/arm/ihevc_intra_pred_filters_luma_mode_19_to_25.s", |
| 283 | "common/arm/ihevc_intra_pred_luma_mode_3_to_9.s", |
| 284 | "common/arm/ihevc_padding.s", |
| 285 | "decoder/arm/ihevcd_itrans_recon_dc_luma.s", |
| 286 | "decoder/arm/ihevcd_itrans_recon_dc_chroma.s", |
| 287 | "decoder/arm/ihevcd_fmt_conv_420sp_to_420p.s", |
| 288 | "decoder/arm/ihevcd_fmt_conv_420sp_to_420sp.s", |
| 289 | "decoder/arm/ihevcd_fmt_conv_420sp_to_rgba8888.s", |
| 290 | ], |
| 291 | cflags: [ |
| 292 | "-UDISABLE_NEON", |
| 293 | "-UDEFAULT_ARCH", |
| 294 | "-DDEFAULT_ARCH=D_ARCH_ARM_A9Q", |
| 295 | ], |
| 296 | }, |
| 297 | }, |
| 298 | |
Colin Cross | 3f77436 | 2017-04-20 16:42:47 -0700 | [diff] [blame] | 299 | x86_64: { |
| 300 | cflags: [ |
| 301 | "-DX86", |
| 302 | "-DDISABLE_AVX2", |
| 303 | "-msse4.2", |
| 304 | "-mno-avx", |
| 305 | "-DDEFAULT_ARCH=D_ARCH_X86_SSE42", |
| 306 | ], |
| 307 | |
| 308 | local_include_dirs: [ |
| 309 | "decoder/x86", |
| 310 | "common/x86", |
| 311 | ], |
| 312 | |
| 313 | srcs: [ |
| 314 | "decoder/x86/ihevcd_function_selector.c", |
| 315 | "decoder/x86/ihevcd_function_selector_generic.c", |
| 316 | "decoder/x86/ihevcd_function_selector_ssse3.c", |
| 317 | "decoder/x86/ihevcd_function_selector_sse42.c", |
| 318 | "common/x86/ihevc_inter_pred_filters_ssse3_intr.c", |
| 319 | "common/x86/ihevc_weighted_pred_ssse3_intr.c", |
| 320 | "common/x86/ihevc_intra_pred_filters_ssse3_intr.c", |
| 321 | "common/x86/ihevc_chroma_intra_pred_filters_ssse3_intr.c", |
| 322 | "common/x86/ihevc_itrans_recon_ssse3_intr.c", |
| 323 | "common/x86/ihevc_itrans_recon_16x16_ssse3_intr.c", |
| 324 | "common/x86/ihevc_itrans_recon_32x32_ssse3_intr.c", |
| 325 | "common/x86/ihevc_sao_ssse3_intr.c", |
| 326 | "common/x86/ihevc_deblk_ssse3_intr.c", |
| 327 | "common/x86/ihevc_padding_ssse3_intr.c", |
| 328 | "common/x86/ihevc_mem_fns_ssse3_intr.c", |
| 329 | "decoder/x86/ihevcd_fmt_conv_ssse3_intr.c", |
| 330 | "decoder/x86/ihevcd_it_rec_dc_ssse3_intr.c", |
| 331 | "common/x86/ihevc_inter_pred_filters_sse42_intr.c", |
| 332 | "common/x86/ihevc_weighted_pred_sse42_intr.c", |
| 333 | "common/x86/ihevc_intra_pred_filters_sse42_intr.c", |
| 334 | "common/x86/ihevc_chroma_intra_pred_filters_sse42_intr.c", |
| 335 | "common/x86/ihevc_itrans_recon_sse42_intr.c", |
| 336 | "common/x86/ihevc_16x16_itrans_recon_sse42_intr.c", |
| 337 | "common/x86/ihevc_32x32_itrans_recon_sse42_intr.c", |
| 338 | "decoder/x86/ihevcd_it_rec_dc_sse42_intr.c", |
| 339 | "common/x86/ihevc_tables_x86_intr.c", |
| 340 | ], |
| 341 | }, |
| 342 | |
| 343 | x86: { |
| 344 | cflags: [ |
| 345 | "-DX86", |
| 346 | "-DDISABLE_AVX2", |
| 347 | "-msse4.2", |
| 348 | "-mno-avx", |
| 349 | "-DDEFAULT_ARCH=D_ARCH_X86_SSE42", |
| 350 | ], |
| 351 | |
| 352 | local_include_dirs: [ |
| 353 | "decoder/x86", |
| 354 | "common/x86", |
| 355 | ], |
| 356 | |
| 357 | srcs: [ |
| 358 | "decoder/x86/ihevcd_function_selector.c", |
| 359 | "decoder/x86/ihevcd_function_selector_generic.c", |
| 360 | "decoder/x86/ihevcd_function_selector_ssse3.c", |
| 361 | "decoder/x86/ihevcd_function_selector_sse42.c", |
| 362 | "common/x86/ihevc_inter_pred_filters_ssse3_intr.c", |
| 363 | "common/x86/ihevc_weighted_pred_ssse3_intr.c", |
| 364 | "common/x86/ihevc_intra_pred_filters_ssse3_intr.c", |
| 365 | "common/x86/ihevc_chroma_intra_pred_filters_ssse3_intr.c", |
| 366 | "common/x86/ihevc_itrans_recon_ssse3_intr.c", |
| 367 | "common/x86/ihevc_itrans_recon_16x16_ssse3_intr.c", |
| 368 | "common/x86/ihevc_itrans_recon_32x32_ssse3_intr.c", |
| 369 | "common/x86/ihevc_sao_ssse3_intr.c", |
| 370 | "common/x86/ihevc_deblk_ssse3_intr.c", |
| 371 | "common/x86/ihevc_padding_ssse3_intr.c", |
| 372 | "common/x86/ihevc_mem_fns_ssse3_intr.c", |
| 373 | "decoder/x86/ihevcd_fmt_conv_ssse3_intr.c", |
| 374 | "decoder/x86/ihevcd_it_rec_dc_ssse3_intr.c", |
| 375 | "common/x86/ihevc_inter_pred_filters_sse42_intr.c", |
| 376 | "common/x86/ihevc_weighted_pred_sse42_intr.c", |
| 377 | "common/x86/ihevc_intra_pred_filters_sse42_intr.c", |
| 378 | "common/x86/ihevc_chroma_intra_pred_filters_sse42_intr.c", |
| 379 | "common/x86/ihevc_itrans_recon_sse42_intr.c", |
| 380 | "common/x86/ihevc_16x16_itrans_recon_sse42_intr.c", |
| 381 | "common/x86/ihevc_32x32_itrans_recon_sse42_intr.c", |
| 382 | "decoder/x86/ihevcd_it_rec_dc_sse42_intr.c", |
| 383 | "common/x86/ihevc_tables_x86_intr.c", |
| 384 | ], |
| 385 | }, |
| 386 | }, |
bohu | 174b57b | 2018-03-20 12:19:22 -0700 | [diff] [blame] | 387 | |
| 388 | sanitize: { |
Ivan Lozano | 11b93ed | 2018-07-10 12:01:23 -0700 | [diff] [blame] | 389 | integer_overflow: true, |
Ivan Lozano | b61b523 | 2018-10-04 11:00:20 -0700 | [diff] [blame] | 390 | misc_undefined: ["bounds"], |
Cindy Zhou | c90f5fa | 2021-01-11 19:02:24 +0000 | [diff] [blame] | 391 | // Enable CFI if this becomes a shared library. |
Cindy Zhou | 456708b | 2021-01-14 13:15:17 -0800 | [diff] [blame] | 392 | cfi: true, |
| 393 | config: { |
| 394 | cfi_assembly_support: true, |
| 395 | }, |
Pirama Arumuga Nainar | 10fa7ae | 2020-07-28 14:26:25 -0700 | [diff] [blame] | 396 | blocklist: "libhevc_blocklist.txt", |
bohu | 174b57b | 2018-03-20 12:19:22 -0700 | [diff] [blame] | 397 | }, |
Jooyung Han | ee37a53 | 2020-04-16 18:48:29 +0900 | [diff] [blame] | 398 | |
| 399 | apex_available: [ |
| 400 | "//apex_available:platform", |
| 401 | "com.android.media.swcodec", |
| 402 | ], |
| 403 | min_sdk_version: "29", |
Colin Cross | 3f77436 | 2017-04-20 16:42:47 -0700 | [diff] [blame] | 404 | } |
Ivan Lozano | 662b247 | 2018-07-16 12:39:37 -0700 | [diff] [blame] | 405 | |
| 406 | cc_test { |
| 407 | name: "hevcdec", |
Harish Mahendrakar | 9ae7f25 | 2019-08-15 17:53:12 -0700 | [diff] [blame] | 408 | host_supported: true, |
Ivan Lozano | 662b247 | 2018-07-16 12:39:37 -0700 | [diff] [blame] | 409 | cflags: [ |
| 410 | "-DPROFILE_ENABLE", |
| 411 | "-DARM", |
| 412 | "-fPIC", |
| 413 | "-DMD5_DISABLE", |
| 414 | "-Wall", |
| 415 | "-Werror", |
| 416 | ], |
Elliott Hughes | 1c6b54b | 2020-03-18 16:18:19 -0700 | [diff] [blame] | 417 | gtest: false, |
Ivan Lozano | 662b247 | 2018-07-16 12:39:37 -0700 | [diff] [blame] | 418 | srcs: ["test/decoder/main.c"], |
| 419 | static_libs: ["libhevcdec"], |
Harish Mahendrakar | 96bcc2c | 2019-09-09 10:27:12 -0700 | [diff] [blame] | 420 | target: { |
| 421 | darwin: { |
| 422 | enabled: false, |
| 423 | }, |
| 424 | }, |
Ivan Lozano | 662b247 | 2018-07-16 12:39:37 -0700 | [diff] [blame] | 425 | } |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 426 | |
| 427 | cc_library_static { |
| 428 | name: "libhevcenc", |
| 429 | vendor_available: true, |
Harish Mahendrakar | 0a59baa | 2019-09-05 11:26:19 -0700 | [diff] [blame] | 430 | host_supported: true, |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 431 | cflags: [ |
| 432 | "-DENABLE_MAIN_REXT_PROFILE", |
| 433 | "-fPIC", |
| 434 | "-O3", |
| 435 | "-Wall", |
| 436 | "-Wno-unused-variable", |
| 437 | "-Wno-unused-parameter", |
| 438 | "-Wno-switch", |
| 439 | ], |
| 440 | |
| 441 | export_include_dirs: [ |
| 442 | "encoder", |
| 443 | "common", |
| 444 | ], |
| 445 | |
| 446 | srcs: [ |
| 447 | "common/ihevc_cabac_tables.c", |
| 448 | "common/ihevc_chroma_intra_pred_filters.c", |
| 449 | "common/ihevc_chroma_itrans_recon.c", |
| 450 | "common/ihevc_chroma_itrans_recon_16x16.c", |
| 451 | "common/ihevc_chroma_itrans_recon_8x8.c", |
| 452 | "common/ihevc_common_tables.c", |
| 453 | "common/ihevc_deblk_edge_filter.c", |
| 454 | "common/ihevc_deblk_tables.c", |
| 455 | "common/ihevc_hbd_deblk_edge_filter.c", |
| 456 | "common/ihevc_inter_pred_filters.c", |
| 457 | "common/ihevc_intra_pred_filters.c", |
| 458 | "common/ihevc_iquant_recon.c", |
| 459 | "common/ihevc_itrans_recon.c", |
| 460 | "common/ihevc_itrans_recon_16x16.c", |
| 461 | "common/ihevc_itrans_recon_32x32.c", |
| 462 | "common/ihevc_itrans_recon_8x8.c", |
| 463 | "common/ihevc_mem_fns.c", |
| 464 | "common/ihevc_padding.c", |
| 465 | "common/ihevc_quant_iquant_ssd.c", |
| 466 | "common/ihevc_quant_tables.c", |
| 467 | "common/ihevc_resi_trans.c", |
| 468 | "common/ihevc_sao.c", |
| 469 | "common/ihevc_trans_tables.c", |
| 470 | "common/ihevc_weighted_pred.c", |
| 471 | "encoder/bit_allocation.c", |
| 472 | "encoder/cbr_buffer_control.c", |
| 473 | "encoder/common_rom.c", |
| 474 | "encoder/convert_float_to_fix.c", |
| 475 | "encoder/est_sad.c", |
| 476 | "encoder/fixed_point_error_bits.c", |
| 477 | "encoder/frame_info_collector.c", |
| 478 | "encoder/hme_coarse.c", |
| 479 | "encoder/hme_common_utils.c", |
| 480 | "encoder/hme_err_compute.c", |
| 481 | "encoder/hme_fullpel.c", |
| 482 | "encoder/hme_function_selector.c", |
| 483 | "encoder/hme_globals.c", |
| 484 | "encoder/hme_interface.c", |
| 485 | "encoder/hme_refine.c", |
| 486 | "encoder/hme_search_algo.c", |
| 487 | "encoder/hme_subpel.c", |
| 488 | "encoder/hme_utils.c", |
| 489 | "encoder/ihevce_bitstream.c", |
| 490 | "encoder/ihevce_bs_compute_ctb.c", |
| 491 | "encoder/ihevce_buffer_que.c", |
| 492 | "encoder/ihevce_cabac.c", |
| 493 | "encoder/ihevce_cabac_cu_pu.c", |
| 494 | "encoder/ihevce_cabac_rdo.c", |
| 495 | "encoder/ihevce_cabac_tu.c", |
| 496 | "encoder/ihevce_chroma_had_satd.c", |
| 497 | "encoder/ihevce_cmn_utils_instr_set_router.c", |
| 498 | "encoder/ihevce_coarse_me_pass.c", |
| 499 | "encoder/ihevce_common_utils.c", |
| 500 | "encoder/ihevce_deblk.c", |
| 501 | "encoder/ihevce_decomp_pre_intra_pass.c", |
| 502 | "encoder/ihevce_dep_mngr.c", |
| 503 | "encoder/ihevce_enc_cu_recursion.c", |
| 504 | "encoder/ihevce_enc_loop_inter_mode_sifter.c", |
| 505 | "encoder/ihevce_enc_loop_pass.c", |
| 506 | "encoder/ihevce_enc_loop_utils.c", |
| 507 | "encoder/ihevce_enc_sbh_funcs.c", |
| 508 | "encoder/ihevce_enc_subpel_gen.c", |
| 509 | "encoder/ihevce_encode_header.c", |
| 510 | "encoder/ihevce_encode_header_sei_vui.c", |
| 511 | "encoder/ihevce_entropy_cod.c", |
| 512 | "encoder/ihevce_entropy_interface.c", |
| 513 | "encoder/ihevce_error_check.c", |
| 514 | "encoder/ihevce_frame_process.c", |
| 515 | "encoder/ihevce_frame_process_utils.c", |
| 516 | "encoder/ihevce_function_selector.c", |
| 517 | "encoder/ihevce_global_tables.c", |
| 518 | "encoder/ihevce_had_satd.c", |
| 519 | "encoder/ihevce_hle_interface.c", |
| 520 | "encoder/ihevce_hle_q_func.c", |
| 521 | "encoder/ihevce_inter_pred.c", |
| 522 | "encoder/ihevce_ipe_instr_set_router.c", |
| 523 | "encoder/ihevce_ipe_pass.c", |
| 524 | "encoder/ihevce_lap_interface.c", |
| 525 | "encoder/ihevce_me_instr_set_router.c", |
| 526 | "encoder/ihevce_me_pass.c", |
| 527 | "encoder/ihevce_memory_init.c", |
| 528 | "encoder/ihevce_multi_thrd_funcs.c", |
| 529 | "encoder/ihevce_mv_pred.c", |
| 530 | "encoder/ihevce_mv_pred_merge.c", |
| 531 | "encoder/ihevce_nbr_avail.c", |
| 532 | "encoder/ihevce_plugin.c", |
| 533 | "encoder/ihevce_profile.c", |
| 534 | "encoder/ihevce_rc_interface.c", |
| 535 | "encoder/ihevce_recur_bracketing.c", |
| 536 | "encoder/ihevce_sao.c", |
| 537 | "encoder/ihevce_stasino_helpers.c", |
| 538 | "encoder/ihevce_sub_pic_rc.c", |
| 539 | "encoder/ihevce_sys_api.c", |
| 540 | "encoder/ihevce_tile_interface.c", |
| 541 | "encoder/ihevce_trace.c", |
| 542 | "encoder/ihevce_tu_tree_selector.c", |
| 543 | "encoder/init_qp.c", |
| 544 | "encoder/mb_model_based.c", |
| 545 | "encoder/osal.c", |
| 546 | "encoder/osal_cond_var.c", |
| 547 | "encoder/osal_error.c", |
| 548 | "encoder/osal_mutex.c", |
| 549 | "encoder/osal_semaphore.c", |
| 550 | "encoder/osal_thread.c", |
| 551 | "encoder/picture_type.c", |
| 552 | "encoder/rate_control_api.c", |
| 553 | "encoder/rc_rd_model.c", |
| 554 | "encoder/rc_rd_model_fix.c", |
| 555 | "encoder/rc_sad_acc.c", |
| 556 | "encoder/sqrt_interp.c", |
| 557 | "encoder/var_q_operator.c", |
| 558 | "encoder/vbr_storage_vbv.c", |
| 559 | "encoder/vbr_str_prms.c", |
| 560 | ], |
| 561 | |
| 562 | arch: { |
| 563 | arm64: { |
| 564 | |
| 565 | local_include_dirs: [ |
| 566 | "encoder/arm", |
| 567 | "common/arm", |
| 568 | "common/arm64", |
| 569 | ], |
| 570 | |
| 571 | srcs: [ |
| 572 | "encoder/arm/ihevce_coarse_layer_sad_neon.c", |
| 573 | "encoder/arm/ihevce_common_utils_neon.c", |
| 574 | "encoder/arm/ihevce_copy_neon.c", |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 575 | "encoder/arm/ihevce_had_compute_neon.c", |
| 576 | "encoder/arm/ihevce_hme_utils_neon.c", |
| 577 | "encoder/arm/ihevce_itrans_recon_neon.c", |
| 578 | "encoder/arm/ihevce_me_neon.c", |
| 579 | "encoder/arm/ihevce_sad_compute_neon.c", |
| 580 | "encoder/arm/ihevce_scale_by_2_neon.c", |
| 581 | "encoder/arm/ihevce_scan_coeffs_neon.c", |
| 582 | "encoder/arm/ihevce_ssd_and_sad_calculator_neon.c", |
| 583 | "encoder/arm/ihevce_ssd_calculator_neon.c", |
| 584 | "encoder/arm/ihevce_subpel_neon.c", |
| 585 | "common/arm/ihevc_resi_trans_neon.c", |
| 586 | "common/arm/ihevc_resi_trans_neon_32x32.c", |
| 587 | "common/arm/ihevc_quant_iquant_ssd_neon_intr.c", |
| 588 | "common/arm/ihevc_intra_pred_filters_neon_intr.c", |
| 589 | "common/arm/ihevc_weighted_pred_neon_intr.c", |
| 590 | "common/arm/ihevc_intra_ref_substitution_a9q.c", |
| 591 | "common/arm64/ihevc_deblk_chroma_horz.s", |
| 592 | "common/arm64/ihevc_deblk_chroma_vert.s", |
| 593 | "common/arm64/ihevc_deblk_luma_horz.s", |
| 594 | "common/arm64/ihevc_deblk_luma_vert.s", |
| 595 | "common/arm64/ihevc_inter_pred_chroma_copy.s", |
| 596 | "common/arm64/ihevc_inter_pred_chroma_copy_w16out.s", |
| 597 | "common/arm64/ihevc_inter_pred_chroma_horz.s", |
| 598 | "common/arm64/ihevc_inter_pred_chroma_horz_w16out.s", |
| 599 | "common/arm64/ihevc_inter_pred_chroma_vert.s", |
| 600 | "common/arm64/ihevc_inter_pred_chroma_vert_w16inp.s", |
| 601 | "common/arm64/ihevc_inter_pred_chroma_vert_w16inp_w16out.s", |
| 602 | "common/arm64/ihevc_inter_pred_chroma_vert_w16out.s", |
| 603 | "common/arm64/ihevc_inter_pred_filters_luma_horz.s", |
| 604 | "common/arm64/ihevc_inter_pred_filters_luma_vert.s", |
| 605 | "common/arm64/ihevc_inter_pred_filters_luma_vert_w16inp.s", |
| 606 | "common/arm64/ihevc_inter_pred_filters_luma_vert_w16out.s", |
| 607 | "common/arm64/ihevc_inter_pred_luma_copy.s", |
| 608 | "common/arm64/ihevc_inter_pred_luma_copy_w16out.s", |
| 609 | "common/arm64/ihevc_inter_pred_luma_horz_w16out.s", |
| 610 | "common/arm64/ihevc_inter_pred_luma_vert_w16inp_w16out.s", |
| 611 | "common/arm64/ihevc_intra_pred_chroma_dc.s", |
| 612 | "common/arm64/ihevc_intra_pred_chroma_horz.s", |
| 613 | "common/arm64/ihevc_intra_pred_chroma_mode2.s", |
| 614 | "common/arm64/ihevc_intra_pred_chroma_mode_18_34.s", |
| 615 | "common/arm64/ihevc_intra_pred_chroma_mode_27_to_33.s", |
| 616 | "common/arm64/ihevc_intra_pred_chroma_mode_3_to_9.s", |
| 617 | "common/arm64/ihevc_intra_pred_chroma_planar.s", |
| 618 | "common/arm64/ihevc_intra_pred_chroma_ver.s", |
| 619 | "common/arm64/ihevc_intra_pred_filters_chroma_mode_11_to_17.s", |
| 620 | "common/arm64/ihevc_intra_pred_filters_chroma_mode_19_to_25.s", |
| 621 | "common/arm64/ihevc_intra_pred_filters_luma_mode_11_to_17.s", |
| 622 | "common/arm64/ihevc_intra_pred_filters_luma_mode_19_to_25.s", |
| 623 | "common/arm64/ihevc_intra_pred_luma_dc.s", |
| 624 | "common/arm64/ihevc_intra_pred_luma_horz.s", |
| 625 | "common/arm64/ihevc_intra_pred_luma_mode2.s", |
| 626 | "common/arm64/ihevc_intra_pred_luma_mode_18_34.s", |
| 627 | "common/arm64/ihevc_intra_pred_luma_mode_27_to_33.s", |
| 628 | "common/arm64/ihevc_intra_pred_luma_mode_3_to_9.s", |
| 629 | "common/arm64/ihevc_intra_pred_luma_planar.s", |
| 630 | "common/arm64/ihevc_intra_pred_luma_vert.s", |
| 631 | "common/arm64/ihevc_itrans_recon_16x16.s", |
| 632 | "common/arm64/ihevc_itrans_recon_32x32.s", |
| 633 | "common/arm64/ihevc_itrans_recon_4x4.s", |
| 634 | "common/arm64/ihevc_itrans_recon_4x4_ttype1.s", |
| 635 | "common/arm64/ihevc_itrans_recon_8x8.s", |
| 636 | "common/arm64/ihevc_mem_fns.s", |
| 637 | "common/arm64/ihevc_padding.s", |
| 638 | "common/arm64/ihevc_sao_band_offset_chroma.s", |
| 639 | "common/arm64/ihevc_sao_band_offset_luma.s", |
| 640 | "common/arm64/ihevc_sao_edge_offset_class0.s", |
| 641 | "common/arm64/ihevc_sao_edge_offset_class0_chroma.s", |
| 642 | "common/arm64/ihevc_sao_edge_offset_class1.s", |
| 643 | "common/arm64/ihevc_sao_edge_offset_class1_chroma.s", |
| 644 | "common/arm64/ihevc_sao_edge_offset_class2.s", |
| 645 | "common/arm64/ihevc_sao_edge_offset_class2_chroma.s", |
| 646 | "common/arm64/ihevc_sao_edge_offset_class3.s", |
| 647 | "common/arm64/ihevc_sao_edge_offset_class3_chroma.s", |
| 648 | "common/arm64/ihevc_weighted_pred_bi.s", |
| 649 | "common/arm64/ihevc_weighted_pred_bi_default.s", |
| 650 | "common/arm64/ihevc_weighted_pred_uni.s", |
| 651 | ], |
| 652 | |
| 653 | cflags: [ |
Jooyung Han | ee37a53 | 2020-04-16 18:48:29 +0900 | [diff] [blame] | 654 | "-DENABLE_NEON", |
| 655 | "-DARMV8", |
| 656 | "-DARM", |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 657 | ], |
| 658 | }, |
| 659 | |
| 660 | arm: { |
| 661 | local_include_dirs: [ |
| 662 | "encoder/arm", |
| 663 | "common/arm", |
| 664 | ], |
| 665 | |
| 666 | instruction_set: "arm", |
| 667 | |
| 668 | neon: { |
| 669 | srcs: [ |
| 670 | "encoder/arm/ihevce_coarse_layer_sad_neon.c", |
| 671 | "encoder/arm/ihevce_common_utils_neon.c", |
| 672 | "encoder/arm/ihevce_copy_neon.c", |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 673 | "encoder/arm/ihevce_had_compute_neon.c", |
| 674 | "encoder/arm/ihevce_hme_utils_neon.c", |
| 675 | "encoder/arm/ihevce_itrans_recon_neon.c", |
| 676 | "encoder/arm/ihevce_me_neon.c", |
| 677 | "encoder/arm/ihevce_sad_compute_neon.c", |
| 678 | "encoder/arm/ihevce_scale_by_2_neon.c", |
| 679 | "encoder/arm/ihevce_scan_coeffs_neon.c", |
| 680 | "encoder/arm/ihevce_ssd_and_sad_calculator_neon.c", |
| 681 | "encoder/arm/ihevce_ssd_calculator_neon.c", |
| 682 | "encoder/arm/ihevce_subpel_neon.c", |
| 683 | "common/arm/ihevc_resi_trans_neon.c", |
| 684 | "common/arm/ihevc_resi_trans_neon_32x32.c", |
| 685 | "common/arm/ihevc_quant_iquant_ssd_neon_intr.c", |
| 686 | "common/arm/ihevc_intra_pred_filters_neon_intr.c", |
| 687 | "common/arm/ihevc_weighted_pred_neon_intr.c", |
| 688 | "common/arm/ihevc_intra_ref_substitution_a9q.c", |
| 689 | "common/arm/ihevc_deblk_chroma_horz.s", |
| 690 | "common/arm/ihevc_deblk_chroma_vert.s", |
| 691 | "common/arm/ihevc_deblk_luma_horz.s", |
| 692 | "common/arm/ihevc_deblk_luma_vert.s", |
| 693 | "common/arm/ihevc_inter_pred_chroma_copy.s", |
| 694 | "common/arm/ihevc_inter_pred_chroma_copy_w16out.s", |
| 695 | "common/arm/ihevc_inter_pred_chroma_horz.s", |
| 696 | "common/arm/ihevc_inter_pred_chroma_horz_w16out.s", |
| 697 | "common/arm/ihevc_inter_pred_chroma_vert.s", |
| 698 | "common/arm/ihevc_inter_pred_chroma_vert_w16inp.s", |
| 699 | "common/arm/ihevc_inter_pred_chroma_vert_w16inp_w16out.s", |
| 700 | "common/arm/ihevc_inter_pred_chroma_vert_w16out.s", |
| 701 | "common/arm/ihevc_inter_pred_filters_luma_horz.s", |
| 702 | "common/arm/ihevc_inter_pred_filters_luma_vert.s", |
| 703 | "common/arm/ihevc_inter_pred_filters_luma_vert_w16inp.s", |
| 704 | "common/arm/ihevc_inter_pred_luma_copy.s", |
| 705 | "common/arm/ihevc_inter_pred_luma_copy_w16out.s", |
| 706 | "common/arm/ihevc_inter_pred_luma_horz_w16out.s", |
| 707 | "common/arm/ihevc_inter_pred_luma_vert_w16inp_w16out.s", |
| 708 | "common/arm/ihevc_intra_pred_chroma_dc.s", |
| 709 | "common/arm/ihevc_intra_pred_chroma_horz.s", |
| 710 | "common/arm/ihevc_intra_pred_chroma_mode2.s", |
| 711 | "common/arm/ihevc_intra_pred_chroma_mode_18_34.s", |
| 712 | "common/arm/ihevc_intra_pred_chroma_mode_27_to_33.s", |
| 713 | "common/arm/ihevc_intra_pred_chroma_mode_3_to_9.s", |
| 714 | "common/arm/ihevc_intra_pred_chroma_planar.s", |
| 715 | "common/arm/ihevc_intra_pred_chroma_ver.s", |
| 716 | "common/arm/ihevc_intra_pred_filters_chroma_mode_11_to_17.s", |
| 717 | "common/arm/ihevc_intra_pred_filters_chroma_mode_19_to_25.s", |
| 718 | "common/arm/ihevc_intra_pred_filters_luma_mode_11_to_17.s", |
| 719 | "common/arm/ihevc_intra_pred_filters_luma_mode_19_to_25.s", |
| 720 | "common/arm/ihevc_intra_pred_luma_dc.s", |
| 721 | "common/arm/ihevc_intra_pred_luma_horz.s", |
| 722 | "common/arm/ihevc_intra_pred_luma_mode2.s", |
| 723 | "common/arm/ihevc_intra_pred_luma_mode_18_34.s", |
| 724 | "common/arm/ihevc_intra_pred_luma_mode_27_to_33.s", |
| 725 | "common/arm/ihevc_intra_pred_luma_mode_3_to_9.s", |
| 726 | "common/arm/ihevc_intra_pred_luma_planar.s", |
| 727 | "common/arm/ihevc_intra_pred_luma_vert.s", |
| 728 | "common/arm/ihevc_itrans_recon_16x16.s", |
| 729 | "common/arm/ihevc_itrans_recon_32x32.s", |
| 730 | "common/arm/ihevc_itrans_recon_4x4.s", |
| 731 | "common/arm/ihevc_itrans_recon_4x4_ttype1.s", |
| 732 | "common/arm/ihevc_itrans_recon_8x8.s", |
| 733 | "common/arm/ihevc_resi_trans.s", |
| 734 | "common/arm/ihevc_resi_trans_32x32_a9q.s", |
| 735 | "common/arm/ihevc_mem_fns.s", |
| 736 | "common/arm/ihevc_padding.s", |
| 737 | "common/arm/ihevc_sao_band_offset_chroma.s", |
| 738 | "common/arm/ihevc_sao_band_offset_luma.s", |
| 739 | "common/arm/ihevc_sao_edge_offset_class0.s", |
| 740 | "common/arm/ihevc_sao_edge_offset_class0_chroma.s", |
| 741 | "common/arm/ihevc_sao_edge_offset_class1.s", |
| 742 | "common/arm/ihevc_sao_edge_offset_class1_chroma.s", |
| 743 | "common/arm/ihevc_sao_edge_offset_class2.s", |
| 744 | "common/arm/ihevc_sao_edge_offset_class2_chroma.s", |
| 745 | "common/arm/ihevc_sao_edge_offset_class3.s", |
| 746 | "common/arm/ihevc_sao_edge_offset_class3_chroma.s", |
| 747 | "common/arm/ihevc_weighted_pred_bi_default.s", |
| 748 | "common/arm/ihevc_weighted_pred_bi.s", |
| 749 | "common/arm/ihevc_weighted_pred_uni.s", |
| 750 | ], |
| 751 | |
| 752 | cflags: [ |
Jooyung Han | ee37a53 | 2020-04-16 18:48:29 +0900 | [diff] [blame] | 753 | "-DENABLE_NEON", |
| 754 | "-DARM", |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 755 | ], |
| 756 | }, |
| 757 | }, |
| 758 | |
| 759 | x86_64: { |
| 760 | local_include_dirs: [ |
| 761 | "common/x86", |
| 762 | ], |
| 763 | }, |
| 764 | |
| 765 | x86: { |
| 766 | local_include_dirs: [ |
| 767 | "common/x86", |
| 768 | ], |
Jooyung Han | ee37a53 | 2020-04-16 18:48:29 +0900 | [diff] [blame] | 769 | }, |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 770 | |
| 771 | }, |
| 772 | sanitize: { |
| 773 | integer_overflow: true, |
| 774 | misc_undefined: ["bounds"], |
Cindy Zhou | c90f5fa | 2021-01-11 19:02:24 +0000 | [diff] [blame] | 775 | // Enable CFI if this becomes a shared library. |
Cindy Zhou | 456708b | 2021-01-14 13:15:17 -0800 | [diff] [blame] | 776 | cfi: true, |
| 777 | config: { |
| 778 | cfi_assembly_support: true, |
| 779 | }, |
Pirama Arumuga Nainar | 10fa7ae | 2020-07-28 14:26:25 -0700 | [diff] [blame] | 780 | blocklist: "libhevc_blocklist.txt", |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 781 | }, |
Jooyung Han | ee37a53 | 2020-04-16 18:48:29 +0900 | [diff] [blame] | 782 | |
| 783 | apex_available: [ |
| 784 | "//apex_available:platform", |
| 785 | "com.android.media.swcodec", |
| 786 | ], |
| 787 | min_sdk_version: "29", |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 788 | } |
| 789 | |
| 790 | cc_test { |
| 791 | name: "hevcenc", |
Harish Mahendrakar | 0a59baa | 2019-09-05 11:26:19 -0700 | [diff] [blame] | 792 | host_supported: true, |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 793 | cflags: [ |
| 794 | "-DARM", |
| 795 | "-fPIC", |
| 796 | "-Wall", |
| 797 | "-Werror", |
| 798 | ], |
Elliott Hughes | 1c6b54b | 2020-03-18 16:18:19 -0700 | [diff] [blame] | 799 | gtest: false, |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 800 | srcs: ["test/encoder/main.c"], |
| 801 | static_libs: ["libhevcenc"], |
| 802 | sanitize: { |
| 803 | integer_overflow: true, |
| 804 | misc_undefined: ["bounds"], |
Ram Mohan | 69da5e2 | 2018-10-05 18:05:06 +0530 | [diff] [blame] | 805 | }, |
| 806 | } |