summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--v3/EmulatedBaseCamera.cpp11
-rw-r--r--v3/EmulatedBaseCamera.h9
-rw-r--r--v3/EmulatedCamera3.cpp11
-rw-r--r--v3/EmulatedCamera3.h2
-rwxr-xr-xv3/EmulatedCameraFactory.cpp43
-rwxr-xr-xv3/EmulatedFakeCamera3.cpp24
-rwxr-xr-xv3/EmulatedFakeCamera3.h4
-rwxr-xr-xv3/fake-pipeline2/Sensor.cpp5
-rwxr-xr-xv3/fake-pipeline2/camera_hw.cpp190
-rwxr-xr-xv3/fake-pipeline2/camera_hw.h5
10 files changed, 201 insertions, 103 deletions
diff --git a/v3/fake-pipeline2/camera_hw.h b/v3/fake-pipeline2/camera_hw.h
index 30a1fb4..3de2e22 100755
--- a/v3/fake-pipeline2/camera_hw.h
+++ b/v3/fake-pipeline2/camera_hw.h
@@ -52,6 +52,9 @@ struct VideoInfo {
int idx;
int fd;
+
+ int tempbuflen;
+ int dev_status;
};
extern int camera_open(struct VideoInfo *cam_dev);
@@ -65,6 +68,8 @@ extern int stop_capturing(struct VideoInfo *vinfo);
extern int releasebuf_and_stop_capturing(struct VideoInfo *vinfo);
extern uintptr_t get_frame_phys(struct VideoInfo *vinfo);
+extern void set_device_status(struct VideoInfo *vinfo);
+extern int get_device_status(struct VideoInfo *vinfo);
extern void *get_frame(struct VideoInfo *vinfo);
extern void *get_picture(struct VideoInfo *vinfo);