-rw-r--r-- | v3/EmulatedBaseCamera.cpp | 11 | ||||
-rw-r--r-- | v3/EmulatedBaseCamera.h | 9 | ||||
-rw-r--r-- | v3/EmulatedCamera3.cpp | 11 | ||||
-rw-r--r-- | v3/EmulatedCamera3.h | 2 | ||||
-rwxr-xr-x | v3/EmulatedCameraFactory.cpp | 43 | ||||
-rwxr-xr-x | v3/EmulatedFakeCamera3.cpp | 24 | ||||
-rwxr-xr-x | v3/EmulatedFakeCamera3.h | 4 | ||||
-rwxr-xr-x | v3/fake-pipeline2/Sensor.cpp | 5 | ||||
-rwxr-xr-x | v3/fake-pipeline2/camera_hw.cpp | 190 | ||||
-rwxr-xr-x | v3/fake-pipeline2/camera_hw.h | 5 |
10 files changed, 201 insertions, 103 deletions
diff --git a/v3/fake-pipeline2/Sensor.cpp b/v3/fake-pipeline2/Sensor.cpp index abce83b..aea3ab0 100755 --- a/v3/fake-pipeline2/Sensor.cpp +++ b/v3/fake-pipeline2/Sensor.cpp @@ -182,7 +182,7 @@ Sensor::Sensor(): } Sensor::~Sensor() { - shutDown(); + //shutDown(); } status_t Sensor::startUp(int idx) { @@ -2015,6 +2015,9 @@ void Sensor::captureNV21(StreamBuffer b, uint32_t gain) { return ; } while(1){ + if (get_device_status(vinfo)) { + break; + } src = (uint8_t *)get_frame(vinfo); if (NULL == src) { CAMHAL_LOGDA("get frame NULL, sleep 5ms"); |