summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2012-09-04 12:27:14 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-04 12:27:14 -0700
commit3b98ffb168119f657befb1e3204183401ef4fd4f (patch)
tree9df13c12a3bff5502ff618e1cb70a68813651149 /include
parent70d87bf07ecd686a2860980fb8e7d18fb2312dbd (diff)
downloadhardware_libhardware-3b98ffb168119f657befb1e3204183401ef4fd4f.zip
hardware_libhardware-3b98ffb168119f657befb1e3204183401ef4fd4f.tar.gz
hardware_libhardware-3b98ffb168119f657befb1e3204183401ef4fd4f.tar.bz2
Revert "Add reprocess method, redefine gralloc ZSL usage flag"
More dependent projects than I realized This reverts commit 7fa4a7e706cd8da0a4fd6722ff3b00b8088a01ae Change-Id: I813ffde0f8d602fd6d75186bf82e93c7ffed9a9a
Diffstat (limited to 'include')
-rw-r--r--include/hardware/camera2.h42
-rw-r--r--include/hardware/gralloc.h4
2 files changed, 1 insertions, 45 deletions
diff --git a/include/hardware/camera2.h b/include/hardware/camera2.h
index 8b789ec..8209985 100644
--- a/include/hardware/camera2.h
+++ b/include/hardware/camera2.h
@@ -667,48 +667,6 @@ typedef struct camera2_device_ops {
uint32_t *max_buffers);
/**
- * allocate_reprocess_stream_from_stream:
- *
- * Allocate a new input stream for use, which will use the buffers allocated
- * for an existing output stream. That is, after the HAL enqueues a buffer
- * onto the output stream, it may see that same buffer handed to it from
- * this input reprocessing stream. After the HAL releases the buffer back to
- * the reprocessing stream, it will be returned to the output queue for
- * reuse.
- *
- * Error conditions:
- *
- * - Using an output stream of unsuitable size/format for the basis of the
- * reprocessing stream.
- *
- * - Attempting to allocatee too many reprocessing streams at once.
- *
- * Input parameters:
- *
- * - output_stream_id: The ID of an existing output stream which has
- * a size and format suitable for reprocessing.
- *
- * - reprocess_stream_ops: A structure of function pointers for acquiring
- * and releasing buffers for this stream. The underlying stream will use
- * the same graphics buffer handles as the output stream uses.
- *
- * Output parameters:
- *
- * - stream_id: An unsigned integer identifying this stream. This value is
- * used in incoming requests to identify the stream, and in releasing the
- * stream. These ids are numbered separately from the input stream ids.
- *
- * The HAL client must always release the reprocessing stream before it
- * releases the output stream it is based on.
- *
- */
- int (*allocate_reprocess_stream_from_stream)(const struct camera2_device *,
- uint32_t output_stream_id,
- const camera2_stream_in_ops_t *reprocess_stream_ops,
- // outputs
- uint32_t *stream_id);
-
- /**
* Release a reprocessing stream. Returns an error if called when
* get_in_progress_count is non-zero, or if the stream id is not
* valid.
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h
index 7c819f0..4fdd2e6 100644
--- a/include/hardware/gralloc.h
+++ b/include/hardware/gralloc.h
@@ -81,9 +81,7 @@ enum {
/* buffer will be read by the HW camera pipeline */
GRALLOC_USAGE_HW_CAMERA_READ = 0x00040000,
/* buffer will be used as part of zero-shutter-lag queue */
- GRALLOC_USAGE_HW_CAMERA_ZSL = 0x00060000,
- /* mask for the camera access values */
- GRALLOC_USAGE_HW_CAMERA_MASK = 0x00060000,
+ GRALLOC_USAGE_HW_CAMERA_ZSL = 0x00080000,
/* mask for the software usage bit-mask */
GRALLOC_USAGE_HW_MASK = 0x00071F00,