#include <mythtranscode/mpeg2fix.h>
|
| | MPEG2fixup (const QString &inf, const QString &outf, frm_dir_map_t *deleteMap, const char *fmt, bool norp, bool fixPTS, int maxf, bool showprog, int otype, void(*update_func)(float)=nullptr, int(*check_func)()=nullptr) |
| |
| | ~MPEG2fixup () |
| |
| int | Start () |
| |
| void | AddRangeList (const QStringList &rangelist, int type) |
| |
| int | BuildKeyframeIndex (const QString &file, frm_pos_map_t &posMap, frm_pos_map_t &durMap) |
| |
| void | SetAllAudio (bool keep) |
| |
|
| static void | ShowRangeMap (frm_dir_map_t *mapPtr, QString msg) |
| |
| static void | dec2x33 (int64_t *pts1, int64_t pts2) |
| |
| static void | inc2x33 (int64_t *pts1, int64_t pts2) |
| |
| static int64_t | udiff2x33 (int64_t pts1, int64_t pts2) |
| |
| static int64_t | diff2x33 (int64_t pts1, int64_t pts2) |
| |
| static int64_t | add2x33 (int64_t pts1, int64_t pts2) |
| |
| static int | cmp2x33 (int64_t pts1, int64_t pts2) |
| |
|
| void | InitReplex () |
| |
| void | FrameInfo (MPEG2frame *f) |
| |
| int | AddFrame (MPEG2frame *f) |
| |
| bool | InitAV (const QString &inputfile, const char *type, int64_t offset) |
| |
| void | ScanAudio () |
| |
| int | ProcessVideo (MPEG2frame *vf, mpeg2dec_t *dec) |
| |
| void | WriteFrame (const QString &filename, MPEG2frame *f) |
| |
| void | WriteFrame (const QString &filename, AVPacket *pkt) |
| |
| bool | BuildFrame (AVPacket *pkt, const QString &fname) |
| |
| MPEG2frame * | GetPoolFrame (AVPacket *pkt) |
| |
| MPEG2frame * | GetPoolFrame (MPEG2frame *f) |
| |
| int | GetFrame (AVPacket *pkt) |
| |
| bool | FindStart () |
| |
| MPEG2frame * | FindFrameNum (int frameNum) |
| |
| void | RenumberFrames (int start_pos, int delta) |
| |
| void | StoreSecondary () |
| |
| int | PlaybackSecondary () |
| |
| MPEG2frame * | DecodeToFrame (int frameNum, int skip_reset) |
| |
| int | ConvertToI (FrameList *orderedFrames, int headPos) |
| |
| int | InsertFrame (int frameNum, int64_t deltaPTS, int64_t ptsIncrement, int64_t initPTS) |
| |
| void | AddSequence (MPEG2frame *frame1, MPEG2frame *frame2) |
| |
| void | InitialPTSFixup (MPEG2frame *curFrame, int64_t &origvPTS, int64_t &PTSdiscrep, int numframes, bool fix) const |
| |
| int | GetStreamType (int id) const |
| |
| AVCodecContext * | getCodecContext (uint id) |
| |
| AVCodecParserContext * | getCodecParserContext (uint id) |
| |
|
| static int | FindMPEG2Header (const uint8_t *buf, int size, uint8_t code) |
| |
| static void | WriteYUV (const QString &filename, const mpeg2_info_t *info) |
| |
| static void | WriteData (const QString &filename, uint8_t *data, int size) |
| |
| static void | SetRepeat (MPEG2frame *vf, int nb_fields, bool topff) |
| |
| static void | SetRepeat (uint8_t *ptr, int size, int fields, bool topff) |
| |
| static FrameList | ReorderDTStoPTS (FrameList *dtsOrder, int pos) |
| |
| static void | SetFrameNum (uint8_t *ptr, int num) |
| |
| static int | GetFrameNum (const MPEG2frame *frame) |
| |
| static int | GetFrameTypeN (const MPEG2frame *frame) |
| |
| static char | GetFrameTypeT (const MPEG2frame *frame) |
| |
| static int | GetNbFields (const MPEG2frame *frame) |
| |
| static void | dumpList (FrameList *list) |
| |
Definition at line 121 of file mpeg2fix.h.
◆ MPEG2fixup()
| MPEG2fixup::MPEG2fixup |
( |
const QString & |
inf, |
|
|
const QString & |
outf, |
|
|
frm_dir_map_t * |
deleteMap, |
|
|
const char * |
fmt, |
|
|
bool |
norp, |
|
|
bool |
fixPTS, |
|
|
int |
maxf, |
|
|
bool |
showprog, |
|
|
int |
otype, |
|
|
void(*)(float) |
update_func = nullptr, |
|
|
int(*)() |
check_func = nullptr |
|
) |
| |
◆ ~MPEG2fixup()
| MPEG2fixup::~MPEG2fixup |
( |
| ) |
|
◆ add2x33()
| int64_t MPEG2fixup::add2x33 |
( |
int64_t |
pts1, |
|
|
int64_t |
pts2 |
|
) |
| |
|
static |
◆ AddFrame()
◆ AddRangeList()
| void MPEG2fixup::AddRangeList |
( |
const QStringList & |
rangelist, |
|
|
int |
type |
|
) |
| |
◆ AddSequence()
◆ BuildFrame()
| bool MPEG2fixup::BuildFrame |
( |
AVPacket * |
pkt, |
|
|
const QString & |
fname |
|
) |
| |
|
private |
◆ BuildKeyframeIndex()
◆ cmp2x33()
| int MPEG2fixup::cmp2x33 |
( |
int64_t |
pts1, |
|
|
int64_t |
pts2 |
|
) |
| |
|
static |
◆ ConvertToI()
| int MPEG2fixup::ConvertToI |
( |
FrameList * |
orderedFrames, |
|
|
int |
headPos |
|
) |
| |
|
private |
◆ dec2x33()
| void MPEG2fixup::dec2x33 |
( |
int64_t * |
pts1, |
|
|
int64_t |
pts2 |
|
) |
| |
|
static |
◆ DecodeToFrame()
| MPEG2frame * MPEG2fixup::DecodeToFrame |
( |
int |
frameNum, |
|
|
int |
skip_reset |
|
) |
| |
|
private |
◆ diff2x33()
| int64_t MPEG2fixup::diff2x33 |
( |
int64_t |
pts1, |
|
|
int64_t |
pts2 |
|
) |
| |
|
static |
◆ dumpList()
| void MPEG2fixup::dumpList |
( |
FrameList * |
list | ) |
|
|
staticprivate |
◆ FindFrameNum()
| MPEG2frame * MPEG2fixup::FindFrameNum |
( |
int |
frameNum | ) |
|
|
private |
◆ FindMPEG2Header()
| int MPEG2fixup::FindMPEG2Header |
( |
const uint8_t * |
buf, |
|
|
int |
size, |
|
|
uint8_t |
code |
|
) |
| |
|
staticprivate |
◆ FindStart()
| bool MPEG2fixup::FindStart |
( |
| ) |
|
|
private |
◆ FrameInfo()
◆ getCodecContext()
| AVCodecContext * MPEG2fixup::getCodecContext |
( |
uint |
id | ) |
|
|
inlineprivate |
◆ getCodecParserContext()
| AVCodecParserContext * MPEG2fixup::getCodecParserContext |
( |
uint |
id | ) |
|
|
inlineprivate |
◆ GetFrame()
| int MPEG2fixup::GetFrame |
( |
AVPacket * |
pkt | ) |
|
|
private |
◆ GetFrameNum()
| static int MPEG2fixup::GetFrameNum |
( |
const MPEG2frame * |
frame | ) |
|
|
inlinestaticprivate |
◆ GetFrameTypeN()
| static int MPEG2fixup::GetFrameTypeN |
( |
const MPEG2frame * |
frame | ) |
|
|
inlinestaticprivate |
◆ GetFrameTypeT()
| static char MPEG2fixup::GetFrameTypeT |
( |
const MPEG2frame * |
frame | ) |
|
|
inlinestaticprivate |
◆ GetNbFields()
| static int MPEG2fixup::GetNbFields |
( |
const MPEG2frame * |
frame | ) |
|
|
inlinestaticprivate |
◆ GetPoolFrame() [1/2]
| MPEG2frame * MPEG2fixup::GetPoolFrame |
( |
AVPacket * |
pkt | ) |
|
|
private |
◆ GetPoolFrame() [2/2]
◆ GetStreamType()
| int MPEG2fixup::GetStreamType |
( |
int |
id | ) |
const |
|
inlineprivate |
◆ inc2x33()
| void MPEG2fixup::inc2x33 |
( |
int64_t * |
pts1, |
|
|
int64_t |
pts2 |
|
) |
| |
|
static |
◆ InitAV()
| bool MPEG2fixup::InitAV |
( |
const QString & |
inputfile, |
|
|
const char * |
type, |
|
|
int64_t |
offset |
|
) |
| |
|
private |
◆ InitialPTSFixup()
| void MPEG2fixup::InitialPTSFixup |
( |
MPEG2frame * |
curFrame, |
|
|
int64_t & |
origvPTS, |
|
|
int64_t & |
PTSdiscrep, |
|
|
int |
numframes, |
|
|
bool |
fix |
|
) |
| const |
|
private |
◆ InitReplex()
| void MPEG2fixup::InitReplex |
( |
| ) |
|
|
private |
◆ InsertFrame()
| int MPEG2fixup::InsertFrame |
( |
int |
frameNum, |
|
|
int64_t |
deltaPTS, |
|
|
int64_t |
ptsIncrement, |
|
|
int64_t |
initPTS |
|
) |
| |
|
private |
◆ PlaybackSecondary()
| int MPEG2fixup::PlaybackSecondary |
( |
| ) |
|
|
private |
◆ ProcessVideo()
| int MPEG2fixup::ProcessVideo |
( |
MPEG2frame * |
vf, |
|
|
mpeg2dec_t * |
dec |
|
) |
| |
|
private |
◆ RenumberFrames()
| void MPEG2fixup::RenumberFrames |
( |
int |
start_pos, |
|
|
int |
delta |
|
) |
| |
|
private |
◆ ReorderDTStoPTS()
◆ ReplexStart()
| void * MPEG2fixup::ReplexStart |
( |
void * |
data | ) |
|
|
staticprotected |
◆ ScanAudio()
| void MPEG2fixup::ScanAudio |
( |
| ) |
|
|
private |
◆ SetAllAudio()
| void MPEG2fixup::SetAllAudio |
( |
bool |
keep | ) |
|
|
inline |
◆ SetFrameNum()
| void MPEG2fixup::SetFrameNum |
( |
uint8_t * |
ptr, |
|
|
int |
num |
|
) |
| |
|
staticprivate |
◆ SetRepeat() [1/2]
| void MPEG2fixup::SetRepeat |
( |
MPEG2frame * |
vf, |
|
|
int |
nb_fields, |
|
|
bool |
topff |
|
) |
| |
|
staticprivate |
◆ SetRepeat() [2/2]
| void MPEG2fixup::SetRepeat |
( |
uint8_t * |
ptr, |
|
|
int |
size, |
|
|
int |
fields, |
|
|
bool |
topff |
|
) |
| |
|
staticprivate |
◆ ShowRangeMap()
| void MPEG2fixup::ShowRangeMap |
( |
frm_dir_map_t * |
mapPtr, |
|
|
QString |
msg |
|
) |
| |
|
static |
◆ Start()
| int MPEG2fixup::Start |
( |
void |
| ) |
|
◆ StoreSecondary()
| void MPEG2fixup::StoreSecondary |
( |
| ) |
|
|
private |
◆ udiff2x33()
| int64_t MPEG2fixup::udiff2x33 |
( |
int64_t |
pts1, |
|
|
int64_t |
pts2 |
|
) |
| |
|
static |
◆ WriteData()
| void MPEG2fixup::WriteData |
( |
const QString & |
filename, |
|
|
uint8_t * |
data, |
|
|
int |
size |
|
) |
| |
|
staticprivate |
◆ WriteFrame() [1/2]
| void MPEG2fixup::WriteFrame |
( |
const QString & |
filename, |
|
|
AVPacket * |
pkt |
|
) |
| |
|
private |
◆ WriteFrame() [2/2]
| void MPEG2fixup::WriteFrame |
( |
const QString & |
filename, |
|
|
MPEG2frame * |
f |
|
) |
| |
|
private |
◆ WriteYUV()
| void MPEG2fixup::WriteYUV |
( |
const QString & |
filename, |
|
|
const mpeg2_info_t * |
info |
|
) |
| |
|
staticprivate |
◆ m_aFrame
◆ m_allAudio
| bool MPEG2fixup::m_allAudio {false} |
|
private |
◆ m_audMap
| QMap<int, int> MPEG2fixup::m_audMap |
|
private |
◆ m_checkAbort
| int(* MPEG2fixup::m_checkAbort) () |
|
inlineprivate |
◆ m_codecMap
◆ m_delMap
◆ m_discard
| bool MPEG2fixup::m_discard {false} |
|
private |
◆ m_displayFrame
| int MPEG2fixup::m_displayFrame {0} |
|
private |
◆ m_extCount
| int MPEG2fixup::m_extCount {0} |
|
private |
◆ m_fileEnd
| bool MPEG2fixup::m_fileEnd {false} |
|
private |
◆ m_fileSize
| uint64_t MPEG2fixup::m_fileSize {0} |
|
private |
◆ m_fixPts
| bool MPEG2fixup::m_fixPts |
|
private |
◆ m_format
| const char* MPEG2fixup::m_format {nullptr} |
|
private |
◆ m_frameNum
| int MPEG2fixup::m_frameNum {0} |
|
private |
◆ m_framePool
◆ m_headerDecoder
| mpeg2dec_t* MPEG2fixup::m_headerDecoder {nullptr} |
|
private |
◆ m_imgDecoder
| mpeg2dec_t* MPEG2fixup::m_imgDecoder {nullptr} |
|
private |
◆ m_infile
| QString MPEG2fixup::m_infile |
|
private |
◆ m_inputFC
| AVFormatContext* MPEG2fixup::m_inputFC {nullptr} |
|
private |
◆ m_lastWrittenPos
| uint64_t MPEG2fixup::m_lastWrittenPos {0} |
|
private |
◆ m_maxFrames
| int MPEG2fixup::m_maxFrames |
|
private |
◆ m_mkvFile
| bool MPEG2fixup::m_mkvFile {false} |
|
private |
◆ m_noRepeat
| bool MPEG2fixup::m_noRepeat |
|
private |
◆ m_picture
| AVFrame* MPEG2fixup::m_picture {nullptr} |
|
private |
◆ m_ptsIncrement
| int64_t MPEG2fixup::m_ptsIncrement {0} |
|
private |
◆ m_realFileEnd
| bool MPEG2fixup::m_realFileEnd {false} |
|
private |
◆ m_rx
◆ m_saveMap
◆ m_showProgress
| bool MPEG2fixup::m_showProgress {false} |
|
private |
◆ m_statusTime
| QDateTime MPEG2fixup::m_statusTime |
|
private |
◆ m_statusUpdateTime
| int MPEG2fixup::m_statusUpdateTime {5} |
|
private |
◆ m_thread
| pthread_t MPEG2fixup::m_thread {} |
|
private |
◆ m_unreadFrames
◆ m_updateStatus
| void(* MPEG2fixup::m_updateStatus) (float percent_done) |
|
inlineprivate |
◆ m_useSecondary
| bool MPEG2fixup::m_useSecondary {false} |
|
private |
◆ m_vFrame
Definition at line 228 of file mpeg2fix.h.
Referenced by ConvertToI(), DecodeToFrame(), FindFrameNum(), FindStart(), GetFrame(), InitReplex(), InsertFrame(), RenumberFrames(), Start(), StoreSecondary(), WriteFrame(), and ~MPEG2fixup().
◆ m_vidId
| int MPEG2fixup::m_vidId {-1} |
|
private |
◆ m_vSecondary
The documentation for this class was generated from the following files: