Allow custom VideoFrameLayout when wrapping VideoFrame
FuchsiaVideoDecoder needs to be able to return frames with stride != width. Previously VideoFrameLayout::Wrap*() functions didn't allow to wrap such frames. This CL adds VideoFrame::WrapExternalDataWithLayout() which allows to pass frame layout explicitly. FuchsiaVideoDecoder uses the new function to create VideoFrame instances it returns. Bug: 876519 Change-Id: I2deaa15e5311dafd1c30a80a525530e2d70ee8e9 Reviewed-on: https://chromium-review.googlesource.com/c/1303965 Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Reviewed-by:Dan Sanders <sandersd@chromium.org> Cr-Commit-Position: refs/heads/master@{#604639}
Showing
This diff is collapsed.
Please register or sign in to comment