From a15825844ed72e4b0f13e10de4b7dd0ce31846ac Mon Sep 17 00:00:00 2001 From: "hans@localhost.localdomain" Date: Fri, 22 Aug 2008 23:23:50 +0200 Subject: libv4l: add support for Pixart custom JPEG format From: Hans de Goede libv4l: add support for Pixart custom JPEG format Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h') diff --git a/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h b/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h index 0943d7a59..cd0a781c7 100644 --- a/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h +++ b/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h @@ -43,6 +43,10 @@ #define V4L2_PIX_FMT_PAC207 v4l2_fourcc('P','2','0','7') #endif +#ifndef V4L2_PIX_FMT_PJPG +#define V4L2_PIX_FMT_PJPG v4l2_fourcc('P', 'J', 'P', 'G') +#endif + #ifndef V4L2_PIX_FMT_SGBRG8 #define V4L2_PIX_FMT_SGBRG8 v4l2_fourcc('G','B','R','G') #endif @@ -112,10 +116,16 @@ void v4lconvert_bayer_to_bgr24(const unsigned char *bayer, void v4lconvert_bayer_to_yuv420(const unsigned char *bayer, unsigned char *yuv, int width, int height, unsigned int pixfmt); -void v4lconvert_flip_rgbbgr24(const unsigned char *src, unsigned char *dst, +void v4lconvert_rotate90_rgbbgr24(const unsigned char *src, unsigned char *dst, + int destwidth, int destheight); + +void v4lconvert_rotate90_yuv420(const unsigned char *src, unsigned char *dst, + int destwidth, int destheight); + +void v4lconvert_rotate180_rgbbgr24(const unsigned char *src, unsigned char *dst, int width, int height); -void v4lconvert_flip_yuv420(const unsigned char *src, unsigned char *dst, +void v4lconvert_rotate180_yuv420(const unsigned char *src, unsigned char *dst, int width, int height); #endif -- cgit v1.2.3