Searched refs:pBackground (Results 1 – 3 of 3) sorted by relevance
/external/libpng/contrib/gregbook/ |
D | readpng.c | 156 png_color_16p pBackground; in readpng_get_bgcolor() local 175 png_get_bKGD(png_ptr, info_ptr, &pBackground); in readpng_get_bgcolor() 182 *red = pBackground->red >> 8; in readpng_get_bgcolor() 183 *green = pBackground->green >> 8; in readpng_get_bgcolor() 184 *blue = pBackground->blue >> 8; in readpng_get_bgcolor() 187 *red = *green = *blue = pBackground->gray? 255 : 0; in readpng_get_bgcolor() 189 *red = *green = *blue = (255/3) * pBackground->gray; in readpng_get_bgcolor() 191 *red = *green = *blue = (255/15) * pBackground->gray; in readpng_get_bgcolor() 193 *red = (uch)pBackground->red; in readpng_get_bgcolor() 194 *green = (uch)pBackground->green; in readpng_get_bgcolor() [all …]
|
D | readpng2.c | 427 png_color_16p pBackground; in readpng2_info_callback() local 432 png_get_bKGD(png_ptr, info_ptr, &pBackground); in readpng2_info_callback() 437 mainprog_ptr->bg_red = pBackground->red >> 8; in readpng2_info_callback() 438 mainprog_ptr->bg_green = pBackground->green >> 8; in readpng2_info_callback() 439 mainprog_ptr->bg_blue = pBackground->blue >> 8; in readpng2_info_callback() 443 mainprog_ptr->bg_blue = pBackground->gray? 255 : 0; in readpng2_info_callback() 446 mainprog_ptr->bg_blue = (255/3) * pBackground->gray; in readpng2_info_callback() 449 mainprog_ptr->bg_blue = (255/15) * pBackground->gray; in readpng2_info_callback() 451 mainprog_ptr->bg_red = (uch)pBackground->red; in readpng2_info_callback() 452 mainprog_ptr->bg_green = (uch)pBackground->green; in readpng2_info_callback() [all …]
|
/external/libpng/contrib/visupng/ |
D | PngFile.c | 105 png_color_16 *pBackground; in PngLoadImage() local 191 if (png_get_bKGD(png_ptr, info_ptr, &pBackground)) in PngLoadImage() 193 png_set_background(png_ptr, pBackground, PNG_BACKGROUND_GAMMA_FILE, 1, 1.0); in PngLoadImage() 194 pBkgColor->red = (byte) pBackground->red; in PngLoadImage() 195 pBkgColor->green = (byte) pBackground->green; in PngLoadImage() 196 pBkgColor->blue = (byte) pBackground->blue; in PngLoadImage()
|