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::Ptr, std::string filename, Lens *lens=NULL, Flash *flash=NULL)
 Save a DNG in a background thread.
void saveJPEG (Frame::Ptr, std::string filename, int quality=75, Lens *lens=NULL, Flash *flash=NULL)
 Save a JPEG in a background thread.
void saveDump (Frame::Ptr, 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::Ptr  f,
std::string  filename,
Lens lens = NULL,
Flash flash = NULL 
)

Save a DNG in a background thread.

You can optionally pass in a lens and flash to add their metadata to the DNG tags.

Definition at line 59 of file AsyncFile.cpp.

void FCam::AsyncFileWriter::saveJPEG ( Frame::Ptr  f,
std::string  filename,
int  quality = 75,
Lens lens = NULL,
Flash flash = NULL 
)

Save a JPEG in a background thread.

You can optionally pass a jpeg quality (0-100), and a lens and flash to add their metadata to the DNG tags.

Definition at line 75 of file AsyncFile.cpp.

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

Save a raw dump in a background thread.

Definition at line 92 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 108 of file AsyncFile.cpp.


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

Generated on Mon Jan 18 20:48:13 2010 for FCam by  doxygen 1.5.6