-
Notifications
You must be signed in to change notification settings - Fork 0
/
HACKING
52 lines (40 loc) · 1.36 KB
/
HACKING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Hacking
-------
Rawstudio is an open source project. Everybody is welcome to participate. Feel
free to look at the TODO or just scratch your own itch. We welcome patches.
Overview
-----------------
Rawstudio is build upon a few RS_*-typedef's. All lowlevel handling of these
is placed in rawstudio.c.
typedef RS_IMAGE16
Image data in 16 bit unsigned. In the future this may change to 16 bit SIGNED.
Structure members:
gushort *pixels: Interleaved pixeldata, channels * 2 bytes/pixel
gint w: Width in pixels
gint h: Height in pixels
gint channels: Number of channels. Must be 3 or 4.
gint pitch: The distance in pixels from the beginning of line n to line n+1.
rowstride: The distance in BYTES from the beginning of line n to line n+1.
typedef RS_IMAGE8
This is much like RS_IMAGE16, but with 8 bit pixeldata. Only difference is
pixels.
guchar *pixels: Interleaved pixeldata, channels * 1 byte/pixel
Files
-----
rawstudio.c|h:
Pixeloperations
Rawstudio core functions
Functions for handling RS_*.
gtk-interface.c|h:
GTK+ interface
color.h:
Defines related to colorfunctions
Macros for processing color
matrix.c|h:
All matrix functions used in rawstudio.c
dcraw*:
Dave Coffin's RAW converter with patches by Udi Fuchs (of UFRaw fame).
Coding style
------------
Please try to code in the same style as the rest of Rawstudio.
Tabwidth is 4, spaces is never used for alignment.