AVFCameraViewfinderSettings - add NV12 format
authorTimur Pocheptsov <Timur.Pocheptsov@digia.com>
Tue, 17 Mar 2015 08:48:54 +0000 (09:48 +0100)
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>
Fri, 20 Mar 2015 13:23:00 +0000 (13:23 +0000)
commit09afe9377d41171368c083b7cb79fd888f6d8979
treea992ca2f46756e3b6c7b32eb0d4a4fb8413c878e
parent10354f4127cc569535f28e7f758b58c5bd18bcd6
AVFCameraViewfinderSettings - add NV12 format

Add QVideoFrame::Format_NV12 (AVFoundation has kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
and kCVPixelFormatType_420YpCbCr8BiPlanarFullRange). Report it (set it) only if
it's supported by renderer's surface. Add bi-planar format support into CVPixelBufferVideoBuffer.

Change-Id: Ibc1c2be056bddf5cf3b595570fc40c626ee3ccf5
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
src/plugins/avfoundation/camera/avfcamerarenderercontrol.mm
src/plugins/avfoundation/camera/avfcameraviewfindersettingscontrol.h
src/plugins/avfoundation/camera/avfcameraviewfindersettingscontrol.mm