MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / End

Method End

src/ClipBase.cpp:53–61  ·  view source on GitHub ↗

Set end position (in seconds) of clip (trim end of video)

Source from the content-addressed store, hash-verified

51
52// Set end position (in seconds) of clip (trim end of video)
53void ClipBase::End(float value) {
54 end = value;
55
56 if (ParentTimeline()) {
57 // Resort timeline items (internal clips/effects arrays)
58 Timeline *parentTimeline = (Timeline *) ParentTimeline();
59 parentTimeline->SortTimeline();
60 }
61}
62
63// Generate Json::Value for this object
64Json::Value ClipBase::JsonValue() const {

Callers

nothing calls this directly

Calls 1

SortTimelineMethod · 0.80

Tested by

no test coverage detected