summaryrefslogtreecommitdiffstats
path: root/liboverlay/v4l2_utils.h
diff options
context:
space:
mode:
authorhoony.yu <hoony.yu@samsung.com>2010-09-16 08:59:06 +0900
committerEd Heyl <edheyl@google.com>2010-09-17 16:05:47 -0700
commitdc7b509df677daf52b9a1757ca44bf67b7c04706 (patch)
treeef45dbdc720f5926ee54063ec0e42cf52c6dce90 /liboverlay/v4l2_utils.h
parent221e781dbe1a0684565b9576593e432ab6e912f1 (diff)
downloaddevice_samsung_crespo-dc7b509df677daf52b9a1757ca44bf67b7c04706.zip
device_samsung_crespo-dc7b509df677daf52b9a1757ca44bf67b7c04706.tar.gz
device_samsung_crespo-dc7b509df677daf52b9a1757ca44bf67b7c04706.tar.bz2
S5PC11X: OVERLAY: Update liboverlay
- remove unused define. - change number of buffers. - support overlay in case of non zero copy. - change OVERLAY_FORMAT_DEFAULT for camera. - rearrange the color format which used in liboverlay. Change-Id: Id7cf09f490800c61c85fddd18a391242cb4e9627 Signed-off-by: hoony.yu <hoony.yu@samsung.com>
Diffstat (limited to 'liboverlay/v4l2_utils.h')
-rw-r--r--liboverlay/v4l2_utils.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/liboverlay/v4l2_utils.h b/liboverlay/v4l2_utils.h
index e85b65a..b582a8b 100644
--- a/liboverlay/v4l2_utils.h
+++ b/liboverlay/v4l2_utils.h
@@ -10,7 +10,8 @@
int v4l2_overlay_open(int id);
int v4l2_overlay_get_caps(int fd, struct v4l2_capability *caps);
-int v4l2_overlay_req_buf(int fd, uint32_t *num_bufs, int cacheable_buffers);
+int v4l2_overlay_req_buf(int fd, uint32_t *num_bufs, int cacheable_buffers,
+ int zerocopy);
int v4l2_overlay_query_buffer(int fd, int index, struct v4l2_buffer *buf);
int v4l2_overlay_map_buf(int fd, int index, void **start, size_t *len);
int v4l2_overlay_unmap_buf(void *start, size_t len);
@@ -43,21 +44,15 @@ enum {
V4L2_OVERLAY_PLANE_VIDEO2,
};
-
-enum {
- OVERLAY_FORMAT_YCbCr_420_SP = 0x21,
-};
-
enum {
/* support customed format for zero copy */
HAL_PIXEL_FORMAT_YCbCr_420_SP = 0x21,
HAL_PIXEL_FORMAT_YCbCr_420_P = 0x13,
-
HAL_PIXEL_FORMAT_CUSTOM_YCbCr_420_SP = 0x100,
HAL_PIXEL_FORMAT_CUSTOM_YCbCr_422_I = 0x101,
HAL_PIXEL_FORMAT_CUSTOM_CbYCrY_422_I = 0x102,
HAL_PIXEL_FORMAT_CUSTOM_YCrCb_420_SP = 0x103,
-
+ HAL_PIXEL_FORMAT_CUSTOM_MAX
};
struct mapping_data {