Commit graph

23 commits

Author SHA1 Message Date
Elliott Hughes
579f4d362b Remove mips workarounds.
Test: treehugger
Change-Id: Ibb8ca20ce42f8fa0435a7f1d7bb5e825d5d11156
2020-03-06 21:38:10 -08:00
Harish Mahendrakar
0a59baaeee encoder: Add host support
Test: Build libhevc on host
Bug: 139379050
Change-Id: Ie4698f91364a0ba2beea842cd9cc75ade41cd7e5
2019-09-20 22:02:37 +00:00
Harish Mahendrakar
96bcc2c3e0 Disable macOS build
There is no memalign on Darwin.
So disable the build for macOS till memalign is replaced with
an alternative.

Test: Review
Bug: 140696633

Change-Id: Icf36be19a8b6bd22cf2827e95d262020df5bdba0
2019-09-09 10:27:53 -07:00
Ray Essick
fa260baf7b Merge "Add host support to build hevcdec binary"
am: b534035e26

Change-Id: I67826b7d05e05b973ff88146187e17faa5d1b2fa
2019-08-20 16:16:04 -07:00
Harish Mahendrakar
9ae7f2575a Add host support to build hevcdec binary
Test: Build libhevc on host
Bug: 139379050
Change-Id: Ia125abda94a449c91a4611a141c0019b621b8da6
2019-08-16 01:20:16 +00:00
Mitch Phillips
02eefdc356 Add host support to libhevcdec. am: 84e41b12e7
am: 6d554d1db2

Change-Id: Id14b246eb462b4fda82b49c0710b824d4c9734e6
2019-06-20 20:59:46 -07:00
Mitch Phillips
84e41b12e7 Add host support to libhevcdec.
Adds host support to libhevcdec, which will allow us to fuzz this target
on host in the future.

Test: Build libhevc on host.
Bug: 133261679
Change-Id: I006b00f659c382bc996981d27bba67f086267af7
2019-06-17 14:49:49 -07:00
Ram Mohan
c0745f1209 libhevcenc: reduce min resolution from 320x240 to 2x2
Test: hevcenc -c vid_enc_cfg.txt
Bug: 129763447

Change-Id: If4dbaba1086694fd2030b05c232988d8c1807fea
2019-05-03 21:36:21 +00:00
Ram Mohan
69da5e22f6 libhevcenc: Initial commit
Test: hevcenc -c vid_enc_cfg.txt

Bug: 110456253
Test: CtsMediaTests/VideoEncoder
Change-Id: I9df8143709c3fe5d2c8398974a16529a3f8b8ebc
2019-02-18 07:43:11 -08:00
Ivan Lozano
e2edd95a40 Remove libhevc sanitization diagnostics.
Remove libhevc sanitization diagnostics.

Bug: 111555901
Test: mma -j
Change-Id: I4c5c00fd1548bc0fd6bb7c98032262c51345295d
2019-02-12 11:09:04 -08:00
Ivan Lozano
6599524021 Enforce ubsan sanitizers in libhevc.
Keep sanitizers in diagnostics mode but don't recover from them so we
get errors in tombstones.

Bug: 110791537
Test: mma -j
Change-Id: Id36356d8ed4cfc4913a2c9dc32f7ac7389fcaa6f
2018-12-18 10:17:49 -08:00
Ivan Lozano
b61b523c13 Enable bounds sanitization in libhevc.
Enables bounds sanitization in libhevc, initially with diagnostics.

Bug: 117221610
Test: Device boots
Change-Id: I84d8978b42eddb67462286bf004947b6db1acf90
2018-10-04 11:00:20 -07:00
Ivan Lozano
20a0df1a80 Don't explicitly enable CFI in libhevc.
Previously there was no other sanitization, so in order for the
blacklist to be picked up CFI had to be enabled. With integer_overflow
enabled, we no longer need it enabled explicitly in the build file.
Since libhevc is a static library, both CFI and non-CFI variants will
be built and linked accordingly.

