Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QCameraImageCaptureControl Class

The QCameraImageCaptureControl class provides a control interface for image capture services. More...

 #include <QCameraImageCaptureControl>

Inherits: QMediaControl.

Public Functions

~QCameraImageCaptureControl()
virtual void cancelCapture() = 0
virtual int capture(const QString & fileName) = 0
virtual QCameraImageCapture::DriveMode driveMode() const = 0
virtual bool isReadyForCapture() const = 0
virtual void setDriveMode(QCameraImageCapture::DriveMode mode) = 0
  • 31 public functions inherited from QObject

Signals

void error(int id, int error, const QString & errorString)
void imageAvailable(int requestId, const QVideoFrame & buffer)
void imageCaptured(int requestId, const QImage & preview)
void imageExposed(int requestId)
void imageMetadataAvailable(int id, const QString & key, const QVariant & value)
void imageSaved(int requestId, const QString & fileName)
void readyForCaptureChanged(bool ready)

Protected Functions

QCameraImageCaptureControl(QObject * parent = 0)
  • 9 protected functions inherited from QObject

Macros

QCameraImageCaptureControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject

Detailed Description

The QCameraImageCaptureControl class provides a control interface for image capture services.

The interface name of QCameraImageCaptureControl is org.qt-project.qt.cameraimagecapturecontrol/5.0 as defined in QCameraImageCaptureControl_iid.

See also QMediaService::requestControl().

Member Function Documentation

QCameraImageCaptureControl::QCameraImageCaptureControl(QObject * parent = 0) [protected]

Constructs a new image capture control object with the given parent

QCameraImageCaptureControl::~QCameraImageCaptureControl()

Destroys an image capture control.

void QCameraImageCaptureControl::cancelCapture() [pure virtual]

Cancel pending capture requests.

int QCameraImageCaptureControl::capture(const QString & fileName) [pure virtual]

Initiates the capture of an image to fileName. The fileName can be relative or empty, in this case the service should use the system specific place and file naming scheme.

The Camera service should save all the capture parameters like exposure settings or image processing parameters, so changes to camera paramaters after capture() is called do not affect previous capture requests.

Returns the capture request id number, which is used later with imageExposed(), imageCaptured() and imageSaved() signals.

QCameraImageCapture::DriveMode QCameraImageCaptureControl::driveMode() const [pure virtual]

Returns the current camera drive mode.

See also setDriveMode().

void QCameraImageCaptureControl::error(int id, int error, const QString & errorString) [signal]

Signals the capture request id failed with error code and message errorString.

See also QCameraImageCapture::Error.

void QCameraImageCaptureControl::imageAvailable(int requestId, const QVideoFrame & buffer) [signal]

Signals that a captured buffer with a requestId is available.

void QCameraImageCaptureControl::imageCaptured(int requestId, const QImage & preview) [signal]

Signals that an image with it requestId has been captured and a preview is available.

void QCameraImageCaptureControl::imageExposed(int requestId) [signal]

Signals that an image with it requestId has just been exposed. This signal can be used for the shutter sound or other indicaton.

void QCameraImageCaptureControl::imageMetadataAvailable(int id, const QString & key, const QVariant & value) [signal]

Signals that a metadata for an image with request id is available. Signal also contains the key and value of the metadata.

This signal should be emitted between imageExposed and imageSaved signals.

void QCameraImageCaptureControl::imageSaved(int requestId, const QString & fileName) [signal]

Signals that a captured image with a requestId has been saved to fileName.

bool QCameraImageCaptureControl::isReadyForCapture() const [pure virtual]

Identifies if a capture control is ready to perform a capture immediately (all the resources necessary for image capture are allocated, hardware initialized, flash is charged, etc).

Returns true if the camera is ready for capture; and false if it is not.

It's permissible to call capture() while the camera status is QCamera::ActiveStatus regardless of isReadyForCapture property value. If camera is not ready to capture image immediately, the capture request is queued with all the related camera settings to be executed as soon as possible.

void QCameraImageCaptureControl::readyForCaptureChanged(bool ready) [signal]

Signals that a capture control's ready state has changed.

void QCameraImageCaptureControl::setDriveMode(QCameraImageCapture::DriveMode mode) [pure virtual]

Sets the current camera drive mode.

See also driveMode().

Macro Documentation

QCameraImageCaptureControl_iid

org.qt-project.qt.cameraimagecapturecontrol/5.0

Defines the interface name of the QCameraImageCaptureControl class.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web