This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/v4l-utils.git tree:
Subject: libv4l*-priv.h: run through checkpatch.pl Author: Hans Verkuil <hverk...@xs4all.nl> Date: Wed Apr 28 20:34:05 2010 +0200 Signed-off-by: Hans Verkuil <hverk...@xs4all.nl> lib/libv4lconvert/libv4lconvert-priv.h | 160 ++++++++++++++++---------------- lib/libv4lconvert/libv4lsyscall-priv.h | 20 ++-- 2 files changed, 90 insertions(+), 90 deletions(-) --- http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=7effc3d5920dac9c708ea561cd0d81d0a3d29759 diff --git a/lib/libv4lconvert/libv4lconvert-priv.h b/lib/libv4lconvert/libv4lconvert-priv.h index 94d5243..0094f1b 100644 --- a/lib/libv4lconvert/libv4lconvert-priv.h +++ b/lib/libv4lconvert/libv4lconvert-priv.h @@ -14,7 +14,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ + */ #ifndef __LIBV4LCONVERT_PRIV_H #define __LIBV4LCONVERT_PRIV_H @@ -32,8 +32,8 @@ #define V4LCONVERT_MAX_FRAMESIZES 16 #define V4LCONVERT_ERR(...) \ - snprintf(data->error_msg, V4LCONVERT_ERROR_MSG_SIZE, \ - "v4l-convert: error " __VA_ARGS__) + snprintf(data->error_msg, V4LCONVERT_ERROR_MSG_SIZE, \ + "v4l-convert: error " __VA_ARGS__) /* Card flags */ #define V4LCONVERT_IS_UVC 0x01 @@ -45,167 +45,167 @@ #define V4LCONVERT_COMPRESSED_AND_NEEDS_CONVERSION 0x03 struct v4lconvert_data { - int fd; - int flags; /* bitfield */ - int control_flags; /* bitfield */ - int supported_src_formats; /* bitfield */ - unsigned int no_formats; - char error_msg[V4LCONVERT_ERROR_MSG_SIZE]; - struct jdec_private *jdec; - struct v4l2_frmsizeenum framesizes[V4LCONVERT_MAX_FRAMESIZES]; - unsigned int no_framesizes; - int convert1_buf_size; - int convert2_buf_size; - int rotate90_buf_size; - int flip_buf_size; - int convert_pixfmt_buf_size; - unsigned char *convert1_buf; - unsigned char *convert2_buf; - unsigned char *rotate90_buf; - unsigned char *flip_buf; - unsigned char *convert_pixfmt_buf; - struct v4lcontrol_data *control; - struct v4lprocessing_data *processing; - - /* Data for external decompression helpers code */ - pid_t decompress_pid; - int decompress_in_pipe[2]; /* Data from helper to us */ - int decompress_out_pipe[2]; /* Data from us to helper */ - - /* For mr97310a decoder */ - int frames_dropped; - - /* For cpia1 decoder */ - unsigned char* previous_frame; + int fd; + int flags; /* bitfield */ + int control_flags; /* bitfield */ + int supported_src_formats; /* bitfield */ + unsigned int no_formats; + char error_msg[V4LCONVERT_ERROR_MSG_SIZE]; + struct jdec_private *jdec; + struct v4l2_frmsizeenum framesizes[V4LCONVERT_MAX_FRAMESIZES]; + unsigned int no_framesizes; + int convert1_buf_size; + int convert2_buf_size; + int rotate90_buf_size; + int flip_buf_size; + int convert_pixfmt_buf_size; + unsigned char *convert1_buf; + unsigned char *convert2_buf; + unsigned char *rotate90_buf; + unsigned char *flip_buf; + unsigned char *convert_pixfmt_buf; + struct v4lcontrol_data *control; + struct v4lprocessing_data *processing; + + /* Data for external decompression helpers code */ + pid_t decompress_pid; + int decompress_in_pipe[2]; /* Data from helper to us */ + int decompress_out_pipe[2]; /* Data from us to helper */ + + /* For mr97310a decoder */ + int frames_dropped; + + /* For cpia1 decoder */ + unsigned char *previous_frame; }; struct v4lconvert_pixfmt { - unsigned int fmt; - int flags; + unsigned int fmt; + int flags; }; void v4lconvert_fixup_fmt(struct v4l2_format *fmt); unsigned char *v4lconvert_alloc_buffer(int needed, - unsigned char **buf, int *buf_size); + unsigned char **buf, int *buf_size); void v4lconvert_rgb24_to_yuv420(const unsigned char *src, unsigned char *dest, - const struct v4l2_format *src_fmt, int bgr, int yvu); + const struct v4l2_format *src_fmt, int bgr, int yvu); void v4lconvert_yuv420_to_rgb24(const unsigned char *src, unsigned char *dst, - int width, int height, int yvu); + int width, int height, int yvu); void v4lconvert_yuv420_to_bgr24(const unsigned char *src, unsigned char *dst, - int width, int height, int yvu); + int width, int height, int yvu); void v4lconvert_yuyv_to_rgb24(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_yuyv_to_bgr24(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_yuyv_to_yuv420(const unsigned char *src, unsigned char *dst, - int width, int height, int yvu); + int width, int height, int yvu); void v4lconvert_yvyu_to_rgb24(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_yvyu_to_bgr24(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_uyvy_to_rgb24(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_uyvy_to_bgr24(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_uyvy_to_yuv420(const unsigned char *src, unsigned char *dst, - int width, int height, int yvu); + int width, int height, int yvu); void v4lconvert_swap_rgb(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_swap_uv(const unsigned char *src, unsigned char *dst, - const struct v4l2_format *src_fmt); + const struct v4l2_format *src_fmt); void v4lconvert_rgb565_to_rgb24(const unsigned char *src, unsigned char *dest, - int width, int height); + int width, int height); void v4lconvert_rgb565_to_bgr24(const unsigned char *src, unsigned char *dest, - int width, int height); + int width, int height); void v4lconvert_rgb565_to_yuv420(const unsigned char *src, unsigned char *dest, - const struct v4l2_format *src_fmt, int yvu); + const struct v4l2_format *src_fmt, int yvu); void v4lconvert_spca501_to_yuv420(const unsigned char *src, unsigned char *dst, - int width, int height, int yvu); + int width, int height, int yvu); void v4lconvert_spca505_to_yuv420(const unsigned char *src, unsigned char *dst, - int width, int height, int yvu); + int width, int height, int yvu); void v4lconvert_spca508_to_yuv420(const unsigned char *src, unsigned char *dst, - int width, int height, int yvu); + int width, int height, int yvu); int v4lconvert_cpia1_to_yuv420(struct v4lconvert_data *data, - const unsigned char *src, int src_size, - unsigned char *dst, int width, int height, int yvu); + const unsigned char *src, int src_size, + unsigned char *dst, int width, int height, int yvu); void v4lconvert_sn9c20x_to_yuv420(const unsigned char *src, unsigned char *dst, - int width, int height, int yvu); + int width, int height, int yvu); void v4lconvert_decode_spca561(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_decode_sn9c10x(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); int v4lconvert_decode_pac207(struct v4lconvert_data *data, - const unsigned char *inp, int src_size, unsigned char *outp, - int width, int height); + const unsigned char *inp, int src_size, unsigned char *outp, + int width, int height); int v4lconvert_decode_mr97310a(struct v4lconvert_data *data, - const unsigned char *src, int src_size, unsigned char *dst, - int width, int height); + const unsigned char *src, int src_size, unsigned char *dst, + int width, int height); void v4lconvert_decode_sn9c2028(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_decode_sq905c(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_decode_stv0680(const unsigned char *src, unsigned char *dst, - int width, int height); + int width, int height); void v4lconvert_bayer_to_rgb24(const unsigned char *bayer, - unsigned char *rgb, int width, int height, unsigned int pixfmt); + unsigned char *rgb, int width, int height, unsigned int pixfmt); void v4lconvert_bayer_to_bgr24(const unsigned char *bayer, - unsigned char *rgb, int width, int height, unsigned int pixfmt); + unsigned char *rgb, int width, int height, unsigned int pixfmt); void v4lconvert_bayer_to_yuv420(const unsigned char *bayer, unsigned char *yuv, - int width, int height, unsigned int src_pixfmt, int yvu); + int width, int height, unsigned int src_pixfmt, int yvu); void v4lconvert_hm12_to_rgb24(const unsigned char *src, - unsigned char *dst, int width, int height); + unsigned char *dst, int width, int height); void v4lconvert_hm12_to_bgr24(const unsigned char *src, - unsigned char *dst, int width, int height); + unsigned char *dst, int width, int height); void v4lconvert_hm12_to_yuv420(const unsigned char *src, - unsigned char *dst, int width, int height, int yvu); + unsigned char *dst, int width, int height, int yvu); void v4lconvert_rotate90(unsigned char *src, unsigned char *dest, - struct v4l2_format *fmt); + struct v4l2_format *fmt); void v4lconvert_flip(unsigned char *src, unsigned char *dest, - struct v4l2_format *fmt, int hflip, int vflip); + struct v4l2_format *fmt, int hflip, int vflip); void v4lconvert_crop(unsigned char *src, unsigned char *dest, - const struct v4l2_format *src_fmt, const struct v4l2_format *dest_fmt); + const struct v4l2_format *src_fmt, const struct v4l2_format *dest_fmt); int v4lconvert_helper_decompress(struct v4lconvert_data *data, - const char *helper, const unsigned char *src, int src_size, - unsigned char *dest, int dest_size, int width, int height, int command); + const char *helper, const unsigned char *src, int src_size, + unsigned char *dest, int dest_size, int width, int height, int command); void v4lconvert_helper_cleanup(struct v4lconvert_data *data); diff --git a/lib/libv4lconvert/libv4lsyscall-priv.h b/lib/libv4lconvert/libv4lsyscall-priv.h index 08739df..87028ef 100644 --- a/lib/libv4lconvert/libv4lsyscall-priv.h +++ b/lib/libv4lconvert/libv4lsyscall-priv.h @@ -73,28 +73,28 @@ typedef off_t __off_t; #ifndef CONFIG_SYS_WRAPPER #define SYS_OPEN(file, oflag, mode) \ - syscall(SYS_open, (const char *)(file), (int)(oflag), (mode_t)(mode)) + syscall(SYS_open, (const char *)(file), (int)(oflag), (mode_t)(mode)) #define SYS_CLOSE(fd) \ - syscall(SYS_close, (int)(fd)) + syscall(SYS_close, (int)(fd)) #define SYS_IOCTL(fd, cmd, arg) \ - syscall(SYS_ioctl, (int)(fd), (unsigned long)(cmd), (void *)(arg)) + syscall(SYS_ioctl, (int)(fd), (unsigned long)(cmd), (void *)(arg)) #define SYS_READ(fd, buf, len) \ - syscall(SYS_read, (int)(fd), (void *)(buf), (size_t)(len)); + syscall(SYS_read, (int)(fd), (void *)(buf), (size_t)(len)); #define SYS_WRITE(fd, buf, len) \ - syscall(SYS_write, (int)(fd), (void *)(buf), (size_t)(len)); + syscall(SYS_write, (int)(fd), (void *)(buf), (size_t)(len)); #ifdef __FreeBSD__ #define SYS_MMAP(addr, len, prot, flags, fd, off) \ - __syscall(SYS_mmap, (void *)(addr), (size_t)(len), \ - (int)(prot), (int)(flags), (int)(fd), (__off_t)(off)) + __syscall(SYS_mmap, (void *)(addr), (size_t)(len), \ + (int)(prot), (int)(flags), (int)(fd), (__off_t)(off)) #else #define SYS_MMAP(addr, len, prot, flags, fd, off) \ - syscall(SYS_mmap2, (void *)(addr), (size_t)(len), \ - (int)(prot), (int)(flags), (int)(fd), (__off_t)((off) >> MMAP2_PAGE_SHIFT)) + syscall(SYS_mmap2, (void *)(addr), (size_t)(len), \ + (int)(prot), (int)(flags), (int)(fd), (__off_t)((off) >> MMAP2_PAGE_SHIFT)) #endif #define SYS_MUNMAP(addr, len) \ - syscall(SYS_munmap, (void *)(addr), (size_t)(len)) + syscall(SYS_munmap, (void *)(addr), (size_t)(len)) #else _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits