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

Revision 449, 1.1 kB (checked in by goodea, 2 years ago)

exec

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_HISTOGRAM_H
20 #define CC3_HISTOGRAM_H
21
22 #include <stdint.h>
23 #include "cc3.h"
24 #include "cc3_ilp.h"
25
26 #define MAX_PIXEL_VALUE    240
27
28 typedef struct {
29     cc3_channel_t channel;
30     uint32_t bins;
31     uint32_t *hist;
32     uint32_t scratch_y;
33     uint32_t bin_div;
34 } cc3_histogram_pkt_t;
35
36 uint8_t cc3_histogram_scanline_start(cc3_histogram_pkt_t *pkt);
37 uint8_t cc3_histogram_scanline(cc3_image_t *img, cc3_histogram_pkt_t *pkt);
38 uint8_t cc3_histogram_scanline_finish(cc3_histogram_pkt_t *pkt);
39
40 #endif
Note: See TracBrowser for help on using the browser.