summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--v3/EmulatedFakeCamera3.cpp51
-rw-r--r--v3/EmulatedFakeCamera3.h5
-rw-r--r--v3/fake-pipeline2/Sensor.cpp80
-rw-r--r--v3/fake-pipeline2/Sensor.h8
-rw-r--r--v3/fake-pipeline2/camera_hw.cpp14
-rw-r--r--[-rwxr-xr-x]v3/fake-pipeline2/camera_hw.h2
6 files changed, 122 insertions, 38 deletions
diff --git a/v3/fake-pipeline2/Sensor.h b/v3/fake-pipeline2/Sensor.h
index 4d8d308..bcb4f7f 100644
--- a/v3/fake-pipeline2/Sensor.h
+++ b/v3/fake-pipeline2/Sensor.h
@@ -175,7 +175,7 @@ class Sensor: private Thread, public virtual RefBase {
/*
* Power control
*/
-
+ void sendExitSingalToSensor();
status_t startUp(int idx);
status_t shutDown();
@@ -239,13 +239,13 @@ class Sensor: private Thread, public virtual RefBase {
// Wait until the sensor outputs its next vertical sync signal, meaning it
// is starting readout of its latest frame of data. Returns true if vertical
// sync is signaled, false if the wait timed out.
- bool waitForVSync(nsecs_t reltime);
+ status_t waitForVSync(nsecs_t reltime);
// Wait until a new frame has been read out, and then return the time
// capture started. May return immediately if a new frame has been pushed
// since the last wait for a new frame. Returns true if new frame is
// returned, false if timed out.
- bool waitForNewFrame(nsecs_t reltime,
+ status_t waitForNewFrame(nsecs_t reltime,
nsecs_t *captureTime);
/*
@@ -333,6 +333,8 @@ class Sensor: private Thread, public virtual RefBase {
SensorListener *mListener;
// End of readout variables
+ bool mExitSensorThread;
+
// Time of sensor startup, used for simulation zero-time point
nsecs_t mStartupTime;