• Dean Liao's avatar
    media: Add VideoFrameLayout class. · 5a5ed1d0
    Dean Liao authored
    As current VideoFrame cannot represent real buffer layout, I
    propose to add a new class, VideoFrameLayout, to store size
    of physical buffers codec needs as well as format and
    coded_size of a frame. Also, it stores stride (bytesperline)
    per buffer to calculate each color plane's size.
    
    BUG=b:110815424
    TEST=pass media_unittests --gtest_filter=VideoFrameLayout.*
    
    Change-Id: Idf96adff1a5d28d4b60bfb208bb51e197d3292ae
    Reviewed-on: https://chromium-review.googlesource.com/1114568
    Commit-Queue: Shuo-Peng Liao <deanliao@google.com>
    Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#575569}
    5a5ed1d0
video_frame_layout.h 3.01 KB