Lines Matching +full:data +full:- +full:width

2  * SPDX-License-Identifier: MIT
61 (((val >> (ofs)) & ((1 << (num)) - 1)) << ((val >> 22) & 3))
95 typedef void (*pixman_image_destroy_func_t)(pixman_image_t *image, void *data);
100 int width; member
103 uint32_t *data; member
117 int width, in create_bits() argument
127 * stride = ((width * bpp + 0x1f) >> 5) * sizeof(uint32_t); in create_bits()
130 if (unlikely(__builtin_mul_overflow(width, bpp, &stride))) { in create_bits()
156 int width, in pixman_image_create_bits() argument
163 i->width = width; in pixman_image_create_bits()
164 i->height = height; in pixman_image_create_bits()
165 i->format = format; in pixman_image_create_bits()
167 i->data = bits; in pixman_image_create_bits()
169 i->free_me = i->data = in pixman_image_create_bits()
170 create_bits(format, width, height, &rowstride_bytes); in pixman_image_create_bits()
171 if (width && height) { in pixman_image_create_bits()
172 assert(i->data); in pixman_image_create_bits()
175 i->stride = rowstride_bytes ? rowstride_bytes : in pixman_image_create_bits()
176 width * DIV_ROUND_UP(PIXMAN_FORMAT_BPP(format), 8); in pixman_image_create_bits()
177 i->ref_count = 1; in pixman_image_create_bits()
184 i->ref_count++; in pixman_image_ref()
190 i->ref_count--; in pixman_image_unref()
192 if (i->ref_count == 0) { in pixman_image_unref()
193 if (i->destroy_func) { in pixman_image_unref()
194 i->destroy_func(i, i->destroy_data); in pixman_image_unref()
196 g_free(i->free_me); in pixman_image_unref()
207 void *data) in pixman_image_set_destroy_function() argument
210 i->destroy_func = func; in pixman_image_set_destroy_function()
211 i->destroy_data = data; in pixman_image_set_destroy_function()
216 return i->data; in pixman_image_get_data()
221 return i->height; in pixman_image_get_height()
226 return i->width; in pixman_image_get_width()
231 return i->stride; in pixman_image_get_stride()
236 return i->format; in pixman_image_get_format()