#N canvas 398 110 647 618 10;
#X declare -lib Gem;
#X text 452 8 GEM object;
#X obj 8 316 cnv 15 430 160 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 39 318 Inlets:;
#X obj 8 276 cnv 15 430 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 275 Arguments:;
#X obj 8 66 cnv 15 430 200 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 449 77 cnv 15 170 520 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 453 60 Example:;
#X obj 514 530 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X obj 451 158 cnv 15 160 330 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 451 84 gemhead;
#X text 71 31 Class: pix object;
#X obj 510 85 bng 15 250 50 0 empty empty pix_load 20 8 0 8 #fcfcfc #000000 #000000;
#N canvas 0 0 587 366 image 0;
#X obj 77 48 inlet;
#X obj 77 344 outlet;
#X obj 77 205 pix_image examples/data/fractal.JPG;
#X obj 223 55 inlet;
#X msg 223 123 open \$1;
#X obj 223 100 openpanel;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 4 0 2 0;
#X connect 5 0 4 0;
#X restore 451 113 pd image;
#X text 57 393 Outlet 1: gemlist;
#X text 63 332 Inlet 1: gemlist;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X floatatom 461 240 4 0 0 1 width - - 0;
#X floatatom 471 222 4 0 0 1 height - - 0;
#X floatatom 481 204 4 0 0 1 bytes/pixel - - 0;
#X floatatom 491 187 5 0 0 1 format - - 0;
#X text 57 407 Outlet 2: int: image-width;
#X text 57 420 Outlet 3: int: image-height;
#X text 57 433 Outlet 4: int: bytes per pixel;
#X text 50 12 Synopsis: [pix_info];
#X text 29 67 Description: get information about the current image;
#X text 13 171 You might not be able to do anything with the data-pointer.;
#X text 57 490 Outlet 8: pointer: image-data;
#X text 57 459 Outlet 6: list: <type> <upsidedown> <notowned>;
#X text 57 476 Outlet 7: list: <newimage> <newfilm>;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION get information about the current image;
#X text 10 65 KEYWORDS Gem pix image;
#X text 20 85 INLET_0 gemlist symbolic;
#X text 20 105 OUTLET_0 gemlist;
#X text 20 125 OUTLET_1 int;
#X text 20 145 OUTLET_2 int;
#X text 20 165 OUTLET_3 int;
#X text 20 185 OUTLET_4 int;
#X text 20 205 OUTLET_5 list;
#X text 20 225 OUTLET_6 list;
#X text 20 245 OUTLET_7 pointer;
#X text 10 265 AUTHOR IOhannes m zmölnig;
#X text 10 285 LICENSE GPL-2.0-or-later;
#X restore 518 8 pd META;
#X obj 451 265 pix_info -m, f 25;
#X obj 451 162 pix_info, f 20;
#X obj 461 314 unpack;
#X floatatom 461 337 5 0 0 0 - - - 0;
#X floatatom 494 337 5 0 0 0 - - - 0;
#X floatatom 508 314 5 0 0 0 - - - 0;
#X floatatom 547 337 5 0 0 0 - - - 0;
#X text 57 446 Outlet 5: int: format (openGL-constant);
#X obj 461 444 unpack;
#X floatatom 461 467 5 0 0 0 - - - 0;
#X floatatom 494 467 5 0 0 0 - - - 0;
#X floatatom 508 444 5 0 0 0 - - - 0;
#X obj 451 375 pix_info -m \; symbolic 1, f 25;
#X symbolatom 544 466 10 0 0 0 - - - 0;
#X text 14 134 The format is given as an openGL-int-constant. (6408=GL_RGBA (rgba) \, 6409=GL_LUMINANCE (grey) \, 34233 might be YUV (not standardized);
#X text 63 286 [-m] - message mode;
#X text 14 81 [pix_info] will give you some meta-information about the image data consisting of the image-dimensions \, the pixel-size \, the colour-space (format) and the pointer to the image-data itself.;
#X text 15 189 In "message mode" (with the '-m' flag) \, there's only a single data outlet that gives all the information as messages (terminated by a 'bang' message). You can also ask to translate the openGL-constants into symbols with the "symbolic" message (which is a no-op in the default "raw" mode)., f 68;
#X text 39 380 Outlets (in "raw" mode);
#X text 64 349 Inlet 1: symbolic <bool> - output openGL constants as symbols rather than numbers when in message mode.;
#X text 57 523 Outlet 1: gemlist;
#X text 39 510 Outlets (in "message" mode);
#X text 57 537 Outlet 2: various messages about the image ('bang' terminated);
#X obj 461 291 route dimen bytes/pixel format;
#X obj 460 421 route dimen bytes/pixel format;
#X obj 544 444 symbol;
#X obj 520 538 _gemwin;
#X obj 451 496 _pix2rectangle 3;
#X connect 10 0 13 0;
#X connect 12 0 13 1;
#X connect 13 0 33 0;
#X connect 32 0 44 0;
#X connect 32 1 55 0;
#X connect 33 0 32 0;
#X connect 33 1 18 0;
#X connect 33 2 19 0;
#X connect 33 3 20 0;
#X connect 33 4 21 0;
#X connect 34 0 35 0;
#X connect 34 1 36 0;
#X connect 40 0 41 0;
#X connect 40 1 42 0;
#X connect 44 0 59 0;
#X connect 44 1 56 0;
#X connect 55 0 34 0;
#X connect 55 1 37 0;
#X connect 55 2 38 0;
#X connect 56 0 40 0;
#X connect 56 1 43 0;
#X connect 56 2 57 0;
#X connect 57 0 45 0;
