MythTV  master
Classes | Functions | Variables
mythavutil.cpp File Reference
#include "mythframe.h"
#include "mythavutil.h"
#include "mythcorecontext.h"
#include "mythconfig.h"
#include "vaapi2context.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 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)
 
int AVPictureFill (AVFrame *pic, const VideoFrame *frame, AVPixelFormat fmt)
 AVPictureFill Initialise AVFrame pic with content from VideoFrame frame. More...
 

Variables

MythCodecMapgCodecMap = new MythCodecMap()
 This global variable contains the MythCodecMap instance for the app. 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(), and Transcode::TranscodeFile().

◆ PixelFormatToFrameType()

VideoFrameType PixelFormatToFrameType ( AVPixelFormat  fmt)

Definition at line 46 of file mythavutil.cpp.

Referenced by MythAVCopy::Copy().

◆ AVPictureFill()

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

Variable Documentation

◆ gCodecMap

MythCodecMap* gCodecMap = new MythCodecMap()