Commit graph

52 commits

Author SHA1 Message Date
wrapper
17b657d7c3 32-bit floating point samples, adjustable bandwidth
Some checks failed
CMake / build (push) Has been cancelled
2025-08-04 20:52:12 +07:00
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
akshayragir833
7492f1f9ab
Enhancements for 4:1 eSBR configuration for USAC encoder (#94)
- Fix for the spectral misalignment issue observed between HF and LF for 4:1 eSBR
- Delay synchronization between SBR encoder and the core coder
- Delay handling for the decoded files using pre-roll frames on encoder
- Bug fixes

Testing: Smoke-test

Co-authored-by: Akshay Ragir <100833@ittiam.com>
2024-12-16 17:38:47 +05:30
Akshay Ragir
b9598d0c6c UniDrcv1 configuration support when DRC is enabled
Tests done: Smoke test
2024-05-07 13:20:31 +05:30
akshayragir833
58381f7993
Audio pre-roll and loudness measurement support for USAC (#79)
Tests done: Smoke test
2024-03-06 15:13:14 +05:30
akshayragir833
63d6a41982
USAC encoder enhancements and internal bug fixes (#76)
Tests done: Smoke test
2024-01-12 13:05:51 +05:30
akshayragir833
fbe3ab5037
Android build file update (#62) 2023-10-18 13:29:06 +05:30
Akshay Ragir
f29c4480db Code refactoring and minor bug fixes 2023-10-12 19:24:54 +05:30
Akshay Ragir
e8d026548e Fix for the Index-out-of-bounds in iusace_quantize_lines
These changes handle the index-out-of-bounds runtime error
reported when the bit consumption exceeds the bit reservoir
and global gain reaches the maximum value. The issue is
reported with USAC and the same changes are extended to AAC.

Bug: ossFuzz: 63019
Test: poc in bug
2023-10-12 19:24:54 +05:30
Akshay Ragir
aeaaaf4945 Minor bug fixes 2023-10-03 19:14:29 +05:30
Akshay Ragir
ccdced7d6a Fix for Divide-by-zero in impd_drc_stft_drc_gain_calc_init
These changes handle the Divide-by-zero runtime error reported
when the drc gain coordinates are identical or slope is
perpendicular to the gain value.

Bug: ossFuzz:61683
Test: poc in bug
2023-09-09 20:32:12 +05:30
Akshay Ragir
f39922ae99 Fix for the Global-buffer-overflow READ 4 in iaace_quantize_lines
These changes handle the runtime error reported when the gain
value exceeds the maximum supported value because of zero
spectrum. This is resolved by exiting the rate distortion loop
when zero spectrum is detected. The issue is reported with AAC
and the same changes are extended to USAC.

Bug: ossFuzz:61699
Test: poc in bug
2023-09-09 20:32:12 +05:30
Nikhil Bhavikatti
d5a175920e
DRC API and testbench updates (#41) 2023-08-04 19:29:27 +05:30
Nikhil Bhavikatti
917448ce5d
Encoder Fuzzer updates (#40) 2023-08-02 13:25:35 +05:30
Nikhil Bhavikatti
eec1f1c336
Encoder enhancements for DRC (#39) 2023-07-28 17:53:06 +05:30
Nikhil Bhavikatti
af3f10a9be
Encoder enhancements for USAC along with DRC (#38) 2023-07-21 19:29:46 +05:30
Nikhil Bhavikatti
797de4d1e9
USAC along with DRC support for libxaac encoder (#37) 2023-07-14 13:04:15 +05:30
akshayragir833
e78e1c43c3
Code refactoring and minor fixes (#36)
Co-authored-by: Akshay Ragir <100833@ittiam.com>
2023-07-07 16:15:45 +05:30
Akshay Ragir
174609e1ba libxaac documentation edits 2023-06-28 15:53:49 +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
2a43ff9ac7 ESBR command line switch support for xHEAAC decoder 2023-05-17 11:27:24 +05:30
Nikhil Bhavikatti
ae104f0711 Restructuring of Decoder 2023-05-15 17:23:01 +05:30
Harish Mahendrakar
0233db3f5e cleanup cmake files 2023-04-28 09:34:42 +05:30
Nikhil Bhavikatti
6a21d80d2d
Fix for crash observed with MSVS x64 build (#28)
* Fixes for runtime errors in error concealment module

* Fix for crash observed with MSVS x64 build

---------

Co-authored-by: Nikhil Bhavikatti <nikhilbhavikatti19@gmail.com>
2023-03-24 13:38:02 +05:30
Shashank Pathmudi
6ce7dc469c Error concealment support for xHEAAC decoder 2023-02-28 11:54:07 +05:30
Jyothi Swaroop Kumar Nallapaneni
03c53b0e08 CMake support for Platforms and Fuzzer 2023-02-09 12:22:18 +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
Nikhil Bhavikatti
42a0d6d68c Transform length 960 support for xHEAAC decoder 2022-11-29 11:47:23 +05:30
Nikhil Bhavikatti
c6a238f961 Fix for heap buffer overflow
DRC input and output buffer size updated based on maximum frame size,
PCM size and number of channels supported
2022-11-02 14:36:41 +05:30
Shashank Pathmudi
b7f88cbb46 DRC configuration updates for xHEAAC decoder 2022-11-02 14:35:50 +05:30
Sowmya Sree Reddy G
270720de5e ELDv2 support for EXHEAAC decoder 2022-10-10 10:15:43 +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
Harish Mahendrakar
facc3c62f3 xaacdec: Add host support am: f6ce5d9483 am: b31bec889e am: 2d6690e9d6
am: f063ce82e1

Change-Id: I94195a6d8f2919e68d2ae00d8545fbae5360e9a0
2019-09-11 09:47:03 -07:00
Harish Mahendrakar
f6ce5d9483 xaacdec: Add host support
Test: Build xaacdec on host
Bug: 139379050
Change-Id: I2cfb401b71240dd0966b80cc208e9a9798c8a51e
2019-09-05 11:27:29 -07:00
Ramesh Katuri
ce7b4e93ce Fix for correcting #include delimiters
This CL contains changes to make #include delimiters stying
consistent. For all system files inclusion we will use <> and
all user files we will use ""

Bug: 125443111
Test: compilation
Change-Id: Ie5f609b9bef8357877affb7f48d46df7c387d142
2019-08-26 13:35:44 -07:00
Rajat Kumar
61cdf5e6b5 Fix for global buffer overflow in error handler function
Added error handling for few unhandled error
returned from library to ixheaacd_error.c file.

Bug:133133640
Test: poc in bug

Change-Id: I584da0278ebcb04fc48538b5ae55e8ab2e65c684
2019-07-23 14:59:21 -07:00
Rajat Kumar
f6b2d77787 Fixes to incorporate latest conformance criteria
Bug:128648229
Test: atest android.media.cts.DecoderTestXheAac
Test: atest android.media.cts.DecoderTestAacDrc
Change-Id: Ic85bacc660c91096e29cd0cbe24323f4a6109c9a
2019-07-03 10:23:20 -07:00
Ray Essick
ff1452f96f Merge "Fix for out of bound write in xaacdec test bench" 2019-04-03 22:51:57 +00:00
TreeHugger Robot
c99fe20ffc Merge "Fix for testbench crash due to invalid file handle" 2019-04-03 00:36:27 +00:00
Ray Essick
360bd4fd75 Merge changes from topic "b124323156"
* changes:
  Initialize all allocated memory blocks to zero
  Update cfi blacklist to include few more assembly functions
  LDR changed to MOV instruction in armv8 and armv7 assemblies
2019-04-02 22:13:05 +00:00
Rajat Kumar
ce6d37faa2 Fix for testbench crash due to invalid file handle
Added checks to handle cases when input, output or
meta files are not passed in arguments of xaacdec.
Removed process command mode support and related
code from testbench.
Removed interface file read support and moved the
condition for drc to be on, if effect type or target
loudness is present in the command line arguments.

Bug:124627497
Test: poc
Change-Id: I97e216f5bc6ba6c52dcdc6438ee4152f0cb1682c
2019-03-30 17:08:55 -07:00
Rajat Kumar
7b43401d30 Initialize all allocated memory blocks to zero
Bug: 124323156
Test: poc
Change-Id: I69b035d1b6bab81244dde319d4fceb3f42837380
2019-03-27 15:49:39 -07:00
Rajat Kumar
18eeb62fd1 Fix for memory leak in meta read file.
meta_info->ia_mp4_stsz_size once allocated, was never freed,
hence giving memory leaks.
As a fix, added free when decoder de-initializes and when
this memory is reallocated.

Bug:124831933
Test: vendor
Change-Id: Ie9465496fca15501bc7dffc29a4f6eccf3880e6d
2019-03-27 15:37:32 -07:00
Rajat Kumar
7f66587c3b Fix for out of bound write in xaacdec test bench
Check has been added to avoid reading more than input buffer's size.

Bug:123907312
Test: vendor+poc
Change-Id: I53438028e920271d6966ba95dc4ed110c8ba8a10
2019-02-22 18:59:23 -08:00
Ramesh Katuri
fe1d70bf7e Cleanup memory allocation for DRC buffers
This fixes un intialized data access in loudness equalizer selection
Memory allocation and distribution inside DRC module was cleaned up.
Memory clean-up changes were done inside the library and in test bench.
Similar changes were done in OMX and C2 plug-in as well.

Bug: 115509210
Test: vendor+poc
Change-Id: I6a2bf5fe6eeecc5d0fec395af020aef8221a5f93
2019-02-04 12:12:13 -08:00
Ramesh Katuri
5148d0d287 Fix for heap buffer overflow in xaac decoder test bench
In Xaac decoder frame size information is obtained from  ia_mp4_stsz_size array
using frame counter. Due to some bad frames in the stream frame counter is not
getting updated properly which is causing heap buffer overflow.

As a fix

1. We added check on frame counter value before accessing  ia_mp4_stsz_size[]
2. Frame counter value is updated properly even if input frame is an erroneous
   frame

Bug:119005793
Test: vendor, poc
Change-Id: I402cf9b4d5641545fdaaf433f0a4a43c293e5dd9
2019-01-04 12:20:07 -08:00
Ramesh Katuri
9ccb84f227 Fix for ubsan add-overflow
Bug: 110468609
Test: poc before/after
Change-Id: Ic8698c6b4eb20a1204488fc1bdd14def7fa1d171
2018-07-03 13:30:00 -07:00
Harish Mahendrakar
dca80eae32 Changes based on review comments
Test: CTS android.media.cts.DecoderTest

Formatting changes in test folder

Bug: 80493357
Change-Id: Iaa9521521b2278b78ba789d026360a8b2eb9b54c

Changes based on the received review comments

Bug: 109679313
Change-Id: I9cd35ab4fb131f12a8970e772f464d44519496b9
2018-07-03 11:21:47 -07:00