Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Structure for data supplied in halftone call back */
- typedef struct ipa_halftone_data_s {
- const unsigned char *data;
- int offset_x;
- unsigned int raster;
- int x;
- int y;
- unsigned int w;
- unsigned int h;
- unsigned int plane_raster;
- } ipa_halftone_data_t;
- /* Opaque type for halftone instance */
- typedef struct ipa_halftone_s ipa_halftone;
- typedef struct ipa_matrix_s {
- float xx; float xy;
- float yx; float yy;
- float tx; float ty;
- } ipa_matrix;
- typedef void (ipa_ht_callback_t)(ipa_halftone_data_t *data, void *args);
- /* Initialize a halftone instance. */
- ipa_halftone *ipa_halftone_init(ipa_context *ctx,
- void *opaque,
- int x,
- int y,
- unsigned int w,
- unsigned int h,
- const ipa_matrix *mat,
- unsigned int num_planes,
- unsigned char *cache,
- int clip_x,
- int clip_y,
- unsigned int clip_w,
- unsigned int clip_h,
- ipa_ht_callback_t *callback,
- void *callback_arg);
- /* Set a screen for a colorant. */
- int ipa_halftone_add_screen(ipa_context *ctx, void *opaque, ipa_halftone *ht,
- int invert, unsigned short width, unsigned short height, int phase,
- unsigned char *values);
- /* Halftone some data. */
- int ipa_halftone_process_planar(ipa_halftone *ht,
- void *opaque,
- const unsigned char **buffer);
- int ipa_halftone_process_chunky(ipa_halftone *ht,
- void *opaque,
- const unsigned char **buffer);
- /* Finalize a halftone instance. */
- void ipa_halftone_fin(ipa_halftone *, void *opaque);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement