10 FILE_LICENCE ( GPL2_OR_LATER );
13 #include <ipxe/refcnt.h>
14 #include <ipxe/uaccess.h>
18 /** Reference count */
24 /** 32-bit (8:8:8:8) xRGB pixel data, in host-endian order */
31 * Get reference to pixel buffer
33 * @v pixbuf Pixel buffer
34 * @ret pixbuf Pixel buffer
36 static inline __attribute__ (( always_inline )) struct pixel_buffer *
37 pixbuf_get ( struct pixel_buffer *pixbuf ) {
38 ref_get ( &pixbuf->refcnt );
43 * Drop reference to pixel buffer
45 * @v pixbuf Pixel buffer
47 static inline __attribute__ (( always_inline )) void
48 pixbuf_put ( struct pixel_buffer *pixbuf ) {
49 ref_put ( &pixbuf->refcnt );
52 extern struct pixel_buffer * alloc_pixbuf ( unsigned int width,
53 unsigned int height );
55 #endif /* _IPXE_PIXBUF_H */