Home | History | Annotate | Download | only in gdx2d

Lines Matching refs:pixels

226 	const unsigned char* pixels = stbi_load_from_memory(buffer, len, &width, &height, &format, 0);

227 if (pixels == NULL) {
228 pixels = jpgd_decompress_jpeg_image_from_memory(buffer, len, &width, &height, &format, 3);
230 if (pixels == NULL)
238 pixmap->pixels = pixels;
265 pixmap->pixels = (unsigned char*)malloc(width * height * gdx2d_bytes_per_pixel(format));
266 if (!pixmap->pixels) {
273 free((void*)pixmap->pixels);
292 int pixels = pixmap->width * pixmap->height;
293 memset((void*)pixmap->pixels, col, pixels);
297 int pixels = pixmap->width * pixmap->height;
298 unsigned short* ptr = (unsigned short*)pixmap->pixels;
301 for(; pixels > 0; pixels--) {
308 int pixels = pixmap->width * pixmap->height;
309 unsigned char* ptr = (unsigned char*)pixmap->pixels;
314 for(; pixels > 0; pixels--) {
325 int pixels = pixmap->width * pixmap->height;
326 uint32_t* ptr = (uint32_t*)pixmap->pixels;
333 for(; pixels > 0; pixels--) {
340 int pixels = pixmap->width * pixmap->height;
341 unsigned short* ptr = (unsigned short*)pixmap->pixels;
344 for(; pixels > 0; pixels--) {
351 int pixels = pixmap->width * pixmap->height;
352 unsigned short* ptr = (unsigned short*)pixmap->pixels;
355 for(; pixels > 0; pixels--) {
396 static inline void set_pixel(unsigned char* pixels, uint32_t width, uint32_t height, uint32_t bpp, set_pixel_func pixel_func, int32_t x, int32_t y, uint32_t col) {
399 pixels = pixels + (x + width * y) * bpp;
400 pixel_func(pixels, col);
406 unsigned char* ptr = (unsigned char*)pixmap->pixels + (x + pixmap->width * y) * gdx2d_bytes_per_pixel(pixmap->format);
415 set_pixel((unsigned char*)pixmap->pixels, pixmap->width, pixmap->height, gdx2d_bytes_per_pixel(pixmap->format), set_pixel_func_ptr(pixmap->format), x, y, col);
418 set_pixel((unsigned char*)pixmap->pixels, pixmap->width, pixmap->height, gdx2d_bytes_per_pixel(pixmap->format), set_pixel_func_ptr(pixmap->format), x, y, col);
427 unsigned char* ptr = (unsigned char*)pixmap->pixels;
486 unsigned char* ptr = (unsigned char*)pixmap->pixels;
521 unsigned char* ptr = (unsigned char*)pixmap->pixels;
560 static inline void circle_points(unsigned char* pixels, uint32_t width, uint32_t height, uint32_t bpp, set_pixel_func pixel_func, int32_t cx, int32_t cy, int32_t x, int32_t y, uint32_t col) {
562 set_pixel(pixels, width, height, bpp, pixel_func, cx, cy + y, col);
563 set_pixel(pixels, width, height, bpp, pixel_func, cx, cy - y, col);
564 set_pixel(pixels, width, height, bpp, pixel_func, cx + y, cy, col);
565 set_pixel(pixels, width, height, bpp, pixel_func, cx - y, cy, col);
568 set_pixel(pixels, width, height, bpp, pixel_func, cx + x, cy + y, col);
569 set_pixel(pixels, width, height, bpp, pixel_func, cx - x, cy + y, col);
570 set_pixel(pixels, width, height, bpp, pixel_func, cx + x, cy - y, col);
571 set_pixel(pixels, width, height, bpp, pixel_func, cx - x, cy - y, col);
574 set_pixel(pixels, width, height, bpp, pixel_func, cx + x, cy + y, col);
575 set_pixel(pixels, width, height, bpp, pixel_func, cx - x, cy + y, col);
576 set_pixel(pixels, width, height, bpp, pixel_func, cx + x, cy - y, col);
577 set_pixel(pixels, width, height, bpp, pixel_func, cx - x, cy - y, col);
578 set_pixel(pixels, width, height, bpp, pixel_func, cx + y, cy + x, col);
579 set_pixel(pixels, width, height, bpp, pixel_func, cx - y, cy + x, col);
580 set_pixel(pixels, width, height, bpp, pixel_func, cx + y, cy - x, col);
581 set_pixel(pixels, width, height, bpp, pixel_func, cx - y, cy - x, col);
589 unsigned char* pixels = (unsigned char*)pixmap->pixels;
596 circle_points(pixels, width, height, bpp, pixel_func, x, y, px, py, col);
605 circle_points(pixels, width, height, bpp, pixel_func, x, y, px, py, col);
792 const void* src_ptr = src_pixmap->pixels + sx * sbpp + sy * spitch;
793 const void* dst_ptr = dst_pixmap->pixels + dx * dbpp + dy * dpitch;
845 const void* dst_ptr = dst_pixmap->pixels + dx * dbpp + dy * dpitch;
846 const void* src_ptr = src_pixmap->pixels + sx * sbpp + sy * spitch;
922 const void* src_ptr = src_pixmap->pixels + sx * sbpp + sy * spitch;
923 const void* dst_ptr = dst_pixmap->pixels + dx * dbpp + dy * dpitch;