render_slices_struct.h
changeset 18 86f2e5b7191b
parent 17 8e8b56b0e0f5
child 19 d18606bb6f20
equal deleted inserted replaced
17:8e8b56b0e0f5 18:86f2e5b7191b
    15         // the render info
    15         // the render info
    16         struct render render_info;
    16         struct render render_info;
    17         
    17         
    18         // our offset into rowbuf
    18         // our offset into rowbuf
    19         size_t row_offset;
    19         size_t row_offset;
    20         
    20 
    21         // pointer back to parent
    21         // pointer back to parent
    22         struct render_slices *self;
    22         struct render_slices *self;
    23     } slices[RENDER_SLICES_MAX];
    23     } slices[RENDER_SLICES_MAX];
    24     
    24     
    25     // how many slices are in use
    25     // how many slices are in use
    26     size_t num_slices;
    26     size_t num_slices;
    27 
    27     
    28     // how many slices have reported the current row as done
    28     // how many slices have reported the current row as done
    29     size_t slices_done;
    29     size_t segments_done;
    30 
    30 
    31     // the a pointer to the raw memory buffer
    31     // the a pointer to the raw memory buffer
    32     unsigned char *rowbuf;
    32     unsigned char *rowbuf;
    33 
    33 
    34     // the two rows of memory area used to a) render b) build the png
    34     // the two rows of memory area used to a) render b) build the png