If libhevc is used as a shared library in the future, we'll need to
explicitly re-enable CFI in the build file.

Bug: 63926619
Test: Library builds.
Change-Id: If852aa732d12f1176f57c3c9f7f4574d709c13ab
2018-07-17 09:49:44 -07:00
Ivan Lozano
11b93edeae Enable integer overflow sanitization in libhevc.
Enable integer overflow sanitization in libhevc, initially in
diagnostics mode.

Bug: 110791537
Test: CTS tests
Change-Id: Ib2979f76599a56f540e54d3377aeb0ddd71c2446
2018-07-17 09:45:49 -07:00
Ivan Lozano
37f2b87318 Build hevcdec with Soong instead of Make.
am: 662b247f65

Change-Id: I2aee7a803da2214f8c8cdcf3e589d0e8bf0c471c
2018-07-17 09:11:35 -07:00
Ivan Lozano
662b247f65 Build hevcdec with Soong instead of Make.
Converts the hevcdec test binary to use the Soong build system.

Bug: 110791537
Test: m -j48 hevcdec
Change-Id: I6caa029905da69bf902ddff7b6e91cf749a0fa35
2018-07-16 16:56:44 -07:00
bohu
174b57bf84 [cfi] Blacklist libhevc
BUG: 74612083

03-13 13:52:10.696  6245  6275 I         : external/libhevc/decoder/ihevcd_inter_pred.c:417:17: runtime error: control flow integrity check for type 'void (void *, void *, int, int, signed char *, int, int)' failed during indirect function call
03-13 13:52:10.696  6245  6275 I         :

<line 417>               func_ptr1(func_src, func_dst, func_src_strd, func_dst_strd,
                          func_coeff, func_ht, func_wd);

Change-Id: Ib2322047f4d33d33876725493022489d9cd6022c
2018-03-21 15:50:01 -07:00
Chih-Hung Hsieh
6cf5a8c462 Use -Werror in external/libhevc am: 3dcae23965 am: d6c8637b3e
am: 03db869df3

Change-Id: Ic04305a462c3734d8b50fc5aba41557131c3b276
2017-10-17 18:32:20 +00:00
Chih-Hung Hsieh
3dcae23965 Use -Werror in external/libhevc
* Keep constant-conversion warnings.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I4b956b73654029be940f911a4741be922fb3559b
2017-10-10 14:58:57 -07:00
Isaac Chen
931d4f75dc Enable 32-bit armv8 NEON for libhevc am: 36ff7b64f0 am: 7e0001f197
am: d2c5f474a9

Change-Id: I7d4d5062c038dfcd0d3c3288b9b8fd4f0c07a836
2017-09-14 06:02:42 +00:00
Isaac Chen
36ff7b64f0 Enable 32-bit armv8 NEON for libhevc
Since ARM neon instructions were only used on armv7-a-neon
architecture variant, the default implementation for this
library doesn't use these advanced SIMD instructions.

Bug: 65568143
Test: lunch aosp_arm64; emulator # on oc-mr1-dev; boot to home screen
Change-Id: I7d3af3f9f2c99f313230f91e4f5e7797bf3db416
2017-09-12 16:58:19 +08:00
Jiyong Park
0323e53005 Make software codecs as VNDK
Software codecs and their dependencies are marked as VNDK (or just
vendor_available:true for static/header libs).

Bug: 37343418
Test: build the software codecs with BOARD_VNDK_VERSION=current
Change-Id: Ifadf1931df0125aace52354996f7f36fd0147bb4
2017-08-07 13:15:09 +09:00
Colin Cross
3f77436941 Convert external/libhevc to Android.bp
See build/soong/README.md for more information.

Test: m -j checkbuild
Change-Id: I6d36a69745c4bc0f5490f50517db0560d98e2b10
2017-05-01 15:05:35 -07:00