mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-05 04:21:32 -05:00
* Changed how jpeg is written to file Removed redundant code, put jpeg to memory and then write to file using fwrite * Similar reuse of function put_jpeg_grey_memory * Add jpeg error handler to put_jpeg_yuv420p_memory Handlers copied from jpegutils.c * Too much copied, removing extra line * Similar changes to grey jpeg code * Moved jpeg related functions from picture.c to jpegutils.c * Fix for travis: unused parameter * Few more unnecessary code removed from picture.c * Fix for travis: no previous prototype * Adjust function names and headers
21 lines
779 B
C
21 lines
779 B
C
/*
|
|
* jpegutils.h: Some Utility programs for dealing with
|
|
* JPEG encoded images
|
|
*
|
|
* Copyright (C) 1999 Rainer Johanni <Rainer@Johanni.de>
|
|
* Copyright (C) 2001 pHilipp Zabel <pzabel@gmx.de>
|
|
* Copyright (C) 2008 Angel Carpintero <motiondevelop@gmail.com>
|
|
*
|
|
*/
|
|
|
|
#ifndef __JPEGUTILS_H__
|
|
#define __JPEGUTILS_H__
|
|
|
|
int jpgutl_decode_jpeg (unsigned char *jpeg_data_in, int jpeg_data_len,
|
|
unsigned int width, unsigned int height, unsigned char *volatile img_out);
|
|
|
|
int jpgutl_put_yuv420p(unsigned char *, int image, unsigned char *, int, int, int, struct context *, struct timeval *, struct coord *);
|
|
int jpgutl_put_grey(unsigned char *, int image, unsigned char *, int, int, int, struct context *, struct timeval *, struct coord *);
|
|
|
|
#endif
|