Skip to content
Commit 3c5a42ed authored by magchen's avatar magchen Committed by Chromium LUCI CQ
Browse files

Support odd sized video width in CreateHardwareFrame on Mac

Add a feature switch OddWidthMultiPlanarBuffers to enable the support
for odd sized videos.

The resources in GpuMemoryBufferVideoFramePool can have odd size now.
GpuMemoryBufferVideoFramePool::PoolImpl::CopyVideoFrameToGpuMemoryBuffers
also works for output format I420, P010, NV12_SINGLE_GMB, and
NV12_DUAL_GMB with odd size.

Add new tests to test CreateHardwareFrame for odd sized videos. The
video frame memory is created with exactly the same size as requested.

Bug:1224781, 1275026, 1226056

Change-Id: I124ebab446e1cd3e332e98345144f51c9c1964c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3498383


Reviewed-by: default avatarccameron chromium <ccameron@chromium.org>
Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
Reviewed-by: default avatarvikas soni <vikassoni@chromium.org>
Commit-Queue: Maggie Chen <magchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#978767}
parent fc2923ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment