Public Member Functions

FCam::AsyncFileWriter Class Reference

The AsyncFileWriter saves frames in a low priority background thread. More...

#include <AsyncFile.h>

List of all members.

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.
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.

Detailed Description

The AsyncFileWriter saves frames in a low priority background thread.

Definition at line 21 of file AsyncFile.h.


Member Function Documentation

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.

void FCam::AsyncFileWriter::saveDNG ( Frame  ,
std::string  filename 
)

Save a DNG in a background thread.

void FCam::AsyncFileWriter::saveJPEG ( Frame  ,
std::string  filename,
int  quality = 75 
)

Save a JPEG in a background thread.

You can optionally pass a jpeg quality (0-100).

void FCam::AsyncFileWriter::saveDump ( Frame  ,
std::string  filename 
)

Save a raw dump in a background thread.

void FCam::AsyncFileWriter::cancel (  ) 

Cancel all outstanding requests.

The writer will finish saving the current request, but not save any more


The documentation for this class was generated from the following files: