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:ccameron chromium <ccameron@chromium.org> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Reviewed-by:
vikas soni <vikassoni@chromium.org> Commit-Queue: Maggie Chen <magchen@chromium.org> Cr-Commit-Position: refs/heads/main@{#978767}
Loading
Please register or sign in to comment