Close image file
| 131 | |
| 132 | // Close image file |
| 133 | void 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. |
| 151 | std::shared_ptr<Frame> QtImageReader::GetFrame(int64_t requested_frame) |