MythTV  master
Classes | Functions | Variables
mythavutil.h File Reference
#include "mythframe.h"
#include "libavcodec/avcodec.h"
#include <QMap>
#include <QMutex>
Include dependency graph for mythavutil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MythAVFrame
 MythAVFrame little utility class that act as a safe way to allocate an AVFrame which can then be allocated on the heap. More...
 
class  MythCodecMap
 MythCodecMap Utility class that keeps pointers to an AVStream and its AVCodecContext. More...
 
class  MythAVCopy
 MythAVCopy Copy AVFrame<->frame, performing the required conversion if any. More...
 
class  MythPictureDeinterlacer
 MythPictureDeinterlacer simple deinterlacer based on FFmpeg's yadif filter. More...
 

Functions

int MTV_PUBLIC AVPictureFill (AVFrame *pic, const VideoFrame *frame, AVPixelFormat fmt=AV_PIX_FMT_NONE)
 AVPictureFill Initialise AVFrame pic with content from VideoFrame frame. More...
 
MTV_PUBLIC AVPixelFormat FrameTypeToPixelFormat (VideoFrameType type)
 Convert VideoFrameType into FFmpeg's PixelFormat equivalent and vice-versa. More...
 
MTV_PUBLIC VideoFrameType PixelFormatToFrameType (AVPixelFormat fmt)
 

Variables

MTV_PUBLIC MythCodecMapgCodecMap
 This global variable contains the MythCodecMap instance for the app. More...
 

Function Documentation

◆ AVPictureFill()

int MTV_PUBLIC AVPictureFill ( AVFrame pic,
const VideoFrame frame,
AVPixelFormat  fmt = AV_PIX_FMT_NONE 
)

◆ FrameTypeToPixelFormat()

MTV_PUBLIC AVPixelFormat FrameTypeToPixelFormat ( VideoFrameType  type)

Convert VideoFrameType into FFmpeg's PixelFormat equivalent and vice-versa.

Definition at line 25 of file mythavutil.cpp.

Referenced by AVPictureFill(), MythAVCopy::Copy(), and Transcode::TranscodeFile().

◆ PixelFormatToFrameType()

MTV_PUBLIC VideoFrameType PixelFormatToFrameType ( AVPixelFormat  fmt)

Definition at line 46 of file mythavutil.cpp.

Referenced by MythAVCopy::Copy().

Variable Documentation

◆ gCodecMap