iPXE
|
Pixel buffer. More...
Go to the source code of this file.
Data Structures | |
struct | pixel_buffer |
A pixel buffer. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static | __attribute__ ((always_inline)) struct pixel_buffer *pixbuf_get(struct pixel_buffer *pixbuf) |
Get reference to pixel buffer. More... | |
struct pixel_buffer * | alloc_pixbuf (unsigned int width, unsigned int height) |
Allocate pixel buffer. More... | |
Pixel buffer.
Definition in file pixbuf.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Get reference to pixel buffer.
Drop reference to pixel buffer.
pixbuf | Pixel buffer |
pixbuf | Pixel buffer |
pixbuf | Pixel buffer |
Definition at line 36 of file pixbuf.h.
References ref_get, and pixel_buffer::refcnt.
struct pixel_buffer* alloc_pixbuf | ( | unsigned int | width, |
unsigned int | height | ||
) |
Allocate pixel buffer.
width | Width @h height Height |
pixbuf | Pixel buffer, or NULL on failure |
Definition at line 58 of file pixbuf.c.
References pixel_buffer::data, free_pixbuf(), pixel_buffer::height, pixel_buffer::len, NULL, ref_init, pixel_buffer::refcnt, umalloc(), pixel_buffer::width, and zalloc().
Referenced by png_image_header(), and pnm_pixbuf().