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
Loading
Please register or sign in to comment