X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=pctb%2Fconvert.h;h=83be1e8bced1ab8fce05d7233588595792f74530;hp=827c6a7cc341992fba84403db013b175d6eaf67e;hb=9334b48a221df6f96a88933be8fde35e2ef41b35;hpb=3d80a86a8c77e29a26e70aa810ebb2dea607208e diff --git a/pctb/convert.h b/pctb/convert.h index 827c6a7..83be1e8 100644 --- a/pctb/convert.h +++ b/pctb/convert.h @@ -54,14 +54,16 @@ typedef struct RgbImage { void identify_rgbimage(const RgbImage *base, Rect portion, char result[MAXIMGIDENT], const char *what); RgbImage *alloc_rgb_image(int w, int h); +void fwrite_ppmraw(FILE *f, const RgbImage *ri); #define RI_PIXEL(ri,x,y) ((ri)->data + ((y)*(ri)->w + (x)) * 3) /*----- from structure.c -----*/ void find_structure(const CanonImage *im, int *max_relevant_y_r); +Rect find_sunshine_widget(void); -void find_islandname(void); +void find_islandname(RgbImage *ri); void check_correct_commodities(void); void read_screenshots(void); void read_one_screenshot(void); @@ -87,6 +89,7 @@ void progress_spinner(const char *fmt, ...) FMT(1,2); enum flags { ff_editcharset= 00001, ff_singlepage= 00002, + ff_testservers= 00004, ff_dict_fetch= 00010, ff_dict_submit= 00020, @@ -115,7 +118,6 @@ void take_one_screenshot(void); #define MAX_PAGES 100 extern CanonImage *page_images[MAX_PAGES]; extern int npages; -RgbImage *page0_rgbimage; extern const char *ocean, *pirate; extern char *archipelago, *island;