History log of /frameworks/av/include/media/BufferProviders.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e053bfaaa6477016b935c98cacf0b297b5d3d6e1 10-Nov-2017 Kevin Rocard <krocard@google.com> libaudioprocessing: clamp application provided float audio

For security reason, float buffers provided by application must be
clamped to FLOAT_NOMINAL_RANGE_HEADROOM.
With the new all float pipeline, float are no longer clamped by their
conversion to fixed point.

This patch adds a float buffer provider that clamps float samples
as they are copied to audio pipeline.

Test: Play music, play video in chrome (opensles format float),
play float pcm audio file specially crafter with >> 1 samples.
Bug: 68099072
Change-Id: I220b436d9982bc43a75715a030efd0e6a0c79fa3
Signed-off-by: Kevin Rocard <krocard@google.com>
/frameworks/av/media/libmedia/include/media/BufferProviders.h
8253f44c3d0d8a7003dd2e6f728f9e3d63927727 18-Apr-2017 Steven Moreland <smoreland@google.com> Fix libmedia includes.

Test: works with BOARD_VNDK_VERSION := current
Bug: 33241851
Change-Id: Idb6319563dfe83807d32ee54eb2fe66346c9f54a
/frameworks/av/media/libmedia/include/media/BufferProviders.h