OSDN Git Service

Add HAL_PIXEL_FORMAT_BLOB format in cros gralloc
authorHeng-Ruey Hsu <henryhsu@chromium.org>
Thu, 27 Apr 2017 03:33:35 +0000 (11:33 +0800)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 3 May 2017 05:50:31 +0000 (22:50 -0700)
commitf4b7b8da0da92291007d5b14097992f23420b98d
tree42541eb0d9adb55c0c443993e1fbba70d7ff1df6
parent68af9c2b9ed1addebca93506d6a5b7f5a5eef7f7
Add HAL_PIXEL_FORMAT_BLOB format in cros gralloc

We convert HAL_PIXEL_FORMAT_BLOB to DRM_FORMAT_R8 for camera picture
taking. Choose DRM_FORMAT_R8 because <system/graphics.h> requires the
buffers with a format HAL_PIXEL_FORMAT_BLOB have a height of 1, and
width equal to their size in bytes.

BUG=b:37692495
TEST=open camera app and take a picture.

Change-Id: I11a82b057b7c1174dd946e0b7d3cbde9c1d630d9
Reviewed-on: https://chromium-review.googlesource.com/487552
Commit-Ready: Heng-ruey Hsu <henryhsu@google.com>
Tested-by: Heng-ruey Hsu <henryhsu@google.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
cros_gralloc/cros_gralloc_helpers.cc
mediatek.c
rockchip.c
vgem.c
virtio_gpu.c