MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

FCam::AsyncFileWriter Class Reference

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

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.

Detailed Description

The AsyncFileWriter saves frames in a low priority background thread.


Member Function Documentation

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


Copyright (c) 2012, Nokia Corporation and/or its subsidiary(-ies). All rights reserved. See Copyright.
MeeGo 1.2 Harmattan API