Skip to content

Commit

Permalink
media: Use VideoFrameLayout to encapsulate fields in VideoFrame
Browse files Browse the repository at this point in the history
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
Dean Liao authored and Commit Bot committed Jul 26, 2018
1 parent 4fa1b62 commit 534924a
Show file tree
Hide file tree
Showing 7 changed files with 262 additions and 237 deletions.
Loading

0 comments on commit 534924a

Please sign in to comment.