Audacity 3.2.0
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
16 : mFFmpeg(ffmpeg)
17{
18 mAVFrame = mFFmpeg.av_frame_alloc();
19}
20
22{
23 return mAVFrame;
24}
25
27{
28 return mAVFrame;
29}
30
32{
33 if (mAVFrame != nullptr)
35}
AVFrame * GetWrappedValue() noexcept
AVFrameWrapper(const AVFrameWrapper &)=delete
const FFmpegFunctions & mFFmpeg
AVFrame * mAVFrame
virtual ~AVFrameWrapper()
void(* av_frame_free)(AVFrame **frame)