MythTV  master
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
MythAVCopy Class Reference

MythAVCopy Copy AVFrame<->frame, performing the required conversion if any. More...

#include <mythavutil.h>

Collaboration diagram for MythAVCopy:
Collaboration graph
[legend]

Public Member Functions

 MythAVCopy (bool USWC=true)
 
virtual ~MythAVCopy ()
 
 MythAVCopy (const MythAVCopy &)=delete
 
MythAVCopyoperator= (const MythAVCopy &)=delete
 
int Copy (VideoFrame *dst, const VideoFrame *src)
 
int Copy (AVFrame *pic, const VideoFrame *frame, unsigned char *buffer=nullptr, AVPixelFormat fmt=AV_PIX_FMT_YUV420P)
 Copy Initialise AVFrame pic, create buffer if required and copy content of VideoFrame frame into it, performing the required conversion if any Returns size of buffer allocated Data would have to be deleted once finished with object with: av_freep(pic->data[0]) More...
 
int Copy (VideoFrame *frame, const AVFrame *pic, AVPixelFormat fmt=AV_PIX_FMT_YUV420P)
 Copy Copy AVFrame pic into VideoFrame frame, performing the required conversion Returns size of frame data. More...
 
int Copy (AVFrame *dst, AVPixelFormat dst_pix_fmt, const AVFrame *src, AVPixelFormat pix_fmt, int width, int height)
 

Static Private Member Functions

static void FillFrame (VideoFrame *frame, const AVFrame *pic, int pitch, int width, int height, AVPixelFormat pix_fmt)
 

Private Attributes

MythAVCopyPrivated {nullptr}
 

Detailed Description

MythAVCopy Copy AVFrame<->frame, performing the required conversion if any.

Definition at line 107 of file mythavutil.h.

Constructor & Destructor Documentation

◆ MythAVCopy() [1/2]

MythAVCopy::MythAVCopy ( bool  USWC = true)
explicit

Definition at line 253 of file mythavutil.cpp.

◆ ~MythAVCopy()

MythAVCopy::~MythAVCopy ( )
virtual

Definition at line 257 of file mythavutil.cpp.

◆ MythAVCopy() [2/2]

MythAVCopy::MythAVCopy ( const MythAVCopy )
delete

Member Function Documentation

◆ operator=()

MythAVCopy& MythAVCopy::operator= ( const MythAVCopy )
delete

◆ Copy() [1/4]

int MythAVCopy::Copy ( VideoFrame dst,
const VideoFrame src 
)

◆ Copy() [2/4]

int MythAVCopy::Copy ( AVFrame pic,
const VideoFrame frame,
unsigned char *  buffer = nullptr,
AVPixelFormat  fmt = AV_PIX_FMT_YUV420P 
)

Copy Initialise AVFrame pic, create buffer if required and copy content of VideoFrame frame into it, performing the required conversion if any Returns size of buffer allocated Data would have to be deleted once finished with object with: av_freep(pic->data[0])

Definition at line 351 of file mythavutil.cpp.

◆ Copy() [3/4]

int MythAVCopy::Copy ( VideoFrame frame,
const AVFrame pic,
AVPixelFormat  fmt = AV_PIX_FMT_YUV420P 
)

Copy Copy AVFrame pic into VideoFrame frame, performing the required conversion Returns size of frame data.

Definition at line 370 of file mythavutil.cpp.

◆ Copy() [4/4]

int MythAVCopy::Copy ( AVFrame dst,
AVPixelFormat  dst_pix_fmt,
const AVFrame src,
AVPixelFormat  pix_fmt,
int  width,
int  height 
)

Definition at line 288 of file mythavutil.cpp.

◆ FillFrame()

void MythAVCopy::FillFrame ( VideoFrame frame,
const AVFrame pic,
int  pitch,
int  width,
int  height,
AVPixelFormat  pix_fmt 
)
staticprivate

Definition at line 262 of file mythavutil.cpp.

Referenced by Copy().

Member Data Documentation

◆ d

MythAVCopyPrivate* MythAVCopy::d {nullptr}
private

Definition at line 141 of file mythavutil.h.

Referenced by Copy(), and ~MythAVCopy().


The documentation for this class was generated from the following files: