Audacity
3.2.0
modules
import-export
mod-ffmpeg
lib-ffmpeg-support
wrappers
AVFrameWrapper.cpp
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
5
AVFrameWrapper.cpp
6
7
Dmitry Vedenko
8
9
**********************************************************************/
10
11
#include "
AVFrameWrapper.h
"
12
13
#include "
FFmpegFunctions.h
"
14
15
#include "
AVChannelLayoutWrapper.h
"
16
17
AVFrameWrapper::AVFrameWrapper
(
const
FFmpegFunctions
& ffmpeg) noexcept
18
: mFFmpeg(ffmpeg)
19
{
20
mAVFrame = mFFmpeg.av_frame_alloc();
21
}
22
23
AVFrame
*
AVFrameWrapper::GetWrappedValue
() noexcept
24
{
25
return
mAVFrame
;
26
}
27
28
const
AVFrame
*
AVFrameWrapper::GetWrappedValue
() const noexcept
29
{
30
return
mAVFrame
;
31
}
32
33
AVFrameWrapper::~AVFrameWrapper
()
34
{
35
if
(
mAVFrame
!=
nullptr
)
36
mFFmpeg
.
av_frame_free
(&
mAVFrame
);
37
}
AVChannelLayoutWrapper.h
AVFrameWrapper.h
FFmpegFunctions.h
AVFrameWrapper::GetWrappedValue
AVFrame * GetWrappedValue() noexcept
Definition:
AVFrameWrapper.cpp:23
AVFrameWrapper::AVFrameWrapper
AVFrameWrapper(const AVFrameWrapper &)=delete
AVFrameWrapper::mFFmpeg
const FFmpegFunctions & mFFmpeg
Definition:
AVFrameWrapper.h:86
AVFrameWrapper::mAVFrame
AVFrame * mAVFrame
Definition:
AVFrameWrapper.h:87
AVFrameWrapper::~AVFrameWrapper
virtual ~AVFrameWrapper()
Definition:
AVFrameWrapper.cpp:33
AVFrame
Definition:
ffmpeg-2.3.6-single-header.h:1530
AVUtilFunctions::av_frame_free
void(* av_frame_free)(AVFrame **frame)
Definition:
AVUtilFunctions.h:36
FFmpegFunctions
Definition:
FFmpegFunctions.h:85
Generated by
1.9.3