History log of /external/qemu/android/camera/camera-capture-windows.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7f661af7cfca4b7857d30d598923dd2095f78ff0 02-May-2012 Andrew Hsieh <andrewhsieh@google.com> Fixed compilation error with new x86_64-w64-mingw32 compiler

Fixed the following for the new compiler
1. android/camera/camera-capture-windows.c:
Added "#include <windows.h>"
2. SetClassLong() is deprecated. GCL_HICON doesn't exist in _WIN64.
Replacted it with SetClassLongPtr(h, GCLP_HICON, icon)
3. [v]asprintf now actually exisit in libray. Changed the prototype
to match the standard ones but will remove them later for GCC 4.5 and up.
4. Renamed _set_errno to set_errno because it exists in stdlib.h.
Renamed _fix_errno to fix_errno for consistency.
5. EAI_NODATA and EAI_NONAME become the same things.
6. ddk/*h don't exisit. tap-win32.c actually only needs winioctl.h which
provide constants. I have make sure they got the same constants in
both old and new mingw compilers
7. #undef DELETE before redefining it for KEY_CODE in hw-events.h because
DELETE is defined to be a constant in standard header.

The above don't break the old one (ie. /usr/bin/i586-mingw32msvc-*)

Change-Id: Ic7d13fd0fd237d433f923ee01c6ce50f5c02f095
/external/qemu/android/camera/camera-capture-windows.c
a3338e7214cd0c69912866c6d71d8700c6ab35e2 22-Feb-2012 Vladimir Chtchetkine <vchtchetkine@google.com> Fixes camera RTE on Windows

The root of the issue was that some cameras / camera drivers don't set
compression type in the bitmap header explicitly to a V4L2_XXX, but set
it to BI_RGB, which is unknown value for frame converters. To fix this,
this CL converts BI_RGB to an appropriate V4L2_XXX value.

Change-Id: Ifd70aa44138ab38fe66e8c80806a7dbb91725cf2
/external/qemu/android/camera/camera-capture-windows.c
9d5d34571cb8f596e6ed215e5778c94b8207a33b 02-Feb-2012 Vladimir Chtchetkine <vchtchetkine@google.com> Fix problem with using clipboard in Windows camera emulation

This is a fix for a user reported issue #24794. In the nutshell, when emulator grabs
a frame from webcam it leaves its bitmap in the clipboard (which is global). So, when
user does a 'paste' somewhere else, that bitmap will be pasted there. Being bad by
itself, it gets worst, because 'copy / paste' will be globally broken while camera
application is running in the emulator. I.e, if you have camera app running in the
emulator, and at the same time you're editing a Word file (for example), copy / paste
will not work in Word.

This CL contains a fix such as when possible, camera emulator on windows will not use
clipboard to grab video frames, but will grab video frames using frame callback.

Change-Id: I115a9c653b252620cf5407173c1e1eec69b4a2ee
/external/qemu/android/camera/camera-capture-windows.c
37fb84f8b26e3061c1ccb404bf4c962eed5e6057 23-Nov-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Implements white balance and exposure compensation for emulated webcam

Change-Id: Id2dbb227280f0c0e1b5708ef78b9f19b087f92d5
/external/qemu/android/camera/camera-capture-windows.c
e080a45d3e29e41bce06669b79d5eb04f0fd05ef 15-Nov-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Add 320x240 frame support for Windows and Mac camera emulation

Change-Id: I54897ca86b372d98c7a30a47ecf88a4df8ee0fe9
/external/qemu/android/camera/camera-capture-windows.c
8d9a7a5fa4bd32f9b8aeb7b9e3bd047a475539ab 15-Nov-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Add required frame dimensions for Win and Mac.

Camera framework requires that certain frame dimensions must be supported by the
camera devices. Since on Windows and Mac we have no way of knowing the real
webcam capabilities, but camera API there pretty much allows us to choose any
frame dimensions that we want, we will hard-code those that are required by
the camera framework.

Change-Id: I625381776f374103d2ac1c62fabae23b1c5afa88
/external/qemu/android/camera/camera-capture-windows.c
c68dbbef0118eab4256acfc0d9430f0e557a82a1 23-Sep-2011 Vladimir Chtchetkine <vchtchetkine@google.com> 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
/external/qemu/android/camera/camera-capture-windows.c
a83cf909c84fccbf99863446825014b871f74cec 22-Sep-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Fix video recording on Windows

Reseting capture windows on each "stop capture" + setting capture parameters allow to
change video frame dimensions.

Change-Id: I0ce8ed77dfa9838894acb9e9e84d84692bb3d520
/external/qemu/android/camera/camera-capture-windows.c
6ef999d93532fdb0b9f22e14bf2095e4d3ee0355 22-Sep-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Fix captured frame pixel format on Windows

Apparently, bitmap obtained through the capXxx + clipboard API is formatted
with BRG, not RGB format.

Change-Id: Ib161be50d2d3258045a467b152a5a750e1a8fb42
/external/qemu/android/camera/camera-capture-windows.c
b8dcaffaf7dcb0c795d2776abf3bb75196f8527c 17-Sep-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Add -webcam commandline option to control webcam emulation

-webcam name=<name>[,dir=<direction>] options controls web cameras to use for emulation.

Change-Id: I961fd399c7e041541adda040dd24f194cc383cb9
/external/qemu/android/camera/camera-capture-windows.c
cf1c2c70dd99e7d78816ba9a558f9ed8c016862b 04-Sep-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Implements camera service in emulator

This is fully functional camera service implementation, that works (tested) on both,
Linux and Windows.

Fixed little/big endian bugs in the coverter code. Moved preview frames to use RGB32
instead of RGB565: RGB32 conversions are simpler and faster in the guest.

Made "payload size send" a separate routine

Change-Id: I96954f4c2cb4e4ef4dd6a20e41897d79c5037bae
/external/qemu/android/camera/camera-capture-windows.c
4ed09fd35085c96ae8edbda87757187f75eeac8d 18-Aug-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Video capturing code for Linux, and Windows

Contains API that connects to a camera device, and pulls video frames from it
on request from the client.

Change-Id: If1d80c57611afff637a7734ce5c3a2c874cfc85a
/external/qemu/android/camera/camera-capture-windows.c