MythTV  master
Classes | Functions
mythavutil.cpp File Reference
#include "mythframe.h"
#include "mythavutil.h"
#include "mythcorecontext.h"
#include "mythconfig.h"
#include "libswscale/swscale.h"
#include "libavfilter/avfilter.h"
#include "libavcodec/avcodec.h"
#include "libavfilter/buffersrc.h"
#include "libavfilter/buffersink.h"
#include "libavutil/imgutils.h"
#include "libavformat/avformat.h"
#include <QMutexLocker>
#include <QFile>
Include dependency graph for mythavutil.cpp:

Go to the source code of this file.

Classes

class  MythAVCopyPrivate
 

Functions

AVPixelFormat FrameTypeToPixelFormat (VideoFrameType type)
 Convert VideoFrameType into FFmpeg's PixelFormat equivalent and vice-versa. More...
 
VideoFrameType PixelFormatToFrameType (AVPixelFormat fmt)
 
QString DeinterlacerName (MythDeintType Deint, bool DoubleRate, VideoFrameType Format)
 Return a user friendly description of the given deinterlacer. More...
 
QString DeinterlacerPref (MythDeintType Deint)
 
int AVPictureFill (AVFrame *pic, const VideoFrame *frame, AVPixelFormat fmt)
 AVPictureFill Initialise AVFrame pic with content from VideoFrame frame. More...
 

Function Documentation

◆ FrameTypeToPixelFormat()

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()

VideoFrameType PixelFormatToFrameType ( AVPixelFormat  fmt)

◆ DeinterlacerName()

QString DeinterlacerName ( MythDeintType  Deint,
bool  DoubleRate,
VideoFrameType  Format 
)

◆ DeinterlacerPref()

QString DeinterlacerPref ( MythDeintType  Deint)

Definition at line 183 of file mythavutil.cpp.

Referenced by MythVideoOutput::SetDeinterlacing().

◆ AVPictureFill()

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