Commit c59f4f11 authored by Sasha McIntosh's avatar Sasha McIntosh Committed by Commit Bot

gpu/mac: Fix video capture bug

Support for the current |best_fourcc| value of kCVPixelFormatType_422YpCbCr8
by FourCCToChromiumPixelFormat was removed in https://chromium-review.googlesource.com/c/chromium/src/+/1732895.
This change updates the |best_fourcc| to a supported format.

Bug: 1012204
Bug: 988538
Change-Id: I4cbff3bdf495806f7290bd2edf2c33cee5d67925
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1853864
Commit-Queue: Sasha McIntosh <sashamcintosh@chromium.org>
Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705613}
parent b6a67a3a
......@@ -344,7 +344,7 @@ void ExtractBaseAddressAndLength(char** base_address,
frameHeight_ = height;
frameRate_ = frameRate;
FourCharCode best_fourcc = kCVPixelFormatType_422YpCbCr8;
FourCharCode best_fourcc = kCMPixelFormat_422YpCbCr8_yuvs;
const bool prefer_mjpeg =
width > kMjpegWidthThreshold || height > kMjpegHeightThreshold;
for (AVCaptureDeviceFormat* format in captureDevice_.formats) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment