Audacity
3.2.0
modules
import-export
mod-ffmpeg
lib-ffmpeg-support
wrappers
AVFifoBufferWrapper.cpp
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
5
AVFifoBufferWrapper.cpp
6
7
Dmitry Vedenko
8
9
**********************************************************************/
10
11
#include "
AVFifoBufferWrapper.h
"
12
13
#include "
FFmpegFunctions.h
"
14
15
16
AVFifoBufferWrapper::AVFifoBufferWrapper
(
17
const
FFmpegFunctions
& ffmpeg,
int
size
) noexcept
18
: mFFmpeg(ffmpeg)
19
{
20
mAVFifoBuffer = mFFmpeg.av_fifo_alloc(
size
);
21
}
22
23
AVFifoBuffer
*
AVFifoBufferWrapper::GetWrappedValue
() noexcept
24
{
25
return
mAVFifoBuffer
;
26
}
27
28
const
AVFifoBuffer
*
AVFifoBufferWrapper::GetWrappedValue
() const noexcept
29
{
30
return
mAVFifoBuffer
;
31
}
32
33
AVFifoBufferWrapper::~AVFifoBufferWrapper
()
34
{
35
mFFmpeg
.
av_fifo_free
(
mAVFifoBuffer
);
36
}
AVFifoBufferWrapper.h
FFmpegFunctions.h
AVFifoBufferWrapper::mFFmpeg
const FFmpegFunctions & mFFmpeg
Definition:
AVFifoBufferWrapper.h:34
AVFifoBufferWrapper::AVFifoBufferWrapper
AVFifoBufferWrapper(const AVFifoBufferWrapper &)=delete
AVFifoBufferWrapper::~AVFifoBufferWrapper
virtual ~AVFifoBufferWrapper()
Definition:
AVFifoBufferWrapper.cpp:33
AVFifoBufferWrapper::GetWrappedValue
AVFifoBuffer * GetWrappedValue() noexcept
Definition:
AVFifoBufferWrapper.cpp:23
AVFifoBufferWrapper::mAVFifoBuffer
AVFifoBuffer * mAVFifoBuffer
Definition:
AVFifoBufferWrapper.h:35
size
size_t size
Definition:
ffmpeg-2.3.6-single-header.h:412
AVFifoBuffer
Definition:
ffmpeg-2.3.6-single-header.h:4912
AVUtilFunctions::av_fifo_free
void(* av_fifo_free)(AVFifoBuffer *f)
Definition:
AVUtilFunctions.h:36
FFmpegFunctions
Definition:
FFmpegFunctions.h:85
Generated by
1.9.3