64 pixbuf =
zalloc (
sizeof ( *pixbuf ) );
66 goto err_alloc_pixbuf;
74 if ( (
width != 0 ) &&
88 pixbuf_put ( pixbuf );
109 DBGC (
image,
"IMAGE %s could not create pixel buffer: %s\n",
#define NULL
NULL pointer (VOID *)
struct arbelprm_rc_send_wqe rc
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define REQUIRE_OBJECT(object)
Require an object.
#define ENOTSUP
Operation not supported.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define REQUIRING_SYMBOL(symbol)
Specify the file's requiring symbol.
static __always_inline void * umalloc(size_t size)
Allocate external memory.
static __always_inline void ufree(void *ptr)
Free external memory.
void * zalloc(size_t size)
Allocate cleared memory.
static void free_pixbuf(struct refcnt *refcnt)
Free pixel buffer.
int image_pixbuf(struct image *image, struct pixel_buffer **pixbuf)
Create pixel buffer from image.
struct pixel_buffer * alloc_pixbuf(unsigned int width, unsigned int height)
Allocate pixel buffer.
static void(* free)(struct refcnt *refcnt))
#define ref_init(refcnt, free)
Initialise a reference counter.
#define container_of(ptr, type, field)
Get containing structure.
char * strerror(int errno)
Retrieve string representation of error number.
int(* pixbuf)(struct image *image, struct pixel_buffer **pixbuf)
Create pixel buffer from image.
struct image_type * type
Image type, if known.
unsigned int height
Height.
unsigned int pixels
Total number of pixels.
struct refcnt refcnt
Reference count.
uint32_t * data
32-bit (8:8:8:8) xRGB pixel data, in host-endian order