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>
This commit is contained in:
@@ -74,6 +74,7 @@ private:
|
||||
void setFramerate(qreal minFPS, qreal maxFPS, bool useActive);
|
||||
void setPixelFormat(QVideoFrame::PixelFormat newFormat);
|
||||
AVCaptureDeviceFormat *findBestFormatMatch(const QCameraViewfinderSettings &settings) const;
|
||||
QVector<QVideoFrame::PixelFormat> viewfinderPixelFormats() const;
|
||||
bool convertPixelFormatIfSupported(QVideoFrame::PixelFormat format, unsigned &avfFormat) const;
|
||||
void applySettings();
|
||||
QCameraViewfinderSettings requestedSettings() const;
|
||||
|
||||
Reference in New Issue
Block a user