summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2015-08-05 15:43:30 -0700
committerEino-Ville Talvala <etalvala@google.com>2015-08-11 16:26:07 -0700
commitc52b876faea09e94b69fee865e249cb3a2b0bfb1 (patch)
tree8cdaa596176fd3eeb41ee6ff941059b50f2f527a /opengl
parent56a713e814521b8f34ff735ce3c2d9f729c88d36 (diff)
downloadandroid_device_generic_goldfish-c52b876faea09e94b69fee865e249cb3a2b0bfb1.tar.gz
android_device_generic_goldfish-c52b876faea09e94b69fee865e249cb3a2b0bfb1.tar.bz2
android_device_generic_goldfish-c52b876faea09e94b69fee865e249cb3a2b0bfb1.zip
Camera/gralloc: Add basic capability handling, support DEPTH
Also fix bug with AE not correctly overriding sensor values when ON but still INACTIVE. - Add Y16 support to gralloc (treat exactly as RAW16) - Add Y16 output support to camera - Adds depth static and dynamic fields to camera: - poseRotation - poseTranslation - intrinsicCalibration - radialDistortion - availableDepthStreamConfigurations - availableDepthMinFrameDurations - availableDepthStallDurations - depthIsExclusive Bug: 20537722 Change-Id: If64bb2a698a8a49777f848cfc6401d8fba299541
Diffstat (limited to 'opengl')
-rw-r--r--opengl/system/gralloc/gralloc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/opengl/system/gralloc/gralloc.cpp b/opengl/system/gralloc/gralloc.cpp
index 9659e3d..ef18511 100644
--- a/opengl/system/gralloc/gralloc.cpp
+++ b/opengl/system/gralloc/gralloc.cpp
@@ -212,10 +212,11 @@ static int gralloc_alloc(alloc_device_t* dev,
glType = GL_UNSIGNED_SHORT_5_6_5;
break;
case HAL_PIXEL_FORMAT_RAW16:
+ case HAL_PIXEL_FORMAT_Y16:
bpp = 2;
align = 16*bpp;
if (! ((sw_read || hw_cam_read) && (sw_write || hw_cam_write) ) ) {
- // Raw sensor data only goes between camera and CPU
+ // Raw sensor data or Y16 only goes between camera and CPU
return -EINVAL;
}
// Not expecting to actually create any GL surfaces for this