|
iPXE
|
Pixel buffer. More...
#include <stdlib.h>#include <string.h>#include <errno.h>#include <ipxe/umalloc.h>#include <ipxe/image.h>#include <ipxe/pixbuf.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static void | free_pixbuf (struct refcnt *refcnt) |
| Free pixel buffer. More... | |
| struct pixel_buffer * | alloc_pixbuf (unsigned int width, unsigned int height) |
| Allocate pixel buffer. More... | |
| int | image_pixbuf (struct image *image, struct pixel_buffer **pixbuf) |
| Create pixel buffer from image. More... | |
| REQUIRING_SYMBOL (image_pixbuf) | |
| REQUIRE_OBJECT (config_pixbuf) | |
Pixel buffer.
Definition in file pixbuf.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Free pixel buffer.
| refcnt | Reference count |
Definition at line 44 of file pixbuf.c.
References container_of, pixel_buffer::data, free, and ufree().
Referenced by alloc_pixbuf().
| 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 59 of file pixbuf.c.
References pixel_buffer::data, free_pixbuf(), pixel_buffer::height, pixel_buffer::len, NULL, pixel_buffer::pixels, ref_init, pixel_buffer::refcnt, umalloc(), pixel_buffer::width, and zalloc().
Referenced by png_image_header(), and pnm_pixbuf().
| int image_pixbuf | ( | struct image * | image, |
| struct pixel_buffer ** | pixbuf | ||
| ) |
Create pixel buffer from image.
| image | Image |
| pixbuf | Pixel buffer to fill in |
| rc | Return status code |
Definition at line 99 of file pixbuf.c.
References DBGC, ENOTSUP, image::name, image_type::pixbuf, rc, strerror(), and image::type.
Referenced by console_exec(), and pixbuf_okx().
| REQUIRING_SYMBOL | ( | image_pixbuf | ) |
| REQUIRE_OBJECT | ( | config_pixbuf | ) |
1.8.15