62 pixbuf =
zalloc (
sizeof ( *pixbuf ) );
64 goto err_alloc_pixbuf;
71 if ( (
width != 0 ) &&
85 pixbuf_put ( pixbuf );
106 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.
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.
#define ENOTSUP
Operation not supported.
#define container_of(ptr, type, field)
Get containing structure.
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 ufree(userptr_t userptr)
Free external memory.
static __always_inline userptr_t 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)
userptr_t data
32-bit (8:8:8:8) xRGB pixel data, in host-endian order
#define NULL
NULL pointer (VOID *)
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
REQUIRE_OBJECT(config_pixbuf)