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