Files
motion/picture.h
tosiara 10aa98b4fa jpeg code cleanup (#851)
* 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
2019-09-20 11:40:07 -06:00

28 lines
1.0 KiB
C

/*
* picture.h
*
* Copyright 2002 by Jeroen Vreeken (pe1rxq@amsat.org)
* Portions of this file are Copyright by Lionnel Maugis
* This software is distributed under the GNU public license version 2
* See also the file 'COPYING'.
*
*/
#ifndef _INCLUDE_PICTURE_H_
#define _INCLUDE_PICTURE_H_
#include "motion.h"
void overlay_smartmask(struct context *, unsigned char *);
void overlay_fixed_mask(struct context *, unsigned char *);
void put_fixed_mask(struct context *, const char *);
void overlay_largest_label(struct context *, unsigned char *);
int put_picture_memory(struct context *, unsigned char*, int, unsigned char *, int, int, int);
void put_picture(struct context *, char *, unsigned char *, int);
unsigned char *get_pgm(FILE *, int, int);
void preview_save(struct context *);
void pic_scale_img(int width_src, int height_src, unsigned char *img_src, unsigned char *img_dst);
unsigned prepare_exif(unsigned char **, const struct context *, const struct timeval *, const struct coord *);
#endif /* _INCLUDE_PICTURE_H_ */