• Dean Liao's avatar
    media: Use VideoFrameLayout to encapsulate fields in VideoFrame · 534924a3
    Dean Liao authored
    Use VideoFrameLayout to store format, coded_size, buffer_size
    and stride for each buffer. It is because VideoFrame::AllocateMemory()
    calculates buffer size which may not meet hardware's need.
    VideoFrameLayout is used to record size of buffer and stride the
    hardware expected so that VideoFrame::AllocateMemory() can
    allocate correct buffer for further use.
    
    BUG=b:110815424
    TEST=pass media_unittests
    
    Change-Id: I282dbec1d54019447934a499bc0cd5383ac0f86e
    Reviewed-on: https://chromium-review.googlesource.com/1122022
    Commit-Queue: Shuo-Peng Liao <deanliao@google.com>
    Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#578214}
    534924a3
video_utility.cc 6.75 KB