-
Fish Lin authored
First, make mojo support deliver storage type, this is needed for v4l2_video_encode_accelerator to read DMABUF correctly, otherwise it will use kShmem. Sencond, DMABUF contains stride, size, and file handle, add the conversion code between VideoFrameData and VideoFrame. Current implementation only support 2 planes DMABUF for NV12, if we'll support more format, may need to modify some code to support them. BUG=chromium:963812 TEST=Deliver DMABUF frame from camera and send it into video encoder through mojo interface, and it can encode correct video out. Change-Id: Ibf9614b6389e080bc0599226c4a20a410bb9666b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1631160 Commit-Queue: Fish Lin <linfish@google.com> Auto-Submit: Fish Lin <linfish@google.com> Reviewed-by:
Chrome Cunningham <chcunningham@chromium.org> Reviewed-by:
Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#665061}
752b4919