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

Method Close

src/QtImageReader.cpp:133–148  ·  view source on GitHub ↗

Close image file

Source from the content-addressed store, hash-verified

131
132// Close image file
133void QtImageReader::Close()
134{
135 // Close all objects, if reader is 'open'
136 if (is_open)
137 {
138 // Mark as "closed"
139 is_open = false;
140
141 // Delete the image
142 image.reset();
143 cached_image.reset();
144
145 info.vcodec = "";
146 info.acodec = "";
147 }
148}
149
150// Get an openshot::Frame object for a specific frame number of this reader.
151std::shared_ptr<Frame> QtImageReader::GetFrame(int64_t requested_frame)

Callers

nothing calls this directly

Calls 1

resetMethod · 0.80

Tested by

no test coverage detected