Commit graph

67 commits

Author SHA1 Message Date
wrapper
b50449c104 2 2025-08-22 19:34:08 +07:00
wrapper
96be1d8dc9 downsample wip 2 2025-08-22 19:34:05 +07:00
wrapper
ce9ef54af5 add downsampled frequency scaling
Some checks are pending
CMake / build (push) Waiting to run
2025-08-22 16:06:28 +07:00
wrapper
ddcb11cbc8 fix mean division by 0
Some checks are pending
CMake / build (push) Waiting to run
2025-08-14 16:55:43 +07:00
wrapper
b828e89275 fix sbr setting
Some checks are pending
CMake / build (push) Waiting to run
2025-08-14 13:42:29 +07:00
wrapper
06aa3c1ba5 fix stop freq 2
Some checks are pending
CMake / build (push) Waiting to run
2025-08-14 10:58:44 +07:00
wrapper
68e3e867f8 fix stop freq
Some checks are pending
CMake / build (push) Waiting to run
2025-08-14 09:56:39 +07:00
wrapper
d3d43727c5 fix freq scaling again
Some checks failed
CMake / build (push) Has been cancelled
2025-08-13 07:17:36 +07:00
wrapper
80a67bda85 fix broken freq scaling
Some checks are pending
CMake / build (push) Waiting to run
2025-08-11 13:20:11 +07:00
wrapper
aadabc426a new eld bitrates
Some checks are pending
CMake / build (push) Waiting to run
2025-08-10 11:46:26 +07:00
wrapper
938e3892fb tns too
Some checks are pending
CMake / build (push) Waiting to run
2025-08-10 10:20:00 +07:00
wrapper
b21dc24ee5 size again
Some checks are pending
CMake / build (push) Waiting to run
2025-08-10 10:18:01 +07:00
wrapper
65ed01a2f4 update encode
Some checks are pending
CMake / build (push) Waiting to run
2025-08-10 10:15:44 +07:00
wrapper
3d995a0119 new encode tables
Some checks are pending
CMake / build (push) Waiting to run
2025-08-10 10:09:01 +07:00
wrapper
56a15e2211 disable sample rate limit
Some checks are pending
CMake / build (push) Waiting to run
2025-08-09 23:06:33 +07:00
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
wrapper
433d6c3eb6 fix ASC, fix full bandwidth for non USAC 2025-08-04 20:50:17 +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
akshayragir833
85cf44c90c
Added a fix in the FAC payload writing path (#91)
- The bit-writing logic had to be skipped when no bits were to be written. Updated the existing check for the same.
- This change also resolves an issue identified by oss-fuzz.

Bug: ossFuzz: 69103
Test: poc in bug
2024-05-24 17:15:08 +05:30
akshayragir833
141fde8854
Added a fix in the FAC payload writing path (#90)
- The bit-writing logic had to be skipped when no bits were to be written. Added the missing check for the same.
- This change also resolves an issue identified by oss-fuzz

Bug: ossFuzz: 68476
Test: poc in bug
2024-05-16 10:02:33 +02:00
Akshay Ragir
558d17493e Fix for the Use-of-uninitialized-value in iusace_fd_encode_fac
This change prevents the access of uninitialized variable in iusace_fd_encode_fac

Bug: ossFuzz: 68476
Test: poc in bug
2024-05-10 20:00:59 +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
da04d9de78
Encoder enhancements (#84)
Tests done: smoke test
2024-03-29 17:36:14 +05:30
Akshay Ragir
ed65992ff0 Fix for the Heap-buffer-overflow READ 1 in ixheaace_process
These changes handle the heap buffer overflow runtime error
by reducing the maximum number of loudnessInfo blocks supported.

Bug: ossFuzz: 67273
Test: poc in bug
2024-03-15 17:24:52 +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
d0702a8795
Aligned encoder with the latest changes in common directory (#78)
[x] Tests done: Smoke test
2024-01-22 18:19:16 +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
87f206b42d
Fix for the Use-of-uninitialized-value in ixheaace_frame_info_generator (#75)
These changes handle the runtime error reported by preventing the
inappropriate access of uninitialized member from a structure.

Bug: ossFuzz: 65422
Test: poc in bug
2024-01-02 19:07:05 +05:30
akshayragir833
1ce177ea0e
Encoder enhancements and minor bug fixes (#73)
Test done: Smoke test
2023-12-28 17:47:33 +05:30
akshayragir833
b5c3233a7a
Sanitization of configuration parameters (#69) 2023-12-11 17:37:51 +05:30
Akshay Ragir
86eb72d8eb Fix for the Global-buffer-overflow READ 4 in iaace_estimate_scfs_chan
These changes handle the 960 frame length
support for SBR and PS profiles.

Bug: ossFuzz: 64532
Test: poc in bug
2023-11-27 20:00:46 +05:30
Akshay Ragir
695799b8b6 Fix for the Null-dereference READ in ixheaace_write_bits
This change handles the error reported while processing
individual bitstream element in case of multi-channel streams.

Bug: ossFuzz: 64022
Test: poc in bug
2023-11-16 09:24:49 +05:30
Akshay Ragir
f29c4480db Code refactoring and minor bug fixes 2023-10-12 19:24:54 +05:30
Akshay Ragir
fcf3e9af7d Fix for the Divide-by-zero in iaace_adapt_thr_to_pe
These changes handle the divide-by-zero runtime error
reported when the active lines become zero in
quantization. The issue is reported with AAC and the
same changes are extended to USAC.

Bug: ossFuzz: 62977
Test: poc in bug
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
d8e8f980ae Fix for the Divide-by-zero in iaace_adjust_threshold
These changes handle the divide-by-zero runtime
error reported when the average bits become zero
in bit reservoir factor calculation.

Bug: ossFuzz: 62291
Test: poc in bug
2023-10-03 19:14:29 +05:30
Akshay Ragir
f247fa376e Fix for the Divide-by-zero in impd_drc_td_drc_gain_calc_init
These changes handle the divide-by-zero runtime error
reported when the successive drc gain coordinates
have same x coordinates.

Bug: ossFuzz:62237
Test: poc in bug
2023-10-03 19:14:29 +05:30
Akshay Ragir
56716426e2 Fix for the Global-buffer-overflow READ 4 in iusace_quantize_lines
These changes handle the global-buffer-overflow runtime error
reported when the tonal difference in the SBR module becomes
zero.

Bug: ossFuzz: 62261
Test: poc in bug
2023-10-03 19:14:29 +05:30
Akshay Ragir
c07f14410b Fix for build warnings on armv7 2023-09-14 18:12:59 +05:30
Akshay Ragir
1cc5b82096 Fix for the Floating-point-exception in ia_enhaacplus_enc_aac_core_encode
These changes handle the Floating-point-exception and
Null-dereference runtime errors reported when the
channel mask is zero. This is resolved by
initializing the channel mask with default value.

Bug: ossFuzz: 62238, 62235
Test: poc in bug
2023-09-14 18:12:59 +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
Akshay Ragir
62c8372f6b Fix for the Global-buffer-overflow READ 4 in iusace_estimate_scfs_chan
These changes handle the runtime error reported when the
value of scalefactor band form factor becomes zero. This
is resolved by adding bound checks for the gain value.
The issue is reported with USAC and the changes are
extended to AAC.

Bug: ossFuzz:61998
Test: poc in bug
2023-09-09 20:32:12 +05:30
Akshay Ragir
58acdb87a1 Fix for the Divide-by-zero in ixheaace_spectral_change
These changes handle the Divide-by-zero runtime error
reported when the energy value calculated is zero.
This is resolved by adding a non zero value to the
energy if it becomes zero.

Bug: ossFuzz: 61974
Test: poc in bug
2023-09-09 20:32:12 +05:30
Akshay Ragir
3428869827 Fix for the Null-dereference in ixheaace_extract_sbr_envelope
These changes handle the Null-dereference runtime error
reported for mono streams because of the inappropriate
access of uninitialized members from a structure.

Bug: ossFuzz: 61967
Test: poc in bug
2023-09-09 20:32:12 +05:30
Akshay Ragir
5ee1f8c848 Fix for the Divide-by-zero in ixheaace_sbr_missing_harmonics_detector_qmf
These chages handle the Divide-by-zero runtime error reported
when the value in tonal difference buffer becomes zero. This
is resolved by making it closer to zero instead of absolute
zero.

Bug: ossFuzz:61917
Test: poc in bug
2023-09-01 21:42:20 +05:30
Akshay Ragir
112fe0d0db Fix for the Global-buffer-overflow READ 4 in iusace_estimate_scfs_chan
These changes handle the Global-buffer-overflow runtime error
reported when the value of scalefactor band form factor
becomes zero. This is resolved by making it closer to zero
instead of absolute zero.

Bug: ossFuzz:61902
Test: poc in bug
2023-09-01 21:42:20 +05:30
Akshay Ragir
1ac90c8ac3 Fix for the Null-dereference in ixheaace_extract_sbr_envelope
These changes handle the Null-dereference runtime error
reported for mono streams because of inappropriate
access of uninitialized members from a structure.

Bug: ossFuzz:61903
Test: poc in bug
2023-09-01 21:42:20 +05:30