Home | History | Annotate | Download | only in libtests

Lines Matching refs:Pixel

761 } Pixel;
777 /* Read a Pixel from a buffer. The code below stores the correct routine for
781 gp_g8(Pixel *p, png_const_voidp pb)
790 gp_ga8(Pixel *p, png_const_voidp pb)
800 gp_ag8(Pixel *p, png_const_voidp pb)
810 gp_rgb8(Pixel *p, png_const_voidp pb)
822 gp_bgr8(Pixel *p, png_const_voidp pb)
834 gp_rgba8(Pixel *p, png_const_voidp pb)
846 gp_bgra8(Pixel *p, png_const_voidp pb)
859 gp_argb8(Pixel *p, png_const_voidp pb)
872 gp_abgr8(Pixel *p, png_const_voidp pb)
884 gp_g16(Pixel *p, png_const_voidp pb)
893 gp_ga16(Pixel *p, png_const_voidp pb)
903 gp_ag16(Pixel *p, png_const_voidp pb)
913 gp_rgb16(Pixel *p, png_const_voidp pb)
925 gp_bgr16(Pixel *p, png_const_voidp pb)
937 gp_rgba16(Pixel *p, png_const_voidp pb)
949 gp_bgra16(Pixel *p, png_const_voidp pb)
962 gp_argb16(Pixel *p, png_const_voidp pb)
975 gp_abgr16(Pixel *p, png_const_voidp pb)
988 get_pixel(png_uint_32 format))(Pixel *p, png_const_voidp pb)
1113 /* Convertion between pixel formats. The code above effectively eliminates the
1171 gpc_noop(Pixel *out, const Pixel *in, const Background *back)
1182 gpc_nop8(Pixel *out, const Pixel *in, const Background *back)
1201 gpc_nop6(Pixel *out, const Pixel *in, const Background *back)
1221 gpc_bckg(Pixel *out, const Pixel *in, const Background *back)
1241 gpc_bckc(Pixel *out, const Pixel *in, const Background *back)
1271 gpc_g8(Pixel *out, const Pixel *in, const Background *back)
1287 gpc_g8b(Pixel *out, const Pixel *in, const Background *back)
1316 gpc_lin(Pixel *out, const Pixel *in, const Background *back)
1352 gpc_pre(Pixel *out, const Pixel *in, const Background *back)
1388 gpc_preq(Pixel *out, const Pixel *in, const Background *back)
1424 gpc_glin(Pixel *out, const Pixel *in, const Background *back)
1440 gpc_gpre(Pixel *out, const Pixel *in, const Background *back)
1456 gpc_gprq(Pixel *out, const Pixel *in, const Background *back)
1473 gpc_Lin(Pixel *out, const Pixel *in, const Background *back)
1511 gpc_Pre(Pixel *out, const Pixel *in, const Background *back)
1549 gpc_Preq(Pixel *out, const Pixel *in, const Background *back)
1588 gpc_Glin(Pixel *out, const Pixel *in, const Background *back)
1608 gpc_Gpre(Pixel *out, const Pixel *in, const Background *back)
1626 gpc_Gprq(Pixel *out, const Pixel *in, const Background *back)
1644 gpc_sRGB(Pixel *out, const Pixel *in, const Background *back)
1680 gpc_unpg(Pixel *out, const Pixel *in, const Background *back)
1699 gpc_unpc(Pixel *out, const Pixel *in, const Background *back)
1720 gpc_b16g(Pixel *out, const Pixel *in, const Background *back)
1739 gpc_b16c(Pixel *out, const Pixel *in, const Background *back)
1764 gpc_sG(Pixel *out, const Pixel *in, const Background *back)
1774 gpc_sGp(Pixel *out, const Pixel *in, const Background *back)
1793 gpc_sCp(Pixel *out, const Pixel *in, const Background *back)
1815 gpc_gb16(Pixel *out, const Pixel *in, const Background *back)
1837 gpc_cb16(Pixel *out, const Pixel *in, const Background *back)
1870 gpc_A(Pixel *out, const Pixel *in, const Background *back)
1881 gpc_g16(Pixel *out, const Pixel *in, const Background *back)
1890 gpc_g16q(Pixel *out, const Pixel *in, const Background *back)
1900 (Pixel *out, const Pixel *in, const Background *back) =
1927 (Pixel *out, const Pixel *in, const Background *back) =
1944 (Pixel *out, const Pixel *in, const Background *back) =
1972 * opaque input pixel values. Notice that alpha should be exact in each case.
2142 /* Basic pixel information: */
2159 void (*in_gp)(Pixel*, png_const_voidp);
2160 void (*out_gp)(Pixel*, png_const_voidp);
2162 void (*transform)(Pixel *out, const Pixel *in, const Background *back);
2165 void (*from_linear)(Pixel *out, const Pixel *in, const Background *back);
2243 /* The caller handles the colormap->pixel value conversion, so the
2244 * transform function just gets a pixel value, however because libpng
2394 * this compounds the 8-bit errors according to the alpha value of the pixel.
2406 error_via_linear[0] = 255; /* transparent pixel */
2433 print_pixel(char string[64], const Pixel *pixel, png_uint_32 format)
2438 sprintf(string, "%s(%d)", format_names[format], pixel->g);
2442 sprintf(string, "%s(%d,%d)", format_names[format], pixel->g,
2443 pixel->a);
2448 pixel->r, pixel->g, pixel->b);
2453 pixel->r, pixel->g, pixel->b, pixel->a);
2464 const Pixel *in, const Pixel *calc, const Pixel *out, const char *reason)
2496 Pixel back;
2541 Pixel pixel_in, pixel_calc, pixel_out;
2561 /* Eliminate the case where the output pixel is transparent and the output
2814 * pixel values. These cause an error here (at present) unless
2824 logerror(a, a->file_name, ": bad pixel index: ", pindex);
2836 logerror(b, b->file_name, ": bad pixel index: ", pindex);
2859 /* else the image buffers don't match pixel-wise so compare sample values
2860 * instead, but first validate that the pixel indexes are in range (but
2866 * TODO: deal with input images with bad pixel values?
2873 return logerror(a, a->file_name, ": bad pixel index: ", pindex);
2881 return logerror(b, b->file_name, ": bad pixel index: ", pindex);
2886 /* We can directly compare pixel values without the need to use the read
2893 * 8-bit alpha value of the pixel was 255 (opaque).
3034 * pixel.