aboutsummaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/internal.h b/internal.h
index 280d59b..213326d 100644
--- a/internal.h
+++ b/internal.h
@@ -1,21 +1,29 @@
typedef struct Tilerparam Tilerparam;
+typedef struct Rasterparam Rasterparam;
typedef struct Rastertask Rastertask;
-struct Rastertask
-{
- SUparams *params;
- Rectangle wr; /* working rect */
- Primitive p;
-};
-
struct Tilerparam
{
+ int id;
Channel *paramsc;
- Channel **tasksc; /* Channel*[nproc] */
+ Channel **taskchans; /* Channel*[nproc] */
Rectangle *wr; /* Rectangle[nproc] */
ulong nproc;
};
+struct Rasterparam
+{
+ int id;
+ Channel *taskc;
+};
+
+struct Rastertask
+{
+ SUparams *params;
+ Rectangle wr; /* working rect */
+ Primitive p;
+};
+
/* alloc */
void *emalloc(ulong);
void *erealloc(void*, ulong);