|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <Edl.h>
Public Member Functions | |
| CEdl () | |
| bool | ReadEditDecisionLists (const CFileItem &fileItem, float fps, std::chrono::milliseconds duration) |
| void | Clear () |
| bool | HasEdits () const |
| Check if there are any parsed edits in EDL for the current item. | |
| bool | HasCuts () const |
| Check if the edit list has EDL cuts (edits with action CUT) | |
| bool | HasSceneMarker () const |
| std::chrono::milliseconds | GetTotalCutTime () const |
| Get the total cut time removed from the original item because of EDL cuts. | |
| std::chrono::milliseconds | GetTimeWithoutCuts (std::chrono::milliseconds seekTime) const |
| Providing a given seek time, return the actual time without considering cut ranges removed from the file. | |
| std::chrono::milliseconds | GetTimeAfterRestoringCuts (std::chrono::milliseconds seekTime) const |
| Provided a given seek time, return the time after correction with the addition of the already surpassed EDL cut ranges. | |
| const std::vector< EDL::Edit > & | GetRawEditList () const |
| Get the raw EDL edit list. | |
| const std::vector< EDL::Edit > | GetEditList () const |
| Get the EDL edit list. | |
| const std::vector< std::chrono::milliseconds > | GetCutMarkers () const |
| Get the list of EDL cut markers. | |
| const std::vector< std::chrono::milliseconds > | GetSceneMarkers () const |
| Get the list of EDL scene markers. | |
| std::optional< std::unique_ptr< EDL::Edit > > | InEdit (std::chrono::milliseconds seekTime) |
| Check if for the provided seek time is contained within an EDL edit. | |
| std::optional< std::chrono::milliseconds > | GetLastEditTime () const |
| Get the last processed edit time (set during playback when a given edit is surpassed) | |
| void | SetLastEditTime (std::chrono::milliseconds editTime) |
| Set the last processed edit time (set during playback when a given edit is surpassed) | |
| void | ResetLastEditTime () |
| Reset the last recorded edit time (nullopt) | |
| void | SetLastEditActionType (EDL::Action action) |
| Set the last processed edit action type. | |
| EDL::Action | GetLastEditActionType () const |
| Get the last processed edit action type (set during playback when a given edit is surpassed) | |
| std::optional< std::chrono::milliseconds > | GetNextSceneMarker (Direction direction, std::chrono::milliseconds clockTime) |
| Get the next scene marker with respect to the provided clock time. | |
| std::chrono::milliseconds | GetNextPlayableTime (std::chrono::milliseconds seekTime) const |
| Resolve the next playable time on the original media timeline. If the provided time lands inside an edit, or exactly on the start of an adjacent edit, advance to the end of that edit and keep walking until a playable point is reached. | |
| std::chrono::milliseconds | GetPrevPlayableTime (std::chrono::milliseconds seekTime) const |
| Resolve the previous playable time on the original media timeline. If the provided time lands inside an edit, retreat to the start of that edit and keep walking backward until a playable point is reached. | |
Friends | |
| class | TestParseEditsForEpisode |
| CEdl::CEdl | ( | ) |
| void CEdl::Clear | ( | ) |
| const std::vector< std::chrono::milliseconds > CEdl::GetCutMarkers | ( | ) | const |
Get the list of EDL cut markers.
| const std::vector< EDL::Edit > CEdl::GetEditList | ( | ) | const |
| EDL::Action CEdl::GetLastEditActionType | ( | ) | const |
Get the last processed edit action type (set during playback when a given edit is surpassed)
| std::optional< std::chrono::milliseconds > CEdl::GetLastEditTime | ( | ) | const |
Get the last processed edit time (set during playback when a given edit is surpassed)
| std::chrono::milliseconds CEdl::GetNextPlayableTime | ( | std::chrono::milliseconds | seekTime | ) | const |
Resolve the next playable time on the original media timeline. If the provided time lands inside an edit, or exactly on the start of an adjacent edit, advance to the end of that edit and keep walking until a playable point is reached.
| seekTime | The candidate seek time on the original timeline |
| std::optional< std::chrono::milliseconds > CEdl::GetNextSceneMarker | ( | Direction | direction, |
| std::chrono::milliseconds | clockTime ) |
Get the next scene marker with respect to the provided clock time.
| direction | (the direction of the search - backward or forward) |
| clock | the current position of the clock |
| std::chrono::milliseconds CEdl::GetPrevPlayableTime | ( | std::chrono::milliseconds | seekTime | ) | const |
Resolve the previous playable time on the original media timeline. If the provided time lands inside an edit, retreat to the start of that edit and keep walking backward until a playable point is reached.
| seekTime | The candidate seek time on the original timeline |
|
inline |
| const std::vector< std::chrono::milliseconds > CEdl::GetSceneMarkers | ( | ) | const |
Get the list of EDL scene markers.
| std::chrono::milliseconds CEdl::GetTimeAfterRestoringCuts | ( | std::chrono::milliseconds | seekTime | ) | 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 |
| std::chrono::milliseconds CEdl::GetTimeWithoutCuts | ( | std::chrono::milliseconds | seekTime | ) | const |
Providing a given seek time, return the actual time without considering cut ranges removed from the file.
| seek | the desired seek time |
| std::chrono::milliseconds CEdl::GetTotalCutTime | ( | ) | const |
Get the total cut time removed from the original item because of EDL cuts.
| bool CEdl::HasCuts | ( | ) | const |
| bool CEdl::HasEdits | ( | ) | const |
| bool CEdl::HasSceneMarker | ( | ) | const |
| std::optional< std::unique_ptr< EDL::Edit > > CEdl::InEdit | ( | std::chrono::milliseconds | seekTime | ) |
Check if for the provided seek time is contained within an EDL edit.
| seekTime | The seek time (on the original timeline) |
| bool CEdl::ReadEditDecisionLists | ( | const CFileItem & | fileItem, |
| float | fps, | ||
| std::chrono::milliseconds | duration ) |
| void CEdl::ResetLastEditTime | ( | ) |
Reset the last recorded edit time (nullopt)
| void CEdl::SetLastEditActionType | ( | EDL::Action | action | ) |
Set the last processed edit action type.
| action | The action type (e.g. COMM_BREAK) |
| void CEdl::SetLastEditTime | ( | std::chrono::milliseconds | editTime | ) |
Set the last processed edit time (set during playback when a given edit is surpassed)
| editTime | The last processed EDL edit time |
|
friend |