• Chih-Yu Huang's avatar
    media/gpu/chromeos: Specify DmabufVideoFramePool format by Fourcc. · 85fea162
    Chih-Yu Huang authored
    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: default avatarAlexandre Courbot <acourbot@chromium.org>
    Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#715657}
    85fea162
v4l2_slice_video_decoder.cc 18 KB