- 
Ricky Liang authored
The Chrome OS HAL VideoCaptureDevice receives the captured data through DMAbuf. On certain platforms the DMAbuf are allocated under some alignment constraints, e.g. on Intel platform the buffer plane width is aligned to 64. Hence when mapped to CPU the memory planes are not contiguous so directly calling libyuv::ConverToI420() with the buffer address and size does not work. BUG=b:78259838 TEST=Make sure camera preview with resolution 2592x1944 displays correctly on DUT. Change-Id: I85cf4fadf24a9374ee837e820dbd89881d14f475 Reviewed-on: https://chromium-review.googlesource.com/1029935 Commit-Queue: Ricky Liang <jcliang@chromium.org> Reviewed-by:Wez <wez@chromium.org> Reviewed-by:
Christian Fremerey <chfremer@chromium.org> Cr-Commit-Position: refs/heads/master@{#555386}
290f3130