kodi
|
Public Member Functions | |
bool | ReadEditDecisionLists (const CFileItem &fileItem, const float fFramesPerSecond) |
void | Clear () |
bool | HasEdits () const |
Check if there are any parsed edits in EDL for the current item. More... | |
bool | HasCuts () const |
Check if the edit list has EDL cuts (edits with action CUT) More... | |
bool | HasSceneMarker () const |
int | GetTotalCutTime () const |
Get the total cut time removed from the original item because of EDL cuts. More... | |
int | GetTimeWithoutCuts (int seek) const |
Providing a given seek time, return the actual time without considering cut ranges removed from the file. More... | |
double | GetTimeAfterRestoringCuts (double seek) const |
Provided a given seek time, return the time after correction with the addition of the already surpassed EDL cut ranges. More... | |
const std::vector< EDL::Edit > & | GetRawEditList () const |
Get the raw EDL edit list. More... | |
const std::vector< EDL::Edit > | GetEditList () const |
Get the EDL edit list. More... | |
const std::vector< int64_t > | GetCutMarkers () const |
Get the list of EDL cut markers. More... | |
const std::vector< int64_t > | GetSceneMarkers () const |
Get the list of EDL scene markers. More... | |
bool | InEdit (int iSeek, EDL::Edit *pEdit=nullptr) |
Check if for the provided seek time is contained within an EDL edit and fill pEdit with the respective edit struct. More... | |
int | GetLastEditTime () const |
Get the last processed edit time (set during playback when a given edit is surpassed) More... | |
void | SetLastEditTime (int editTime) |
Set the last processed edit time (set during playback when a given edit is surpassed) More... | |
void | ResetLastEditTime () |
Reset the last recorded edit time (-1) | |
void | SetLastEditActionType (EDL::Action action) |
Set the last processed edit action type. More... | |
EDL::Action | GetLastEditActionType () const |
Get the last processed edit action type (set during playback when a given edit is surpassed) More... | |
bool | GetNextSceneMarker (bool bPlus, const int iClock, int *iSceneMarker) |
Static Public Member Functions | |
static std::string | MillisecondsToTimeString (const int iMilliseconds) |
const std::vector< int64_t > CEdl::GetCutMarkers | ( | ) | const |
Get the list of EDL cut markers.
const std::vector< EDL::Edit > CEdl::GetEditList | ( | ) | const |
Get the EDL edit list.
EDL::Action CEdl::GetLastEditActionType | ( | ) | const |
Get the last processed edit action type (set during playback when a given edit is surpassed)
int CEdl::GetLastEditTime | ( | ) | const |
Get the last processed edit time (set during playback when a given edit is surpassed)
|
inline |
Get the raw EDL edit list.
const std::vector< int64_t > CEdl::GetSceneMarkers | ( | ) | const |
Get the list of EDL scene markers.
double CEdl::GetTimeAfterRestoringCuts | ( | double | seek | ) | const |
Provided a given seek time, return the time after correction with the addition of the already surpassed EDL cut ranges.
seek | the desired seek time |
int CEdl::GetTimeWithoutCuts | ( | int | seek | ) | const |
Providing a given seek time, return the actual time without considering cut ranges removed from the file.
seek | the desired seek time |
int CEdl::GetTotalCutTime | ( | ) | const |
Get the total cut time removed from the original item because of EDL cuts.
bool CEdl::HasCuts | ( | ) | const |
Check if the edit list has EDL cuts (edits with action CUT)
bool CEdl::HasEdits | ( | ) | const |
Check if there are any parsed edits in EDL for the current item.
bool CEdl::InEdit | ( | int | iSeek, |
EDL::Edit * | pEdit = nullptr |
||
) |
Check if for the provided seek time is contained within an EDL edit and fill pEdit with the respective edit struct.
iSeek | The seek time (on the original timeline) | |
[in,out] | pEdit | The edit pointer (or nullptr if iSeek not within an edit) |
void CEdl::SetLastEditActionType | ( | EDL::Action | action | ) |
Set the last processed edit action type.
action | The action type (e.g. COMM_BREAK) |
void CEdl::SetLastEditTime | ( | int | editTime | ) |
Set the last processed edit time (set during playback when a given edit is surpassed)
editTime | The last processed EDL edit time (ms) |