MythTV  master
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
Cutter Class Reference

#include <cutter.h>

Collaboration diagram for Cutter:
Collaboration graph
[legend]

Public Member Functions

 Cutter ()=default
 
void SetCutList (frm_dir_map_t &deleteMap, PlayerContext *ctx)
 
frm_dir_map_t AdjustedCutList () const
 
void Activate (float v2a, int64_t total)
 
void NewFrame (int64_t currentFrame)
 
bool InhibitUseVideoFrame (void)
 
bool InhibitUseAudioFrames (int64_t frames, long *totalAudio)
 
bool InhibitDummyFrame (void)
 
bool InhibitDropFrame (void)
 

Private Attributes

bool m_active {false}
 
frm_dir_map_t m_foreshortenedCutList
 
DeleteMap m_tracker
 
int64_t m_totalFrames {0}
 
int64_t m_videoFramesToCut {0}
 
int64_t m_audioFramesToCut {0}
 
float m_audioFramesPerVideoFrame {0.0}
 

Static Private Attributes

static constexpr uint8_t MAXLEADIN { 200 }
 
static constexpr uint8_t MINCUT { 20 }
 

Detailed Description

Definition at line 13 of file cutter.h.

Constructor & Destructor Documentation

◆ Cutter()

Cutter::Cutter ( )
default

Member Function Documentation

◆ SetCutList()

void Cutter::SetCutList ( frm_dir_map_t deleteMap,
PlayerContext ctx 
)

Definition at line 11 of file cutter.cpp.

◆ AdjustedCutList()

frm_dir_map_t Cutter::AdjustedCutList ( ) const

Definition at line 58 of file cutter.cpp.

◆ Activate()

void Cutter::Activate ( float  v2a,
int64_t  total 
)

Definition at line 63 of file cutter.cpp.

◆ NewFrame()

void Cutter::NewFrame ( int64_t  currentFrame)

Definition at line 73 of file cutter.cpp.

◆ InhibitUseVideoFrame()

bool Cutter::InhibitUseVideoFrame ( void  )

Definition at line 100 of file cutter.cpp.

◆ InhibitUseAudioFrames()

bool Cutter::InhibitUseAudioFrames ( int64_t  frames,
long *  totalAudio 
)

Definition at line 120 of file cutter.cpp.

◆ InhibitDummyFrame()

bool Cutter::InhibitDummyFrame ( void  )

Definition at line 155 of file cutter.cpp.

◆ InhibitDropFrame()

bool Cutter::InhibitDropFrame ( void  )

Definition at line 167 of file cutter.cpp.

Member Data Documentation

◆ m_active

bool Cutter::m_active {false}
private

Definition at line 27 of file cutter.h.

Referenced by Activate(), and NewFrame().

◆ m_foreshortenedCutList

frm_dir_map_t Cutter::m_foreshortenedCutList
private

Definition at line 28 of file cutter.h.

Referenced by AdjustedCutList(), and SetCutList().

◆ m_tracker

DeleteMap Cutter::m_tracker
private

Definition at line 29 of file cutter.h.

Referenced by Activate(), NewFrame(), and SetCutList().

◆ m_totalFrames

int64_t Cutter::m_totalFrames {0}
private

Definition at line 30 of file cutter.h.

Referenced by Activate().

◆ m_videoFramesToCut

int64_t Cutter::m_videoFramesToCut {0}
private

◆ m_audioFramesToCut

int64_t Cutter::m_audioFramesToCut {0}
private

◆ m_audioFramesPerVideoFrame

float Cutter::m_audioFramesPerVideoFrame {0.0}
private

Definition at line 33 of file cutter.h.

Referenced by Activate(), InhibitDropFrame(), InhibitDummyFrame(), and NewFrame().

◆ MAXLEADIN

constexpr uint8_t Cutter::MAXLEADIN { 200 }
staticconstexprprivate

Definition at line 34 of file cutter.h.

Referenced by SetCutList().

◆ MINCUT

constexpr uint8_t Cutter::MINCUT { 20 }
staticconstexprprivate

Definition at line 35 of file cutter.h.

Referenced by SetCutList().


The documentation for this class was generated from the following files: