Home | History | Annotate | Download | only in libtests

Lines Matching defs:Pixel

794 } Pixel;
810 /* Read a Pixel from a buffer. The code below stores the correct routine for
814 gp_g8(Pixel *p, png_const_voidp pb)
823 gp_ga8(Pixel *p, png_const_voidp pb)
833 gp_ag8(Pixel *p, png_const_voidp pb)
843 gp_rgb8(Pixel *p, png_const_voidp pb)
855 gp_bgr8(Pixel *p, png_const_voidp pb)
867 gp_rgba8(Pixel *p, png_const_voidp pb)
879 gp_bgra8(Pixel *p, png_const_voidp pb)
892 gp_argb8(Pixel *p, png_const_voidp pb)
905 gp_abgr8(Pixel *p, png_const_voidp pb)
917 gp_g16(Pixel *p, png_const_voidp pb)
926 gp_ga16(Pixel *p, png_const_voidp pb)
936 gp_ag16(Pixel *p, png_const_voidp pb)
946 gp_rgb16(Pixel *p, png_const_voidp pb)
958 gp_bgr16(Pixel *p, png_const_voidp pb)
970 gp_rgba16(Pixel *p, png_const_voidp pb)
982 gp_bgra16(Pixel *p, png_const_voidp pb)
995 gp_argb16(Pixel *p, png_const_voidp pb)
1008 gp_abgr16(Pixel *p, png_const_voidp pb)
1021 get_pixel(png_uint_32 format))(Pixel *p, png_const_voidp pb)
1146 /* Convertion between pixel formats. The code above effectively eliminates the
1204 gpc_noop(Pixel *out, const Pixel *in, const Background *back)
1215 gpc_nop8(Pixel *out, const Pixel *in, const Background *back)
1234 gpc_nop6(Pixel *out, const Pixel *in, const Background *back)
1254 gpc_bckg(Pixel *out, const Pixel *in, const Background *back)
1274 gpc_bckc(Pixel *out, const Pixel *in, const Background *back)
1304 gpc_g8(Pixel *out, const Pixel *in, const Background *back)
1320 gpc_g8b(Pixel *out, const Pixel *in, const Background *back)
1349 gpc_lin(Pixel *out, const Pixel *in, const Background *back)
1385 gpc_pre(Pixel *out, const Pixel *in, const Background *back)
1421 gpc_preq(Pixel *out, const Pixel *in, const Background *back)
1457 gpc_glin(Pixel *out, const Pixel *in, const Background *back)
1473 gpc_gpre(Pixel *out, const Pixel *in, const Background *back)
1489 gpc_gprq(Pixel *out, const Pixel *in, const Background *back)
1506 gpc_Lin(Pixel *out, const Pixel *in, const Background *back)
1544 gpc_Pre(Pixel *out, const Pixel *in, const Background *back)
1582 gpc_Preq(Pixel *out, const Pixel *in, const Background *back)
1621 gpc_Glin(Pixel *out, const Pixel *in, const Background *back)
1641 gpc_Gpre(Pixel *out, const Pixel *in, const Background *back)
1659 gpc_Gprq(Pixel *out, const Pixel *in, const Background *back)
1677 gpc_sRGB(Pixel *out, const Pixel *in, const Background *back)
1713 gpc_unpg(Pixel *out, const Pixel *in, const Background *back)
1732 gpc_unpc(Pixel *out, const Pixel *in, const Background *back)
1753 gpc_b16g(Pixel *out, const Pixel *in, const Background *back)
1772 gpc_b16c(Pixel *out, const Pixel *in, const Background *back)
1797 gpc_sG(Pixel *out, const Pixel *in, const Background *back)
1807 gpc_sGp(Pixel *out, const Pixel *in, const Background *back)
1826 gpc_sCp(Pixel *out, const Pixel *in, const Background *back)
1848 gpc_gb16(Pixel *out, const Pixel *in, const Background *back)
1870 gpc_cb16(Pixel *out, const Pixel *in, const Background *back)
1903 gpc_A(Pixel *out, const Pixel *in, const Background *back)
1914 gpc_g16(Pixel *out, const Pixel *in, const Background *back)
1923 gpc_g16q(Pixel *out, const Pixel *in, const Background *back)
1933 (Pixel *out, const Pixel *in, const Background *back) =
1960 (Pixel *out, const Pixel *in, const Background *back) =
1977 (Pixel *out, const Pixel *in, const Background *back) =
2005 * opaque input pixel values. Notice that alpha should be exact in each case.
2026 /* Basic pixel information: */
2043 void (*in_gp)(Pixel*, png_const_voidp);
2044 void (*out_gp)(Pixel*, png_const_voidp);
2046 void (*transform)(Pixel *out, const Pixel *in, const Background *back);
2049 void (*from_linear)(Pixel *out, const Pixel *in, const Background *back);
2127 /* The caller handles the colormap->pixel value conversion, so the
2128 * transform function just gets a pixel value, however because libpng
2278 * this compounds the 8-bit errors according to the alpha value of the pixel.
2290 error_via_linear[0] = 255; /* transparent pixel */
2317 print_pixel(char string[64], const Pixel *pixel, png_uint_32 format)
2322 sprintf(string, "%s(%d)", format_names[format], pixel->g);
2326 sprintf(string, "%s(%d,%d)", format_names[format], pixel->g,
2327 pixel->a);
2332 pixel->r, pixel->g, pixel->b);
2337 pixel->r, pixel->g, pixel->b, pixel->a);
2348 const Pixel *in, const Pixel *calc, const Pixel *out, const char *reason)
2380 Pixel back;
2425 Pixel pixel_in, pixel_calc, pixel_out;
2445 /* Eliminate the case where the output pixel is transparent and the output
2698 * pixel values. These cause an error here (at present) unless
2708 logerror(a, a->file_name, ": bad pixel index: ", pindex);
2720 logerror(b, b->file_name, ": bad pixel index: ", pindex);
2743 /* else the image buffers don't match pixel-wise so compare sample values
2744 * instead, but first validate that the pixel indexes are in range (but
2750 * TODO: deal with input images with bad pixel values?
2757 return logerror(a, a->file_name, ": bad pixel index: ", pindex);
2765 return logerror(b, b->file_name, ": bad pixel index: ", pindex);
2770 /* We can directly compare pixel values without the need to use the read
2777 * 8-bit alpha value of the pixel was 255 (opaque).
2918 * pixel.