Commit graph

32 commits

Author SHA1 Message Date
akshayragir833
3dfa708b6e
Loudness leveling support for encoder and decoder (#99)
* Loudness leveling support for encoder and decoder

- Addition of loudness leveling support to encoder and
  decoder as per ISO/IEC 23003-4:2020/Amd.2:2023(E)

Testing:

Encoder: Smoke-test

Decoder: CTS and Conformance for x86, x86_64, armv7 and armv8 are
         passing

* Addressed review comments

* Addressed minor nits in documentation

---------

Co-authored-by: Akshay Ragir <100833@ittiam.com>
2025-07-28 17:40:45 +05:30
Elliott Hughes
226c46decb Remove useless neon: clause.
There hasn't been a non-neon platform build in years. Even the NDK hasn't supported non-neon for two years now.

Change-Id: I1d892e8bd97371a87771183655c1e5803a7e4400
2024-03-27 07:53:54 -07:00
akshayragir833
58381f7993
Audio pre-roll and loudness measurement support for USAC (#79)
Tests done: Smoke test
2024-03-06 15:13:14 +05:30
Harish Mahendrakar
10a262f43c Android.bp: Fix riscv64 build for decoder
- Add appropriate entries in Android.bp for riscv64 for decoder
- Add missing function in function_selector_generic.c
2023-10-25 21:48:43 -07:00
Nikhil Bhavikatti
797de4d1e9
USAC along with DRC support for libxaac encoder (#37) 2023-07-14 13:04:15 +05:30
bmdivya100655
b2e7201907
Encoder Enhancements (#34)
* Removed BUILD_ARM64 macro dependency
* Code refactoring
* Minor bug fixes

Co-authored-by: Divya B M <100655@ittiam.com>
2023-06-23 17:54:31 +05:30
bmdivya100655
088122e748
Combined Workspace for Encoder and Decoder (#33)
* Combined Workspace for Encoder and Decoder

* Addressed review comments and some minor edits

---------

Co-authored-by: Divya B M <100655@ittiam.com>
2023-05-22 20:11:52 +05:30
Nikhil Bhavikatti
ae104f0711 Restructuring of Decoder 2023-05-15 17:23:01 +05:30
Shashank Pathmudi
6ce7dc469c Error concealment support for xHEAAC decoder 2023-02-28 11:54:07 +05:30
Shashank Pathmudi
b9e8ada604 MPS support for xHEAAC decoder 2023-01-23 14:46:59 +05:30
Shashank Pathmudi
1a52942898 ESBR support for xHEAAC decoder 2022-12-27 09:59:42 +05:30
Sowmya Sree Reddy G
270720de5e ELDv2 support for EXHEAAC decoder 2022-10-10 10:15:43 +05:30
Sachin
4c72471cdb Changes to move output sample path from 16bit to 32 bit
AAC Core coder changes to take the output samples as 32 bit
and subject to peak limiter to avoid any clipping , at the
same time maintaining precision.

Bug: 175435457
Test: atest CtsMediaTestCases:DecoderTest
Test: atest CtsMediaTestCases:DecoderTestAacDrc
Test: atest CtsMediaTestCases:DecoderTestXheAac
Test: atest CtsMediaTestCases:DecoderTestAacFormat
Test: atest CtsMediaV2TestCases:CodecDecoderTest
2022-01-20 11:54:35 +05:30
Bob Badour
39d57e0f7b [LSC] Add LOCAL_LICENSE_KINDS to external/libxaac
Added SPDX-license-identifier-Apache-2.0 to:
  Android.bp
  fuzzer/Android.bp
  test/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I8f70bf816b41ad6d7bb4e473eaab96cc53dc4dde
2021-02-12 18:26:03 -08:00
Cindy Zhou
3ec6091ef8 Libxaac remove diag
Removing diag mode since it's only required for debugging purposes.
Bug: 158010610
Test: n/a

Change-Id: Ib2ec5c1a9d5bc8f5f4d48e40f1340f3e4814d451
2021-01-13 12:39:19 -08:00
Cindy Zhou
33385d02d2 Enable cfi for libxaac
Bug: 158010610
Bug: 173497308
Test: ran atest with DecoderConformanceTest, ImageReaderDecoderTest,
VideoDecoderPerfTest, VideoEncoderTest, avcdec, avcenc. Compare the
before and after enabling CFI results since there was a number of tests
that were initially failing.

Change-Id: I5f3990bf8542d7d7ab74cd2e031e8b2c5339c098
2020-12-21 05:25:42 -08:00
Xin Li
0312fc42cb Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I67a2f4be536fd22a9cc615088ce6368223311cf2
Change-Id: Iea753fbdfd54db2a0c5499ca481767192ccc55ca
2020-08-27 10:16:29 -07:00
Pirama Arumuga Nainar
6122d8fdb2 Use blocklist sub-property in sanitize
Update language to comply with Android’s inclusive language guidance

See https://source.android.com/setup/contribute/respectful-code for
reference

Bug: 161896447
Bug: 162245450

Test: build topic
Change-Id: I3bd7ee99914a13961e2afa7062a7019c24d01a46
2020-07-28 14:37:34 -07:00
Automerger Merge Worker
c7ab425cb7 Remove mips workarounds. am: a4398eccb8 am: 1e1ae5bdbf
Change-Id: I6a3885975c9d16551afe9a9bc4bf8c384e0fc741
2020-03-10 00:34:47 +00:00
Elliott Hughes
a4398eccb8 Remove mips workarounds.
Test: treehugger
Change-Id: I87fd4cb3f3eacfc028a5e878d6ddb9b92b86b676
2020-03-06 21:36:57 -08:00
Harish Mahendrakar
a191a89003 Add host support for libxaacdec am: 0f1f783387 am: 1f6b5fcb36 am: e058e150d3 am: c4ec773277
am: 8de14dd439

Change-Id: I3ccf27b52edf628ad681dc90ad5fbbdd243e0a65
2019-08-20 17:52:41 -07:00
Harish Mahendrakar
1f6b5fcb36 Add host support for libxaacdec
am: 0f1f783387

Change-Id: If3de9ecaa7c063644ef91096d123b2a99c491612
2019-08-20 16:54:05 -07:00
Harish Mahendrakar
0f1f783387 Add host support for libxaacdec
Test: Build libxaacdec on host
Bug: 139379050
Change-Id: I7b71c4c00839597c66d97077870d55beb55f34a1
2019-08-16 14:32:55 -07:00
Inseob Kim
56fcc2411e Remove vndk enabled: true am: b3e1c0361a am: 57b59b8ffc am: f664231af3 am: 6242959733
am: abfcf913f3

Change-Id: Icc0a985418c5b11776a875063eee45354f2c8ffd
2019-07-27 21:50:38 -07:00
Inseob Kim
57b59b8ffc Remove vndk enabled: true
am: b3e1c0361a

Change-Id: I8e44bd2dfcd9f21f6d6a5bf88bbb3849acd11f0e
2019-07-27 21:11:32 -07:00
Inseob Kim
b3e1c0361a Remove vndk enabled: true
vndk: {enabled: true} has no effect for static libraries.

Bug: 137178339
Test: m
Change-Id: Ia160eeb29c75a006eb8270c234b0517ce98c50f8
2019-07-11 13:05:47 +09:00
Rajat Kumar
7bee3616b8 Fix to remove unused codes from MPEG-D DRC.
MPEG-D DRC integrated with USAC does work only in
time domain.
Hence removed the above related code in this patch.

Bug:130262151
Test: atest android.media.cts.DecoderTestXheAac
Test: atest android.media.cts.DecoderTestAacDrc

Change-Id: Ib51ef29fb7a1fe7a09718d48e2c9e7cda268ae7b
2019-05-15 15:18:34 -07:00
Harish Mahendrakar
7cb3113e63 Added CFI blacklist to handle indirect calls to assembly functions
Since libxaac is a static library, both CFI and non-CFI variants will
be built and linked accordingly.
Hence it is not enabled explicitly now.
If it is used as a shared library in the future, we'll need to
explicitly re-enable CFI in the build file.

Bug: 117994055
Change-Id: If70531b14d418e458b8061889b337d4a4c99bda2
2019-01-18 16:35:54 -08:00
Ivan Lozano
1e4bbe9922 Enable bounds sanitization in libxaac.
Enables bounds sanitization in libxaac.

Bug: 117221610
Test: Device boots
Change-Id: I8fa29ef113907937751e21c46dfc9a7790d9205f
2018-12-05 18:37:51 -08:00
Harish Mahendrakar
8eb646f89b Collected Cleanups from Ittiam
Test: CTS android.media.cts.DecoderTest{AacDrc,XheAac}

Added __ARM_NEON__ check to generic function selector

Bug: 80432407
Change-Id: I66c7879fda1369da88ccaea5f8792ea54657cdaf

Added support to build for mips

Bug: 80432286
Change-Id: I908029bbaddd3c1fbc39be1192926b56d981576e

Add optimized versions for qmf_dec for armv7 and armv8

Separating common functions and platform specific functions
in ixheaacd_qmf_dec.c. Platform specific functions are moved
to qmf_dec in armv7, armv8 and generic folder.

Bug: 80431870
Change-Id: I860cb79a1870e228d2108b7915418e1c003cefc5

Fixes for crashes reported by Fuzzer tool

Bug: 109697676
Change-Id: I862fc054b99ee9d427d20596bc8d2e85522a7188
2018-06-05 13:04:22 -07:00
Ray Essick
4908247643 Sanitization fixes from new CTS tests
Updates from vendor to remedy issues exposed by new CTS tests

Bug: 77287124
Test: CTS DecoderTest, DecoderTest{AacDrc,XheAac}

@ Sanitizer fixes in libxaac

Fixes few integer overflow sanitizer errors
Progagate few errors
ENABLE_DRC macro is removed
AMMENDMENT1 macro is removed

Change-Id: Ic61163dfd6318bd4a00ed45e1295c819cb0f637b

@ Add support for audio pre-roll and DRC effect type

Also includes the following
MPEG-D DRC parameters related changes
USAC config switch changes
SBR config switch changes

Bug: 80133175
Change-Id: I0ab25641768cf523b66f7b0fcb4137429c1c4a77

@ Fixed trailing spaces

Change-Id: I32de0c9d3f7237e1fbf8dfef1cac485ef8458173

@ Replaced tabs

Change-Id: Ic741ee13d7b978b37edc27d087903caaa40b8d90
2018-05-25 11:35:52 -07:00
Ray Essick
51aa06e124 Bring xHE-AAC into pi-dev branch
bring the multi-commit integration from master to pi-dev

libxaac multi-arch cleanup

Change-Id: Ibcefa14f439e75f48a54955c9abf1a06c418e41e
Change-Id: Ia7a9b1e4de0add847c136f6f545b81dc8087521d
Change-Id: I12c3f8414dc9971017de223e88f292f8982a5c9b

Fix dependency error in Android.bp
Change-Id: Ic54f688736b3f2a70172676e4cee22aea4cbd705

Localized Android.bp
Change-Id: I68c4fc24fca279104c8ce2129fd4a3ed8d116b9b

Import xHE-AAC decoder from Ittiam
Change-Id: I3c8d124033f967b29d6e384cce5c843ee17a7bb1

Bug: 77287124
Test: build, cts DecoderTest
2018-05-17 14:36:48 -07:00