diff options
author | Boyuan Yang <byang@debian.org> | 2021-11-07 08:50:20 -0500 |
---|---|---|
committer | Boyuan Yang <byang@debian.org> | 2021-11-07 08:50:20 -0500 |
commit | 513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44 (patch) | |
tree | 249280ac94eb2b871de89cd1b166fff4ee00ab09 /src/buffer_pool.h | |
parent | 3c21ceac2f6a5adfab07d3d458880561543d0a31 (diff) | |
parent | 320ef65362608ee1148c299d8d5d7618af34e470 (diff) | |
download | libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.tar.gz libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.tar.bz2 libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.zip |
Update upstream source from tag 'upstream/0.17.0'
Update to upstream version '0.17.0'
with Debian dir 5b612b6a2d67788b0c85bac59e50edc1545bfd7e
Diffstat (limited to 'src/buffer_pool.h')
-rw-r--r-- | src/buffer_pool.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/buffer_pool.h b/src/buffer_pool.h index f35a633..d9eba6d 100644 --- a/src/buffer_pool.h +++ b/src/buffer_pool.h @@ -17,12 +17,13 @@ #ifndef LIBGAV1_SRC_BUFFER_POOL_H_ #define LIBGAV1_SRC_BUFFER_POOL_H_ +#include <algorithm> #include <array> #include <cassert> #include <climits> #include <condition_variable> // NOLINT (unapproved c++11 header) #include <cstdint> -#include <cstring> +#include <memory> #include <mutex> // NOLINT (unapproved c++11 header) #include "src/dsp/common.h" @@ -52,7 +53,9 @@ enum FrameState : uint8_t { // A reference-counted frame buffer. Clients should access it via // RefCountedBufferPtr, which manages reference counting transparently. -class RefCountedBuffer { +// The alignment requirement is due to the SymbolDecoderContext member +// frame_context_. +class RefCountedBuffer : public MaxAlignedAllocable { public: // Not copyable or movable. RefCountedBuffer(const RefCountedBuffer&) = delete; |