/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_format_table.py | 43 def colorspace_map(colorspace): 44 return 'UTIL_FORMAT_COLORSPACE_' + str(colorspace).upper() 129 comment = colorspace_channels_map[format.colorspace][i] 134 print " %s," % (colorspace_map(format.colorspace),) 135 if format.colorspace != ZS and format.channels[0].pure == False: 152 if format.colorspace == ZS and format.swizzles[0] != SWIZZLE_NONE: 162 if format.colorspace == ZS and format.swizzles[1] != SWIZZLE_NONE: 168 if format.colorspace != ZS and format.channels[0].pure == True and format.channels[0].type == UNSIGNED: 175 elif format.colorspace != ZS and format.channels[0].pure == True and format.channels[0].type == SIGNED:
|
H A D | u_format_parse.py | 107 def __init__(self, name, layout, block_width, block_height, channels, swizzles, colorspace): 115 self.colorspace = colorspace 254 colorspace = fields[9] 258 if colorspace in (RGB, SRGB): 263 elif colorspace == ZS: 301 format = Format(name, layout, block_width, block_height, channels, swizzles, colorspace)
|
H A D | u_format.h | 191 * depending on the colorspace. 198 enum util_format_colorspace colorspace; member in struct:util_format_description 474 return desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB; 480 return desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && 487 return desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && 532 switch (desc->colorspace) { 741 enum util_format_colorspace colorspace, 755 if (colorspace == UTIL_FORMAT_COLORSPACE_SRGB) { 756 colorspace = UTIL_FORMAT_COLORSPACE_RGB; 758 if (desc->colorspace 740 util_format_get_component_bits(enum pipe_format format, enum util_format_colorspace colorspace, uint component) argument [all...] |
H A D | u_format.c | 95 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || 96 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && 110 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || 111 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && 167 desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB || 199 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || 200 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && 217 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || 218 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && 431 src_desc->colorspace ! [all...] |
/external/libpng/ |
H A D | pngget.c | 491 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS)) 497 info_ptr->colorspace.end_points_xy.whitex, "cHRM white X"); 500 info_ptr->colorspace.end_points_xy.whitey, "cHRM white Y"); 502 *red_x = png_float(png_ptr, info_ptr->colorspace.end_points_xy.redx, 505 *red_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.redy, 509 info_ptr->colorspace.end_points_xy.greenx, "cHRM green X"); 512 info_ptr->colorspace.end_points_xy.greeny, "cHRM green Y"); 514 *blue_x = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluex, 517 *blue_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluey, 532 (info_ptr->colorspace [all...] |
H A D | png.c | 1035 png_colorspacerp colorspace, png_fixed_point gAMA, int from) 1048 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 && 1049 (!png_muldiv(>est, colorspace->gamma, PNG_FP_1, gAMA) || 1058 if ((colorspace->flags & PNG_COLORSPACE_FROM_sRGB) != 0 || from == 2) 1079 png_colorspacerp colorspace, png_fixed_point gAMA) 1100 (colorspace->flags & PNG_COLORSPACE_FROM_gAMA) != 0) 1104 /* Do nothing if the colorspace is already invalid */ 1105 else if (colorspace->flags & PNG_COLORSPACE_INVALID) 1110 if (png_colorspace_check_gamma(png_ptr, colorspace, gAMA, 1/*from gAMA*/)) 1113 colorspace 1034 png_colorspace_check_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA, int from) argument 1078 png_colorspace_set_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA) argument 1605 png_colorspace_set_xy_and_XYZ(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, const png_XYZ *XYZ, int preferred) argument 1651 png_colorspace_set_chromaticities(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, int preferred) argument 1689 png_colorspace_set_endpoints(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_XYZ *XYZ_in, int preferred) argument 1756 png_icc_profile_error(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_alloc_size_t value, png_const_charp reason) argument 1805 png_colorspace_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, int intent) argument 1903 png_icc_check_length(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length) argument 1918 png_icc_check_header(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile , int color_type) argument 2096 png_icc_check_tag_table(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile ) argument 2319 png_icc_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_bytep profile, uLong adler) argument 2332 png_colorspace_set_ICC(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile, int color_type) argument [all...] |
H A D | pnginfo.h | 93 * defined. When COLORSPACE is switched on all the colorspace-defining 102 png_colorspace colorspace; member in struct:png_info_def
|
/external/pdfium/samples/fx_lpng/lpng_v163/ |
H A D | fx_pngget.c | 490 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS))
496 info_ptr->colorspace.end_points_xy.whitex, "cHRM white X");
499 info_ptr->colorspace.end_points_xy.whitey, "cHRM white Y");
501 *red_x = png_float(png_ptr, info_ptr->colorspace.end_points_xy.redx,
504 *red_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.redy,
508 info_ptr->colorspace.end_points_xy.greenx, "cHRM green X");
511 info_ptr->colorspace.end_points_xy.greeny, "cHRM green Y");
513 *blue_x = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluex,
516 *blue_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluey,
531 (info_ptr->colorspace [all...] |
H A D | fx_png.c | 971 png_colorspacerp colorspace, png_fixed_point gAMA, int from)
984 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 &&
985 (!png_muldiv(>est, colorspace->gamma, PNG_FP_1, gAMA) ||
994 if ((colorspace->flags & PNG_COLORSPACE_FROM_sRGB) != 0 || from == 2)
1015 png_colorspacerp colorspace, png_fixed_point gAMA)
1036 (colorspace->flags & PNG_COLORSPACE_FROM_gAMA) != 0)
1040 /* Do nothing if the colorspace is already invalid */
1041 else if (colorspace->flags & PNG_COLORSPACE_INVALID)
1046 if (png_colorspace_check_gamma(png_ptr, colorspace, gAMA, 1/*from gAMA*/))
1049 colorspace 970 png_colorspace_check_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA, int from) argument 1014 png_colorspace_set_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA) argument 1540 png_colorspace_set_xy_and_XYZ(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, const png_XYZ *XYZ, int preferred) argument 1586 png_colorspace_set_chromaticities(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, int preferred) argument 1624 png_colorspace_set_endpoints(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_XYZ *XYZ_in, int preferred) argument 1690 png_icc_profile_error(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_alloc_size_t value, png_const_charp reason) argument 1738 png_colorspace_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, int intent) argument 1836 png_icc_check_length(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length) argument 1851 png_icc_check_header(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile , int color_type) argument 2029 png_icc_check_tag_table(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile ) argument 2251 png_icc_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_bytep profile, uLong adler) argument 2264 png_colorspace_set_ICC(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile, int color_type) argument [all...] |
H A D | pnginfo.h | 93 * defined. When COLORSPACE is switched on all the colorspace-defining
102 png_colorspace colorspace;
member in struct:png_info_def
|
/external/webp/src/dec/ |
H A D | io.c | 54 WebPSamplers[output->colorspace]); 69 const WebPYUV444Converter convert = WebPYUV444Converters[output->colorspace]; 92 WebPUpsampleLinePairFunc upsample = WebPUpsamplers[p->output->colorspace]; 202 const WEBP_CSP_MODE colorspace = p->output->colorspace; local 204 (colorspace == MODE_ARGB || colorspace == MODE_Argb); 223 if (alpha_mask != 0xff && WebPIsPremultipliedMode(colorspace)) { 235 const WEBP_CSP_MODE colorspace = p->output->colorspace; local 416 const WEBP_CSP_MODE colorspace = p->output->colorspace; local 453 const WEBP_CSP_MODE colorspace = p->output->colorspace; local 551 const WEBP_CSP_MODE colorspace = p->output->colorspace; local [all...] |
H A D | buffer.c | 38 const WEBP_CSP_MODE mode = buffer->colorspace; 81 const WEBP_CSP_MODE mode = buffer->colorspace; 143 if (WebPIsRGBMode(buffer->colorspace)) {
|
H A D | idec.c | 663 idec->output_.colorspace = mode; 677 WEBP_CSP_MODE colorspace; local 683 colorspace = MODE_YUVA; 691 colorspace = (a == NULL) ? MODE_YUV : MODE_YUVA; 697 idec->output_.colorspace = colorspace; 811 if (src->colorspace >= MODE_YUV) { 829 if (src->colorspace < MODE_YUV) {
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_tile_soa.py | 70 if format.colorspace not in ('rgb', 'srgb'): 93 if format.colorspace in ('rgb', 'srgb'): 98 elif format.colorspace == 'zs': 152 if format.colorspace in ('rgb', 'srgb'): 162 elif format.colorspace == 'zs': 182 assert format.colorspace in ('rgb', 'srgb') 307 and format.colorspace == 'rgb' \
|
H A D | lp_screen.c | 311 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS || 312 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) 332 if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS) 348 if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS &&
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_format_soa.c | 53 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { 321 (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || 322 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) &&
|
/external/kernel-headers/original/uapi/linux/ |
H A D | v4l2-mediabus.h | 136 * @colorspace: colorspace of the data (from enum v4l2_colorspace) 143 __u32 colorspace; member in struct:v4l2_mbus_framefmt
|
/external/opencv/otherlibs/highgui/ |
H A D | grfmt_jpeg2000.cpp | 161 int colorspace; local 165 colorspace = JAS_CLRSPC_SRGB; 170 colorspace = JAS_CLRSPC_SGRAY; // TODO GENGRAY or SGRAY? 173 // convert to the desired colorspace 176 jas_cmprof_t *clrprof = jas_cmprof_createfromclrspc( colorspace ); 187 fprintf(stderr, "JPEG 2000 LOADER ERROR: cannot convert colorspace\n"); 191 fprintf(stderr, "JPEG 2000 LOADER ERROR: unable to create colorspace\n"); 250 fprintf(stderr, "JPEG2000 LOADER ERROR: colorspace conversion failed\n" );
|
/external/webp/src/enc/ |
H A D | picture_csp.c | 10 // WebPPicture utils for colorspace conversion 852 picture->colorspace = has_alpha ? WEBP_YUV420A : WEBP_YUV420; 952 static int PictureARGBToYUVA(WebPPicture* picture, WebPEncCSP colorspace, argument 957 } else if ((colorspace & WEBP_CSP_UV_MASK) != WEBP_YUV420) { 966 picture->colorspace = WEBP_YUV420; 972 int WebPPictureARGBToYUVADithered(WebPPicture* picture, WebPEncCSP colorspace, argument 974 return PictureARGBToYUVA(picture, colorspace, dithering, 0); 977 int WebPPictureARGBToYUVA(WebPPicture* picture, WebPEncCSP colorspace) { argument 978 return PictureARGBToYUVA(picture, colorspace, 0.f, 0); 995 if ((picture->colorspace [all...] |
H A D | picture.c | 90 const WebPEncCSP uv_csp = picture->colorspace & WEBP_CSP_UV_MASK; 91 const int has_alpha = picture->colorspace & WEBP_CSP_ALPHA_BIT;
|
H A D | picture_psnr.c | 83 has_alpha = !!(src->colorspace & WEBP_CSP_ALPHA_BIT); 84 if (has_alpha != !!(ref->colorspace & WEBP_CSP_ALPHA_BIT) ||
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
H A D | sp_screen.c | 297 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) 311 if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS)
|
/external/mesa3d/src/gallium/tests/unit/ |
H A D | translate_test.c | 180 || output_format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB 206 || input_format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB
|
/external/webp/include/webp/ |
H A D | encode.h | 289 // since these are the respective native colorspace for these formats. 293 WebPEncCSP colorspace; // colorspace: should be YUV420 for now (=Y'CbCr). member in struct:WebPPicture 355 // Note that, by default, use_argb is false and colorspace is WEBP_YUV420. 364 // Allocate y/u/v buffers as per colorspace/width/height specification. 397 // picture uses the YUV420 colorspace, the top and left coordinates will be 405 // the 'src' source picture. If the source picture uses the YUV420 colorspace, 451 // Converts picture->argb data to the YUV420A format. The 'colorspace' 454 // non-opaque transparent values is detected, and 'colorspace' will be 458 WebPEncCSP /*colorspace [all...] |
/external/webp/src/webp/ |
H A D | encode.h | 289 // since these are the respective native colorspace for these formats. 293 WebPEncCSP colorspace; // colorspace: should be YUV420 for now (=Y'CbCr). member in struct:WebPPicture 355 // Note that, by default, use_argb is false and colorspace is WEBP_YUV420. 364 // Allocate y/u/v buffers as per colorspace/width/height specification. 397 // picture uses the YUV420 colorspace, the top and left coordinates will be 405 // the 'src' source picture. If the source picture uses the YUV420 colorspace, 451 // Converts picture->argb data to the YUV420A format. The 'colorspace' 454 // non-opaque transparent values is detected, and 'colorspace' will be 458 WebPEncCSP /*colorspace [all...] |