Home | History | Annotate | Download | only in libtests

Lines Matching full:background

775                "libpng does not support gamma+background+rgb_to_gray") == 0 ?
798 /* The background as the original sRGB 8-bit value converted to the final
804 } Background;
1150 * background color. (Adding an alpha channel is a no-op.)
1171 * bckg: composite on gray background
1172 * bckc: composite on color background
1174 * g8b: convert sRGB components to grayscale and composite on gray background
1188 * b16g: composite linear onto gray background and convert the result to sRGB
1189 * b16c: composite linear onto color background and convert the result to sRGB
1193 * gb16: composite linear onto background and convert to sRGB grayscale
1195 * cb16: composite linear onto background and convert to sRGB
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)
1252 /* bckg: composite on gray background */
1254 gpc_bckg(Pixel *out, const Pixel *in, const Background *back)
1272 /* bckc: composite on color background */
1274 gpc_bckc(Pixel *out, const Pixel *in, const Background *back)
1304 gpc_g8(Pixel *out, const Pixel *in, const Background *back)
1318 /* g8b: convert sRGB components to grayscale and composite on gray background */
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)
1751 /* b16g: composite linear onto gray background and convert the result to sRGB */
1753 gpc_b16g(Pixel *out, const Pixel *in, const Background *back)
1770 /* b16c: composite linear onto color background and convert the result to sRGB*/
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)
1845 /* gb16: composite linear onto background and convert to sRGB grayscale */
1848 gpc_gb16(Pixel *out, const Pixel *in, const Background *back)
1868 /* cb16: composite linear onto background and convert to sRGB */
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) =
2030 /* 'background' is the value passed to the gpc_ routines, it may be NULL if
2034 Background background_color;
2035 const Background* background;
2046 void (*transform)(Pixel *out, const Pixel *in, const Background *back);
2049 void (*from_linear)(Pixel *out, const Pixel *in, const Background *back);
2065 const Image *out_image, png_const_colorp background, int via_linear)
2142 * routines as a background value, if one is not required pass NULL so that
2145 result->background = NULL; /* default: not required */
2147 /* Rule 1: background only need be supplied if alpha is to be removed */
2150 /* The input value is 'NULL' to use the background and (otherwise) an sRGB
2151 * background color (to use a solid color). The code above uses a fixed
2153 * linear (16-bit) output the sRGB background color is ignored; the
2154 * composition is always on the background (so BUFFER_INIT8 * 257), except
2157 result->background = &result->background_color;
2184 if (background != NULL)
2188 result->background_color.ir = background->red;
2189 result->background_color.ig = background->green;
2190 result->background_color.ib = background->blue;
2194 result->background_color.dr = sRGB_to_d[background->red];
2195 result->background_color.dg = sRGB_to_d[background->green];
2196 result->background_color.db = sRGB_to_d[background->blue];
2203 result->background_color.ib = background->green;
2209 result->background_color.db = sRGB_to_d[background->green];
2226 /* Else the output is colormapped and a background color must be
2231 result->background = NULL;
2235 if (result->background == NULL)
2371 /* And as a result the *read* format which did any background processing
2372 * was itself linear, so the background color information is also
2378 if (transform->background != NULL)
2383 back.r = transform->background->ir;
2384 back.g = transform->background->ig;
2385 back.b = transform->background->ib;
2389 sprintf(background_info, " on background %s", pixel_back);
2430 transform->transform(&pixel_calc, &pixel_in, transform->background);
2434 transform->transform(&pixel_out, &pixel_in, transform->background);
2502 errmsg = "transparent component (background)";
2600 png_const_colorp background)
2623 /* Set up the background and the transform */
2624 transform_from_formats(&tr, a, b, background, via_linear);
2941 read_file(Image *image, png_uint_32 format, png_const_colorp background)
2996 if (background != NULL)
2997 printf(" background(%d,%d,%d)\n", background->red,
2998 background->green, background->blue);
3024 result = png_image_finish_read(&image->image, background,
3326 * removal with a background color or by composting onto the image; this
3335 png_colorp background = NULL;
3338 * the background is relevant. If the output is 8-bit color-mapped
3339 * then a background color *must* be provided, otherwise there are
3348 /* Alpha/transparency will be removed, the background is
3352 background = &background_color;
3355 * the background must always be a color, so increment 'counter'
3364 * background NULL and skip the (counter & 1) NULL test.
3369 /* else just use NULL for background */
3374 result = read_file(&copy, format, background);
3379 result = compare_two_images(image, &copy, 0/*via linear*/, background);
3393 /* Validate against the original too; the background is needed here
3396 result = compare_two_images(image, &output, 0, background);
3420 background);