Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89bb2c72 authored by Vivek Jadhav's avatar Vivek Jadhav Committed by Ray Essick
Browse files

C2SoftAacDec: Set component recommended buffer size adaptively

aac decoder software plugin is currently setting component recommended
input buffer size requirement as a constant. update this to set
according to decoder configuration params

- in adts mode, input buffer size requirements are set to max adts
  packet size
- in aac mode, input buffer size requirements are set according to
channel-count configuration

We preserve the former 8192 byte size as a floor, to ensure app compatibility. So the above changes will only increase the buffers (as required for a particular configuration).

Bug: 389149637
Test: atest MctsMediaV2TestCases -- --module-arg \
  MctsMediaV2TestCases:instrumentation-arg:media-type-sel:=aac
Test: atest MctsMediaDecoderTestCases:DecoderTest
Test: atest VtsHalMediaC2V1_0TargetAudioDecTest
Flag: EXEMPT bugfix

Change-Id: I47df4d7b10a2a56bdcf176b83d98e36a7332b2a2
parent b4b260a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment