diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-09-23 07:58:34 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-09-23 09:08:26 -0700 |
commit | c68dbbef0118eab4256acfc0d9430f0e557a82a1 (patch) | |
tree | 2308288c3fae94e758fb5c6a6d770cacebc93483 /android/camera/camera-format-converters.c | |
parent | 65769f5966d86278cccab3f43e2b67f499de4314 (diff) | |
download | external_qemu-c68dbbef0118eab4256acfc0d9430f0e557a82a1.zip external_qemu-c68dbbef0118eab4256acfc0d9430f0e557a82a1.tar.gz external_qemu-c68dbbef0118eab4256acfc0d9430f0e557a82a1.tar.bz2 |
Timeout frame capturing.
It has been observed on some of the MS camera devices, that device may got stuck on something
that would alwais return EAGAIN when queried for the next video frame. This requires us to
timeout the loop that repeats attempts to acquire first frame from the device. Also added
detection and reporting of I/O errors occurred during frame capturing.
Also, this CL contains some cosmetick changes to error and warning reporting.
Change-Id: I81edaf5ff8bfe147dbe4510e1446e77a87817f37
Diffstat (limited to 'android/camera/camera-format-converters.c')
-rwxr-xr-x | android/camera/camera-format-converters.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/android/camera/camera-format-converters.c b/android/camera/camera-format-converters.c index c675f15..3366a44 100755 --- a/android/camera/camera-format-converters.c +++ b/android/camera/camera-format-converters.c @@ -24,9 +24,10 @@ #endif #include "android/camera/camera-format-converters.h"
+#define E(...) derror(__VA_ARGS__) +#define W(...) dwarning(__VA_ARGS__) #define D(...) VERBOSE_PRINT(camera,__VA_ARGS__) -#define W(...) VERBOSE_PRINT(camera,__VA_ARGS__) -#define E(...) VERBOSE_PRINT(camera,__VA_ARGS__) +#define D_ACTIVE VERBOSE_CHECK(camera) /* * NOTE: RGB and big/little endian considerations. Wherewer in this code RGB |