MythTV
master
|
#include <libmythtv/mythavutil.h>
Public Member Functions | |
MythAVCopy ()=default | |
~MythAVCopy () | |
int | Copy (AVFrame *To, const MythVideoFrame *From, unsigned char *Buffer, AVPixelFormat Fmt=AV_PIX_FMT_YUV420P) |
Initialise AVFrame and copy contents of VideoFrame frame into it, performing any required conversion. More... | |
int | Copy (AVFrame *To, AVPixelFormat ToFmt, const AVFrame *From, AVPixelFormat FromFmt, int Width, int Height) |
Private Member Functions | |
int | SizeData (int Width, int Height, AVPixelFormat Fmt) |
Private Attributes | |
AVPixelFormat | m_format { AV_PIX_FMT_NONE } |
SwsContext * | m_swsctx { nullptr } |
int | m_width { 0 } |
int | m_height { 0 } |
int | m_size { 0 } |
Copy AVFrame<->frame, performing the required conversion if any
Definition at line 44 of file mythavutil.h.
|
default |
MythAVCopy::~MythAVCopy | ( | ) |
Definition at line 217 of file mythavutil.cpp.
int MythAVCopy::Copy | ( | AVFrame * | To, |
const MythVideoFrame * | From, | ||
unsigned char * | Buffer, | ||
AVPixelFormat | Fmt = AV_PIX_FMT_YUV420P |
||
) |
Initialise AVFrame and copy contents of VideoFrame frame into it, performing any required conversion.
Definition at line 267 of file mythavutil.cpp.
Referenced by MHIBitmap::CreateFromMPEG(), ThumbFinder::getFrameImage(), MythPreviewPlayer::GetScreenGrabAtFrame(), grabThumbnail(), VideoOutputD3D::UpdateFrame(), and MythVideoTextureOpenGL::YV12ToYUYV().
int MythAVCopy::Copy | ( | AVFrame * | To, |
AVPixelFormat | ToFmt, | ||
const AVFrame * | From, | ||
AVPixelFormat | FromFmt, | ||
int | Width, | ||
int | Height | ||
) |
Definition at line 234 of file mythavutil.cpp.
|
private |
Definition at line 222 of file mythavutil.cpp.
Referenced by Copy().
|
private |
Definition at line 58 of file mythavutil.h.
Referenced by SizeData().
|
private |
Definition at line 59 of file mythavutil.h.
Referenced by Copy(), and ~MythAVCopy().
|
private |
Definition at line 60 of file mythavutil.h.
Referenced by SizeData().
|
private |
Definition at line 61 of file mythavutil.h.
Referenced by SizeData().
|
private |
Definition at line 62 of file mythavutil.h.
Referenced by SizeData().