Home | History | Annotate | Download | only in libtests

Lines Matching refs:Background

765    /* The background as the original sRGB 8-bit value converted to the final
771 } Background;
1117 * background color. (Adding an alpha channel is a no-op.)
1138 * bckg: composite on gray background
1139 * bckc: composite on color background
1141 * g8b: convert sRGB components to grayscale and composite on gray background
1155 * b16g: composite linear onto gray background and convert the result to sRGB
1156 * b16c: composite linear onto color background and convert the result to sRGB
1160 * gb16: composite linear onto background and convert to sRGB grayscale
1162 * cb16: composite linear onto background and convert to sRGB
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)
1219 /* bckg: composite on gray background */
1221 gpc_bckg(Pixel *out, const Pixel *in, const Background *back)
1239 /* bckc: composite on color background */
1241 gpc_bckc(Pixel *out, const Pixel *in, const Background *back)
1271 gpc_g8(Pixel *out, const Pixel *in, const Background *back)
1285 /* g8b: convert sRGB components to grayscale and composite on gray background */
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)
1718 /* b16g: composite linear onto gray background and convert the result to sRGB */
1720 gpc_b16g(Pixel *out, const Pixel *in, const Background *back)
1737 /* b16c: composite linear onto color background and convert the result to sRGB*/
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)
1812 /* gb16: composite linear onto background and convert to sRGB grayscale */
1815 gpc_gb16(Pixel *out, const Pixel *in, const Background *back)
1835 /* cb16: composite linear onto background and convert to sRGB */
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) =
2146 /* 'background' is the value passed to the gpc_ routines, it may be NULL if
2150 Background background_color;
2151 const Background* background;
2162 void (*transform)(Pixel *out, const Pixel *in, const Background *back);
2165 void (*from_linear)(Pixel *out, const Pixel *in, const Background *back);
2181 const Image *out_image, png_const_colorp background, int via_linear)
2258 * routines as a background value, if one is not required pass NULL so that
2261 result->background = NULL; /* default: not required */
2263 /* Rule 1: background only need be supplied if alpha is to be removed */
2266 /* The input value is 'NULL' to use the background and (otherwise) an sRGB
2267 * background color (to use a solid color). The code above uses a fixed
2269 * linear (16-bit) output the sRGB background color is ignored; the
2270 * composition is always on the background (so BUFFER_INIT8 * 257), except
2273 result->background = &result->background_color;
2300 if (background != NULL)
2304 result->background_color.ir = background->red;
2305 result->background_color.ig = background->green;
2306 result->background_color.ib = background->blue;
2310 result->background_color.dr = sRGB_to_d[background->red];
2311 result->background_color.dg = sRGB_to_d[background->green];
2312 result->background_color.db = sRGB_to_d[background->blue];
2319 result->background_color.ib = background->green;
2325 result->background_color.db = sRGB_to_d[background->green];
2342 /* Else the output is colormapped and a background color must be
2347 result->background = NULL;
2351 if (result->background == NULL)
2487 /* And as a result the *read* format which did any background processing
2488 * was itself linear, so the background color information is also
2494 if (transform->background != NULL)
2499 back.r = transform->background->ir;
2500 back.g = transform->background->ig;
2501 back.b = transform->background->ib;
2505 sprintf(background_info, " on background %s", pixel_back);
2546 transform->transform(&pixel_calc, &pixel_in, transform->background);
2550 transform->transform(&pixel_out, &pixel_in, transform->background);
2618 errmsg = "transparent component (background)";
2716 png_const_colorp background)
2739 /* Set up the background and the transform */
2740 transform_from_formats(&tr, a, b, background, via_linear);
3057 read_file(Image *image, png_uint_32 format, png_const_colorp background)
3112 if (background != NULL)
3113 printf(" background(%d,%d,%d)\n", background->red,
3114 background->green, background->blue);
3140 result = png_image_finish_read(&image->image, background,
3346 * removal with a background color or by composting onto the image; this
3355 png_colorp background = NULL;
3358 * the background is relevant. If the output is 8-bit color-mapped
3359 * then a background color *must* be provided, otherwise there are
3368 /* Alpha/transparency will be removed, the background is
3372 background = &background_color;
3375 * the background must always be a color, so increment 'counter'
3384 * background NULL and skip the (counter & 1) NULL test.
3389 /* else just use NULL for background */
3394 result = read_file(&copy, format, background);
3399 result = compare_two_images(image, &copy, 0/*via linear*/, background);
3413 /* Validate against the original too; the background is needed here
3416 result = compare_two_images(image, &output, 0, background);
3440 background);