![]() |
Home · All Classes · All Functions · | ![]() |
The QStillImageCapture class is used for the recording of media content. More...
#include <QStillImageCapture>
This class is under development and is subject to change.
Inherits QMediaObject.
enum | Error { NoError, NotReadyError, ResourceError, NotSupportedFeatureError, FormatError } |
QStillImageCapture ( QMediaObject * mediaObject, QObject * parent = 0 ) | |
~QStillImageCapture () | |
QImageEncoderSettings | encodingSettings () const |
Error | error () const |
QString | errorString () const |
QString | imageCodecDescription ( const QString & codec ) const |
bool | isReadyForCapture () const |
void | setEncodingSettings ( const QImageEncoderSettings & settings ) |
QStringList | supportedImageCodecs () const |
QList<QSize> | supportedResolutions ( const QImageEncoderSettings & settings = QImageEncoderSettings(), bool * continuous = 0 ) const |
virtual QtMedia::AvailabilityError | availabilityError () const |
virtual bool | isAvailable () const |
void | capture ( const QString & file ) |
void | error ( QStillImageCapture::Error error ) |
void | imageCaptured ( const QString & fileName, const QImage & preview ) |
void | imageSaved ( const QString & fileName ) |
void | readyForCaptureChanged ( bool ready ) |
The QStillImageCapture class is used for the recording of media content.
The QStillImageCapture class is a high level images recording class. It's not intended to be used alone but for accessing the media recording functions of other media objects, like QCamera.
camera = new QCamera; viewFinder = new QVideoWidget(camera); viewFinder->show(); imageCapture = new QStillImageCapture(camera); camera->start(); imageCapture->capture(fileName);
See also QCamera.
Constant | Value | Description |
---|---|---|
QStillImageCapture::NoError | 0 | No Errors. |
QStillImageCapture::NotReadyError | 1 | The service is not ready for capture yet. |
QStillImageCapture::ResourceError | 2 | Device is not ready or not available. |
QStillImageCapture::NotSupportedFeatureError | 3 | Device does not support stillimages capture. |
QStillImageCapture::FormatError | 4 | Current format is not supported. |
Indicates the service is ready to capture an image immediately.
Access functions:
bool | isReadyForCapture () const |
Notifier signal:
void | readyForCaptureChanged ( bool ready ) |
Constructs a media recorder which records the media produced by mediaObject.
The parent is passed to QMediaObject.
Destroys images capture object.
Reimplemented from QMediaObject::availabilityError().
Returns the availability error code.
Capture the image and save it to file. This operation is asynchronous in majority of cases, followed by signals QStillImageCapture::imageCaptured(), QStillImageCapture::imageSaved() or QStillImageCapture::error()
Returns the image encoder settings being used.
See also setEncodingSettings().
Returns the current error state.
See also errorString().
Signals that an error has occurred.
Returns a string describing the current error state.
See also error().
Returns a description of an image codec.
Reimplemented from QMediaObject::isAvailable().
Returns true if the images capture service ready to use.
Signals that a camera's ready for capture state has changed.
Sets the image encodeing settings.
If some parameters are not specified, or null settings are passed, the encoder choose the default encoding parameters.
See also encodingSettings().
Returns a list of supported image codecs.
Returns a list of resolutions images can be encoded at.
If non null image settings parameter is passed, the returned list is reduced to resolution supported with partial settings like image codec or quality applied.
If the encoder supports arbitrary resolutions within the supported range, *continuous is set to true, otherwise *continuous is set to false.
See also QImageEncoderSettings::resolution().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |