Go to the documentation of this file.
17 int64_t leadinLength = 0;
22 for (
auto it = deleteMap.begin(); it != deleteMap.end(); ++it)
32 leadinLength = std::min((int64_t)(it.key() - start),
34 if (leadinLength >=
MINCUT)
38 remainingCutList[it.key() - leadinLength + 1] =
89 LOG(VB_GENERAL, LOG_INFO,
90 QString(
"Clean cut: discarding frame from %1 to %2: "
92 .arg(currentFrame).arg((
long)jumpTo)
112 LOG(VB_GENERAL, LOG_INFO,
113 QString(
"Clean cut: end of video cut; audio frames left "
137 LOG(VB_GENERAL, LOG_INFO,
138 QString(
"Clean cut: end of audio cut; vidio frames left "
149 LOG(VB_GENERAL, LOG_INFO,
150 QString(
"Clean cut: end of audio cut; vidio frames left to "
void SetPlayerContext(PlayerContext *ctx)
void Activate(float v2a, int64_t total)
bool InhibitDummyFrame(void)
static constexpr uint8_t MINCUT
frm_dir_map_t m_foreshortenedCutList
void TrackerReset(uint64_t frame)
Resets the internal state tracker.
void SetMap(const frm_dir_map_t &map)
Use the given map.
QMap< uint64_t, MarkTypes > frm_dir_map_t
Frame # -> Mark map.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
float m_audioFramesPerVideoFrame
bool TrackerWantsToJump(uint64_t frame, uint64_t &to) const
Returns true if the given frame has passed the last cut point start and provides the frame number of ...
static constexpr uint8_t MAXLEADIN
frm_dir_map_t AdjustedCutList() const
void NewFrame(int64_t currentFrame)
int64_t m_audioFramesToCut
int64_t m_videoFramesToCut
bool InhibitDropFrame(void)
bool InhibitUseAudioFrames(int64_t frames, long *totalAudio)
bool InhibitUseVideoFrame(void)
void SetCutList(frm_dir_map_t &deleteMap, PlayerContext *ctx)