63 pixbuf =
zalloc (
sizeof ( *pixbuf ) );
65 goto err_alloc_pixbuf;
73 if ( (
width != 0 ) &&
87 pixbuf_put ( pixbuf );
108 DBGC (
image,
"IMAGE %s could not create pixel buffer: %s\n",
int image_pixbuf(struct image *image, struct pixel_buffer **pixbuf)
Create pixel buffer from image.
static __always_inline void ufree(void *ptr)
Free external memory.
struct arbelprm_rc_send_wqe rc
struct pixel_buffer * alloc_pixbuf(unsigned int width, unsigned int height)
Allocate pixel buffer.
static void free_pixbuf(struct refcnt *refcnt)
Free pixel buffer.
#define ref_init(refcnt, free)
Initialise a reference counter.
unsigned int height
Height.
struct image_type * type
Image type, if known.
unsigned int pixels
Total number of pixels.
#define ENOTSUP
Operation not supported.
#define container_of(ptr, type, field)
Get containing structure.
uint32_t * data
32-bit (8:8:8:8) xRGB pixel data, in host-endian order
char * strerror(int errno)
Retrieve string representation of error number.
static void(* free)(struct refcnt *refcnt))
void * zalloc(size_t size)
Allocate cleared memory.
struct refcnt refcnt
Reference count.
static __always_inline void * umalloc(size_t size)
Allocate external memory.
int(* pixbuf)(struct image *image, struct pixel_buffer **pixbuf)
Create pixel buffer from image.
REQUIRING_SYMBOL(image_pixbuf)
#define NULL
NULL pointer (VOID *)
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
REQUIRE_OBJECT(config_pixbuf)