AVFoundation: mirror viewfinder frames of front-facing cameras.
Change-Id: I95920aa459ff0931819cb6f8278ab296db542601 Reviewed-by: Andy Nichols <andy.nichols@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
c6ec402d25
commit
54066d2c21
@@ -155,7 +155,15 @@ void AVFCameraSession::setVideoOutput(AVFVideoRendererControl *output)
|
||||
{
|
||||
m_videoOutput = output;
|
||||
if (output)
|
||||
output->configureAVCaptureSession(m_captureSession);
|
||||
output->configureAVCaptureSession(this);
|
||||
}
|
||||
|
||||
AVCaptureDevice *AVFCameraSession::videoCaptureDevice() const
|
||||
{
|
||||
if (m_videoInput)
|
||||
return m_videoInput.device;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
QCamera::State AVFCameraSession::state() const
|
||||
|
||||
Reference in New Issue
Block a user