// we use. For now we will not set any FPS.
d_ptr->setCaps("image-capture-caps", d->resolution.captureResolution(), -1);
- d_ptr->setPreviewSize(d->resolution.previewResolution());
+ enablePreview();
// If we don't reset the caps then: if we switch from video to image then we fail
// the next time we restart the pipeline.
QtCamImageResolution QtCamImageMode::currentResolution() {
return d->resolution;
}
+
+void QtCamImageMode::enablePreview() {
+ d_ptr->setPreviewSize(d->resolution.previewResolution());
+}