EmulatedFakeCamera2: Add features needed for recording support for 320x240, NV21

- Support 320x240 in addition to 640x480
- Support NV21 (monochrome only right now)
- Base simulated time on system time,
  since stagefright cares about timestamp base
- Use emulator magic gralloc format to enable gralloc to pick format based on
  destination.

Bug: 6243944
Change-Id: I3ea56bca726c69b51e03233ce86d4881401a3ffd
This commit is contained in:
Eino-Ville Talvala
2012-06-18 17:06:41 -07:00
parent ac4d519f43
commit ef0d02006a
5 changed files with 108 additions and 21 deletions

View File

@@ -43,7 +43,7 @@ typedef Vector<StreamBuffer> Buffers;
struct Stream {
const camera2_stream_ops_t *ops;
uint32_t width, height;
uint32_t format;
int32_t format;
uint32_t stride;
};