root/trunk/lib/cc3-ilp/cc3_frame_diff.h

Revision 469, 1.3 kB (checked in by anthony_rowe, 2 years ago)

frame diff

  • Property svn:executable set to *
Line 
1 /*
2  * Copyright 2006  Anthony Rowe and Adam Goode
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18
19 #ifndef CC3_FRAME_DIFF_H
20 #define CC3_FRAME_DIFF_H
21
22 #include <stdint.h>
23 #include "cc3.h"
24 #include "cc3_ilp.h"
25
26
27 typedef struct {
28     uint16_t x0,y0,x1,y1;
29     uint32_t centroid_x,centroid_y;
30     uint32_t num_pixels;
31     uint32_t int_density;
32     uint32_t *previous_template;
33     uint32_t *current_template;
34     uint16_t template_width, template_height;
35     uint8_t threshold;
36     uint16_t total_x, total_y;
37     uint8_t coi;
38     bool load_frame;
39     uint32_t _scratch_y;
40     uint16_t _bin_div_x;
41     uint16_t _bin_div_y;
42 } cc3_frame_diff_pkt_t;
43
44 uint8_t cc3_frame_diff_scanline_start(cc3_frame_diff_pkt_t *pkt);
45 uint8_t cc3_frame_diff_scanline(cc3_image_t *img, cc3_frame_diff_pkt_t *pkt);
46 uint8_t cc3_frame_diff_scanline_finish(cc3_frame_diff_pkt_t *pkt);
47
48 #endif
Note: See TracBrowser for help on using the browser.