image: * * This is a simple structure for holding image data. It consists * of a datablock with the actual pixels, width & height values, * and a stride value. The stride value specifies how many bytes each * image row contains. The pixels are assumed to be 32-bit RGBA * formatted:. */
| 42 | * formatted:. |
| 43 | */ |
| 44 | struct image |
| 45 | { |
| 46 | datablock m_pixels; |
| 47 | unsigned long m_width, m_height, m_stride; |
| 48 | |
| 49 | image(); |
| 50 | image(image &&p_other); |
| 51 | image(image const &p_other); |
| 52 | |
| 53 | image& operator = (image &&p_other); |
| 54 | image& operator = (image const &p_other); |
| 55 | }; |
| 56 | |
| 57 | |
| 58 | bool is_valid(image const &p_image); |