Audacity 3.2.0
AVFifoBufferWrapper.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 AVFifoBufferWrapper.h
6
7 Dmitry Vedenko
8
9**********************************************************************/
10
11#pragma once
12
13struct FFmpegFunctions;
15
16class FFMPEG_SUPPORT_API AVFifoBufferWrapper
17{
18public:
21
24
26 const FFmpegFunctions& ffmpeg, int size) noexcept;
27
28 AVFifoBuffer* GetWrappedValue() noexcept;
29 const AVFifoBuffer* GetWrappedValue() const noexcept;
30
31 virtual ~AVFifoBufferWrapper();
32
33protected:
34 const FFmpegFunctions& mFFmpeg;
35 AVFifoBuffer* mAVFifoBuffer { nullptr };
36};
AVFifoBufferWrapper & operator=(AVFifoBufferWrapper &&)=delete
AVFifoBufferWrapper(AVFifoBufferWrapper &&)=delete
AVFifoBufferWrapper & operator=(AVFifoBufferWrapper &)=delete
AVFifoBufferWrapper(const AVFifoBufferWrapper &)=delete