Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: Use VideoFrameLayout to encapsulate fields in VideoFrame
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: Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#578214}
- Loading branch information