MythTV  master
Classes | Functions
mythavutil.h File Reference
#include "mythframe.h"
#include "libavcodec/avcodec.h"
#include <QMap>
#include <QMutex>
#include <QVector>
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.


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...
class  MythStreamInfo
class  MythStreamInfoList


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)
MTV_PUBLIC QString DeinterlacerName (MythDeintType Deint, bool DoubleRate, VideoFrameType Format=FMT_NONE)
 Return a user friendly description of the given deinterlacer. More...
MTV_PUBLIC QString DeinterlacerPref (MythDeintType Deint)

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(), DecoderBase::GetBestVideoFormat(), MythDeinterlacer::Initialise(), and Transcode::TranscodeFile().

◆ PixelFormatToFrameType()

MTV_PUBLIC VideoFrameType PixelFormatToFrameType ( AVPixelFormat  fmt)

◆ DeinterlacerName()

MTV_PUBLIC QString DeinterlacerName ( MythDeintType  Deint,
bool  DoubleRate,
VideoFrameType  Format = FMT_NONE 

◆ DeinterlacerPref()

MTV_PUBLIC QString DeinterlacerPref ( MythDeintType  Deint)

Definition at line 183 of file mythavutil.cpp.

Referenced by MythVideoOutput::SetDeinterlacing().