7 // Environment for EffectTV effects
11 EffectTV(int w
, int h
);
14 void image_set_threshold_y(int threshold
);
15 unsigned char* image_bgsubtract_update_y(unsigned char **input_rows
,
16 unsigned char **output_rows
,
18 unsigned char* image_bgsubtract_y(unsigned char **input_rows
, int color_model
);
19 void image_bgset_y(VFrame
*frame
);
20 unsigned char* image_diff_filter(unsigned char *diff
);
23 static void frame_to_effecttv(VFrame
*frame
, uint32_t *tmp
);
24 static void effecttv_to_frame(VFrame
*frame
, uint32_t *tmp
);
27 * fastrand - fast fake random number generator
28 * Warning: The low-order bits of numbers generated by fastrand()
29 * are bad as random numbers. For example, fastrand()%4
30 * generates 1,2,3,0,1,2,3,0...
31 * You should use high-order bits.
33 static unsigned int fastrand_val
;
35 static inline unsigned int fastrand()
37 return (fastrand_val
= fastrand_val
* 1103515245 + 12345);
45 unsigned char *background
;
46 unsigned char *diff
, *diff2
;