"Fossies" - the Fresh Open Source Software Archive

Member "motion-Release-4.3.0/src/alg.h" (14 Jan 2020, 1318 Bytes) of package /linux/misc/motion-Release-4.3.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "alg.h" see the Fossies "Dox" file reference documentation.

    1 /*    alg.h
    2  *
    3  *    Detect changes in a video stream.
    4  *    Copyright 2001 by Jeroen Vreeken (pe1rxq@amsat.org)
    5  *    This software is distributed under the GNU public license version 2
    6  *    See also the file 'COPYING'.
    7  *
    8  */
    9 
   10 #ifndef _INCLUDE_ALG_H
   11 #define _INCLUDE_ALG_H
   12 
   13 #include "motion.h"
   14 
   15 struct coord {
   16     int x;
   17     int y;
   18     int width;
   19     int height;
   20     int minx;
   21     int maxx;
   22     int miny;
   23     int maxy;
   24 };
   25 
   26 struct segment {
   27     struct coord coord;
   28     int width;
   29     int height;
   30     int open;
   31     int count;
   32 };
   33 
   34 void alg_locate_center_size(struct images *, int width, int height, struct coord *);
   35 void alg_draw_location(struct coord *, struct images *, int width, unsigned char *, int, int, int);
   36 void alg_draw_red_location(struct coord *, struct images *, int width, unsigned char *, int, int, int);
   37 int alg_diff(struct context *, unsigned char *);
   38 int alg_diff_standard(struct context *, unsigned char *);
   39 int alg_lightswitch(struct context *, int diffs);
   40 int alg_switchfilter(struct context *, int, unsigned char *);
   41 void alg_noise_tune(struct context *, unsigned char *);
   42 void alg_threshold_tune(struct context *, int, int);
   43 int alg_despeckle(struct context *, int);
   44 void alg_tune_smartmask(struct context *);
   45 void alg_update_reference_frame(struct context *, int);
   46 
   47 #endif /* _INCLUDE_ALG_H */