media/gpu/chromeos: Specify DmabufVideoFramePool format by Fourcc.
Originally DmabufVideoFramePool allocates frames by VideoFrameLayout, which mainly contains VideoPixelFormat and frame size. VideoPixelFormat is a enum that lists well-known pixel formats. However, we might need buffers with proprietary format during hardware-accelerated video decoding. To support that, we should use fourcc, which could also list proprietary formats, to indicate pixel format. This CL changes DmabufVideoFramePool to allocate frames by Fourcc instead of VideoPixelFormat. Bug: 1004727 Test: Run video_decode_accelerator_tests on Kevin and Eve Test: media_unittests --gtest_filter=FourccTest.* Test: media_unittests --gtest_filter=PlatformVideoFramePoolTest.* Change-Id: Ibebea0a93589d26c8c892585789301ca11dfb5ec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1895251 Commit-Queue: Chih-Yu Huang <akahuang@chromium.org> Reviewed-by:Alexandre Courbot <acourbot@chromium.org> Reviewed-by:
Hirokazu Honda <hiroh@chromium.org> Cr-Commit-Position: refs/heads/master@{#715657}
Showing
Please register or sign in to comment