File: bitmap.h

package info (click to toggle)
png23d 1.10-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 9,020 kB
  • sloc: ansic: 1,951; makefile: 58; sh: 9
file content (26 lines) | stat: -rw-r--r-- 576 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright 2011 Vincent Sanders <vince@kyllikki.org>
 *
 * Licenced under the MIT License,
 *                http://www.opensource.org/licenses/mit-license.php
 *
 * This file is part of png23d. 
 * 
 * bitmap format.
 */

#ifndef PNG23D_BITMAP_H
#define PNG23D_BITMAP_H 1

/** 8bpp greyscale bitmap representation of image */
typedef struct bitmap {
    uint8_t *data; /**< bitmap data */
    uint32_t width; /**< width of data */
    uint32_t height; /**< height of data */
} bitmap;

bitmap *create_bitmap(const char *filename);

void free_bitmap(bitmap *bm);

#endif