MythTV  master
Public Member Functions | 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 ()
 
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)
 

Private Member Functions

void FillFrame (VideoFrame *frame, const AVFrame *pic, int pitch, int width, int height, AVPixelFormat pix_fmt)
 
 MythAVCopy (const MythAVCopy &)=delete
 
MythAVCopyoperator= (const MythAVCopy &)=delete
 

Private Attributes

MythAVCopyPrivated
 

Detailed Description

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

Definition at line 114 of file mythavutil.h.

Constructor & Destructor Documentation

◆ MythAVCopy() [1/2]

MythAVCopy::MythAVCopy ( bool  USWC = true)
explicit

Definition at line 122 of file mythavutil.cpp.

◆ ~MythAVCopy()

MythAVCopy::~MythAVCopy ( )
virtual

Definition at line 126 of file mythavutil.cpp.

◆ MythAVCopy() [2/2]

MythAVCopy::MythAVCopy ( const MythAVCopy )
privatedelete

Member Function Documentation

◆ 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 218 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 238 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 157 of file mythavutil.cpp.

◆ FillFrame()

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

Definition at line 131 of file mythavutil.cpp.

Referenced by Copy().

◆ operator=()

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

Member Data Documentation

◆ d

MythAVCopyPrivate* MythAVCopy::d
private

Definition at line 148 of file mythavutil.h.

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


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