hardware: samsung_slsi: libcamera2: add new HAL stub
authorEino-Ville Talvala <etalvala@google.com>
Tue, 4 Sep 2012 20:41:55 +0000 (13:41 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Tue, 4 Sep 2012 20:41:55 +0000 (13:41 -0700)
Add stub method for allocate_reprocess_stream_from_stream to match new
camera2_device_ops.

Change-Id: I3310d5e766bc5a98e923cc758b0a64594555bd6e

libcamera2/ExynosCameraHWInterface2.cpp

index 90d7642f46ccab5b53630792328edecf81383bd1..b2b9a01e9ca94695d8f82cd03d5e31cb4002ad04 100644 (file)
@@ -5241,6 +5241,18 @@ static int HAL2_device_allocate_reprocess_stream(
                                     stream_id, consumer_usage, max_buffers);
 }
 
+static int HAL2_device_allocate_reprocess_stream_from_stream(
+           const struct camera2_device *dev,
+            uint32_t output_stream_id,
+            const camera2_stream_in_ops_t *reprocess_stream_ops,
+            // outputs
+            uint32_t *stream_id)
+{
+    ALOGV("DEBUG(%s):", __FUNCTION__);
+    // Temporary stub
+    return 0;
+}
+
 static int HAL2_device_release_reprocess_stream(
         const struct camera2_device *dev,
             uint32_t stream_id)
@@ -5343,6 +5355,7 @@ static camera2_device_ops_t camera2_device_ops = {
         SET_METHOD(register_stream_buffers),
         SET_METHOD(release_stream),
         SET_METHOD(allocate_reprocess_stream),
+        SET_METHOD(allocate_reprocess_stream_from_stream),
         SET_METHOD(release_reprocess_stream),
         SET_METHOD(trigger_action),
         SET_METHOD(set_notify_callback),