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

Method Open

src/Clip.cpp:378–396  ·  view source on GitHub ↗

Open the internal reader

Source from the content-addressed store, hash-verified

376
377// Open the internal reader
378void Clip::Open()
379{
380 if (reader)
381 {
382 // Open the reader
383 reader->Open();
384 is_open = true;
385
386 // Copy Reader info to Clip
387 info = reader->info;
388
389 // Set some clip properties from the file reader
390 if (end == 0.0)
391 ClipBase::End(reader->info.duration);
392 }
393 else
394 // Throw error if reader not initialized
395 throw ReaderClosed("No Reader has been initialized for this Clip. Call Reader(*reader) before calling this method.");
396}
397
398// Close the internal reader
399void Clip::Close()

Callers 10

GetMaskImageMethod · 0.45
detectObjectsClipMethod · 0.45
stabilizeClipMethod · 0.45
SetJsonValueMethod · 0.45
ExtractSamplesMethod · 0.45
SetTimelineSourceMethod · 0.45
SetSourceMethod · 0.45
trackClipMethod · 0.45
load_fileMethod · 0.45

Calls 1

ReaderClosedClass · 0.85

Tested by

no test coverage detected