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

#include <cutter.h>

Collaboration diagram for Cutter:
Collaboration graph

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 Types

enum  { MAXLEADIN = 200, MINCUT = 20 }

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}

Detailed Description

Definition at line 13 of file cutter.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 34 of file cutter.h.

Constructor & Destructor Documentation

◆ Cutter()

Cutter::Cutter ( )

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}

Definition at line 27 of file cutter.h.

◆ m_foreshortenedCutList

frm_dir_map_t Cutter::m_foreshortenedCutList

Definition at line 28 of file cutter.h.

◆ m_tracker

DeleteMap Cutter::m_tracker

Definition at line 29 of file cutter.h.

◆ m_totalFrames

int64_t Cutter::m_totalFrames {0}

Definition at line 30 of file cutter.h.

◆ m_videoFramesToCut

int64_t Cutter::m_videoFramesToCut {0}

Definition at line 31 of file cutter.h.

◆ m_audioFramesToCut

int64_t Cutter::m_audioFramesToCut {0}

Definition at line 32 of file cutter.h.

◆ m_audioFramesPerVideoFrame

float Cutter::m_audioFramesPerVideoFrame {0.0}

Definition at line 33 of file cutter.h.

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