The AsyncFileWriter saves frames in a low priority background thread. More...
#include <AsyncFile.h>
Public Member Functions | |
| void | saveDNG (Frame, std::string filename) |
| Save a DNG in a background thread. | |
| void | saveJPEG (Frame, std::string filename, int quality=75) |
| Save a JPEG in a background thread. | |
| void | saveDump (Frame, std::string filename) |
| Save a raw dump in a background thread. | |
| int | savesPending () |
| How many save requests are pending (including the one currently saving). | |
| void | cancel () |
| Cancel all outstanding requests. | |
The AsyncFileWriter saves frames in a low priority background thread.
Definition at line 21 of file AsyncFile.h.
| void FCam::AsyncFileWriter::saveDNG | ( | Frame | f, | |
| std::string | filename | |||
| ) |
Save a DNG in a background thread.
Definition at line 82 of file AsyncFile.cpp.
| void FCam::AsyncFileWriter::saveJPEG | ( | Frame | f, | |
| std::string | filename, | |||
| int | quality = 75 | |||
| ) |
Save a JPEG in a background thread.
You can optionally pass a jpeg quality (0-100).
Definition at line 96 of file AsyncFile.cpp.
| void FCam::AsyncFileWriter::saveDump | ( | Frame | f, | |
| std::string | filename | |||
| ) |
Save a raw dump in a background thread.
Definition at line 124 of file AsyncFile.cpp.
| void FCam::AsyncFileWriter::cancel | ( | ) |
Cancel all outstanding requests.
The writer will finish saving the current request, but not save any more
Definition at line 152 of file AsyncFile.cpp.
1.7.1