Lines Matching refs:pixel
24 /* General (mostly internal) pixel/color manipulation routines for SDL */
35 * Allocate a pixel format structure and fill it according to the given info.
43 /* Allocate an empty pixel format structure */
320 Uint8 pixel=0;
329 pixel = i;
336 return(pixel);
339 /* Find the opaque pixel value corresponding to an RGB triple */
354 /* Find the pixel value corresponding to an RGBA quadruple */
369 void SDL_GetRGBA(Uint32 pixel, const SDL_PixelFormat * const fmt,
383 v = (pixel & fmt->Rmask) >> fmt->Rshift;
385 v = (pixel & fmt->Gmask) >> fmt->Gshift;
387 v = (pixel & fmt->Bmask) >> fmt->Bshift;
390 v = (pixel & fmt->Amask) >> fmt->Ashift;
396 *r = fmt->palette->colors[pixel].r;
397 *g = fmt->palette->colors[pixel].g;
398 *b = fmt->palette->colors[pixel].b;
403 void SDL_GetRGB(Uint32 pixel, const SDL_PixelFormat * const fmt,
409 v = (pixel & fmt->Rmask) >> fmt->Rshift;
411 v = (pixel & fmt->Gmask) >> fmt->Gshift;
413 v = (pixel & fmt->Bmask) >> fmt->Bshift;
416 *r = fmt->palette->colors[pixel].r;
417 *g = fmt->palette->colors[pixel].g;
418 *b = fmt->palette->colors[pixel].b;
480 /* We memory copy to the pixel map so the endianness is preserved */