diff options
author | hans@localhost.localdomain <hans@localhost.localdomain> | 2008-08-22 23:23:50 +0200 |
---|---|---|
committer | hans@localhost.localdomain <hans@localhost.localdomain> | 2008-08-22 23:23:50 +0200 |
commit | a15825844ed72e4b0f13e10de4b7dd0ce31846ac (patch) | |
tree | 3b56e9a7fb825b1df514429fe40c03bfc9cd01b0 /v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h | |
parent | 974d503f1d6934082aa2d8cd5f06b266726a144e (diff) | |
download | mediapointer-dvb-s2-a15825844ed72e4b0f13e10de4b7dd0ce31846ac.tar.gz mediapointer-dvb-s2-a15825844ed72e4b0f13e10de4b7dd0ce31846ac.tar.bz2 |
libv4l: add support for Pixart custom JPEG format
From: Hans de Goede <j.w.r.degoede@hhs.nl>
libv4l: add support for Pixart custom JPEG format
Priority: normal
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Diffstat (limited to 'v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h')
-rw-r--r-- | v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h | 14 |
1 files changed, 12 insertions, 2 deletions
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 |