@kv  0.0.4
Library for graph problems in C and Python
color.h
1 
18 #if !defined(AT_IMGPROC_H_INSIDE)
19 #error "Only <at/imgproc.h> can be included directly."
20 #endif
21 #ifndef AT_COLOR_H
22 #define AT_COLOR_H
23 
24 #include <at/core.h>
25 AT_BEGIN_DECLS
26 
27 typedef enum{
28  AT_GRAY,
29  AT_RGB,
30  AT_BGR,
31  AT_RGBA,
32  AT_BGRA,
33  AT_ARGB,
34  AT_ABGR
35 }AtColorType;
36 
37 
38 AtArrayU8*
39 at_arrayu8_cvt_color(AtArrayU8* array, AtColorType from, AtColorType to);
45 AtArrayU8*
46 at_arrayu8_lut_random(AtArrayU8* array);
53 AtArrayU8*
54 at_arrayu8_lut_random_multi(AtArrayU8* array, uint8_t nchannels);
55 
56 AtArrayU32*
57 at_arrayu32_lut(AtArrayU32* array, uint64_t* lut);
58 
59 void
60 at_arrayu8_add_brightness(AtArrayU8* array, int16_t pos);
61 
62 AT_END_DECLS
63 #endif