Searched refs:colorspace (Results 1 - 25 of 73) sorted by relevance

123

/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format_table.py43 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 Du_format_parse.py107 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 Du_format.h191 * 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 Du_format.c95 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 Dpngget.c491 (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 Dpng.c1035 png_colorspacerp colorspace, png_fixed_point gAMA, int from)
1048 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 &&
1049 (!png_muldiv(&gtest, 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 Dpnginfo.h93 * 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 Dfx_pngget.c490 (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 Dfx_png.c971 png_colorspacerp colorspace, png_fixed_point gAMA, int from)
984 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 &&
985 (!png_muldiv(&gtest, 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 Dpnginfo.h93 * 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 Dio.c54 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 Dbuffer.c38 const WEBP_CSP_MODE mode = buffer->colorspace;
81 const WEBP_CSP_MODE mode = buffer->colorspace;
143 if (WebPIsRGBMode(buffer->colorspace)) {
H A Didec.c663 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 Dlp_tile_soa.py70 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 Dlp_screen.c311 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 Dlp_bld_format_soa.c53 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 Dv4l2-mediabus.h136 * @colorspace: colorspace of the data (from enum v4l2_colorspace)
143 __u32 colorspace; member in struct:v4l2_mbus_framefmt
/external/opencv/otherlibs/highgui/
H A Dgrfmt_jpeg2000.cpp161 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 Dpicture_csp.c10 // 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 Dpicture.c90 const WebPEncCSP uv_csp = picture->colorspace & WEBP_CSP_UV_MASK;
91 const int has_alpha = picture->colorspace & WEBP_CSP_ALPHA_BIT;
H A Dpicture_psnr.c83 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 Dsp_screen.c297 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 Dtranslate_test.c180 || output_format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB
206 || input_format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB
/external/webp/include/webp/
H A Dencode.h289 // 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 Dencode.h289 // 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...]

Completed in 1210 milliseconds

123