summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Carlos Martinez Romero <carlosmr@google.com> 2023-10-03 21:03:47 +0000
committer Carlos Martinez Romero <carlosmr@google.com> 2023-10-16 17:47:39 +0000
commit89aab24732c006106e7fe200ed4c551ff3eaafd6 (patch)
treed461f77c32dbe6cbc7b13fc9d94f8f5e65313800 /libs/ultrahdr/jpegencoderhelper.cpp
parent53f8b579869acdce0f8a721a21f00eb65d9ca6b5 (diff)
libbufferstreams: Add Buffer, BufferPool and BufferOwner.
This change adds supoprt for a simple buffer pool. Buffer pools can be notified when a buffer is dropped, so the buffer can be provided by the pool again. We introduced the concept of a BufferOwner, which is generic and can be implemented by a client for their own custom buffer pools. Along the way we updated the Frame struct to use a Buffer instead of a AHardwareBuffer. Pair: jshargo Bug: 296450854, 296101127 Test: atest libbufferstreams-internal_test Change-Id: Ib7c1ba19f96d1deb3d329366aa9215ad89228f9e
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions