Skip to content

Commit

Permalink
[M110] Allow NV12 pixel format in Blobs
Browse files Browse the repository at this point in the history
TESTED=Manually confirmed that this fixes crbug.com/1287227 on windows with MediaFoundationD3D11VideoCapture feature enabled.

(cherry picked from commit e303c21)

Bug: 1287227
Change-Id: Ib63f44d110c0a3de9f5f84db95efc5c0f8ebfee4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4195741
Reviewed-by: Markus Handell <handellm@google.com>
Commit-Queue: Ilya Nikolaevskiy <ilnik@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Markus Handell <handellm@google.com>
Cr-Original-Commit-Position: refs/heads/main@{#1097335}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4200426
Cr-Commit-Position: refs/branch-heads/5481@{#716}
Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
  • Loading branch information
Ilya Nikolaevskiy authored and Chromium LUCI CQ committed Jan 27, 2023
1 parent 1ff0dd6 commit 1582fb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions media/capture/video/blob_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ mojom::BlobPtr RotateAndBlobify(const uint8_t* buffer,
src_format = libyuv::FOURCC_I420;
else if (pixel_format == VideoPixelFormat::PIXEL_FORMAT_RGB24)
src_format = libyuv::FOURCC_24BG;
else if (pixel_format == VideoPixelFormat::PIXEL_FORMAT_NV12)
src_format = libyuv::FOURCC_NV12;
else
return nullptr;

Expand Down

0 comments on commit 1582fb7

Please sign in to comment.