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