/external/ImageMagick/MagickCore/ |
D | colorspace-private.h | 51 if (pixel->colorspace != sRGBColorspace) in ConvertRGBToCMYK() 81 pixel->colorspace=CMYKColorspace; in ConvertRGBToCMYK() 89 const ColorspaceType colorspace) in IsCMYKColorspace() argument 91 if (colorspace == CMYKColorspace) in IsCMYKColorspace() 97 const ColorspaceType colorspace) in IsGrayColorspace() argument 99 if (colorspace == GRAYColorspace) in IsGrayColorspace() 104 static inline MagickBooleanType IsRGBColorspace(const ColorspaceType colorspace) in IsRGBColorspace() argument 106 if ((colorspace == RGBColorspace) || (colorspace == scRGBColorspace)) in IsRGBColorspace() 112 const ColorspaceType colorspace) in IssRGBColorspace() argument 114 if ((colorspace == sRGBColorspace) || (colorspace == TransparentColorspace)) in IssRGBColorspace() [all …]
|
D | color.c | 1167 if (pixel->colorspace == LabColorspace) in ConcatenateColorComponent() 1207 if ((pixel->colorspace == HCLColorspace) || in ConcatenateColorComponent() 1208 (pixel->colorspace == HCLpColorspace) || in ConcatenateColorComponent() 1209 (pixel->colorspace == HSBColorspace) || in ConcatenateColorComponent() 1210 (pixel->colorspace == HSIColorspace) || in ConcatenateColorComponent() 1211 (pixel->colorspace == HSLColorspace) || in ConcatenateColorComponent() 1212 (pixel->colorspace == HSVColorspace) || in ConcatenateColorComponent() 1213 (pixel->colorspace == HWBColorspace)) in ConcatenateColorComponent() 1226 if (pixel->colorspace == LabColorspace) in ConcatenateColorComponent() 1480 if ((pixel->colorspace == CMYKColorspace) && in IsSVGCompliant() [all …]
|
D | colorspace.c | 224 const ColorspaceType colorspace,ExceptionInfo *exception) in sRGBTransformImage() argument 255 assert(colorspace != sRGBColorspace); in sRGBTransformImage() 256 assert(colorspace != TransparentColorspace); in sRGBTransformImage() 257 assert(colorspace != UndefinedColorspace); in sRGBTransformImage() 260 switch (colorspace) in sRGBTransformImage() 277 if (SetImageColorspace(image,colorspace,exception) == MagickFalse) in sRGBTransformImage() 323 if (SetImageColorspace(image,colorspace,exception) == MagickFalse) in sRGBTransformImage() 374 if (SetImageColorspace(image,colorspace,exception) == MagickFalse) in sRGBTransformImage() 449 switch (colorspace) in sRGBTransformImage() 570 if (SetImageColorspace(image,colorspace,exception) == MagickFalse) in sRGBTransformImage() [all …]
|
D | attribute.c | 590 if (image->colorspace == CMYKColorspace) in GetImageType() 666 if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse) in IdentifyImageGray() 747 if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse) in IdentifyImageMonochrome() 813 if (image->colorspace == CMYKColorspace) in IdentifyImageType() 1263 quantize_info->colorspace=GRAYColorspace; in SetImageType() 1288 if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse) in SetImageType() 1305 if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse) in SetImageType() 1319 if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse) in SetImageType() 1324 quantize_info->colorspace=TransparentColorspace; in SetImageType() 1331 if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse) in SetImageType() [all …]
|
/external/libpng/ |
D | pngget.c | 523 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0) in png_get_cHRM() 529 info_ptr->colorspace.end_points_xy.whitex, "cHRM white X"); in png_get_cHRM() 532 info_ptr->colorspace.end_points_xy.whitey, "cHRM white Y"); in png_get_cHRM() 534 *red_x = png_float(png_ptr, info_ptr->colorspace.end_points_xy.redx, in png_get_cHRM() 537 *red_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.redy, in png_get_cHRM() 541 info_ptr->colorspace.end_points_xy.greenx, "cHRM green X"); in png_get_cHRM() 544 info_ptr->colorspace.end_points_xy.greeny, "cHRM green Y"); in png_get_cHRM() 546 *blue_x = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluex, in png_get_cHRM() 549 *blue_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluey, in png_get_cHRM() 564 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0) in png_get_cHRM_XYZ() [all …]
|
D | png.c | 1036 png_colorspacerp colorspace, png_fixed_point gAMA, int from) 1049 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 && 1050 (png_muldiv(>est, colorspace->gamma, PNG_FP_1, gAMA) == 0 || 1059 if ((colorspace->flags & PNG_COLORSPACE_FROM_sRGB) != 0 || from == 2) 1080 png_colorspacerp colorspace, png_fixed_point gAMA) 1101 (colorspace->flags & PNG_COLORSPACE_FROM_gAMA) != 0) 1106 else if ((colorspace->flags & PNG_COLORSPACE_INVALID) != 0) 1111 if (png_colorspace_check_gamma(png_ptr, colorspace, gAMA, 1115 colorspace->gamma = gAMA; 1116 colorspace->flags |= [all …]
|
/external/pdfium/third_party/libpng16/ |
D | pngget.c | 523 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0) in png_get_cHRM() 529 info_ptr->colorspace.end_points_xy.whitex, "cHRM white X"); in png_get_cHRM() 532 info_ptr->colorspace.end_points_xy.whitey, "cHRM white Y"); in png_get_cHRM() 534 *red_x = png_float(png_ptr, info_ptr->colorspace.end_points_xy.redx, in png_get_cHRM() 537 *red_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.redy, in png_get_cHRM() 541 info_ptr->colorspace.end_points_xy.greenx, "cHRM green X"); in png_get_cHRM() 544 info_ptr->colorspace.end_points_xy.greeny, "cHRM green Y"); in png_get_cHRM() 546 *blue_x = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluex, in png_get_cHRM() 549 *blue_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluey, in png_get_cHRM() 564 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0) in png_get_cHRM_XYZ() [all …]
|
D | png.c | 1036 png_colorspacerp colorspace, png_fixed_point gAMA, int from) 1049 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 && 1050 (png_muldiv(>est, colorspace->gamma, PNG_FP_1, gAMA) == 0 || 1059 if ((colorspace->flags & PNG_COLORSPACE_FROM_sRGB) != 0 || from == 2) 1080 png_colorspacerp colorspace, png_fixed_point gAMA) 1101 (colorspace->flags & PNG_COLORSPACE_FROM_gAMA) != 0) 1106 else if ((colorspace->flags & PNG_COLORSPACE_INVALID) != 0) 1111 if (png_colorspace_check_gamma(png_ptr, colorspace, gAMA, 1115 colorspace->gamma = gAMA; 1116 colorspace->flags |= [all …]
|
/external/skia/third_party/libpng/ |
D | pngget.c | 523 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0) in png_get_cHRM() 529 info_ptr->colorspace.end_points_xy.whitex, "cHRM white X"); in png_get_cHRM() 532 info_ptr->colorspace.end_points_xy.whitey, "cHRM white Y"); in png_get_cHRM() 534 *red_x = png_float(png_ptr, info_ptr->colorspace.end_points_xy.redx, in png_get_cHRM() 537 *red_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.redy, in png_get_cHRM() 541 info_ptr->colorspace.end_points_xy.greenx, "cHRM green X"); in png_get_cHRM() 544 info_ptr->colorspace.end_points_xy.greeny, "cHRM green Y"); in png_get_cHRM() 546 *blue_x = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluex, in png_get_cHRM() 549 *blue_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluey, in png_get_cHRM() 564 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0) in png_get_cHRM_XYZ() [all …]
|
D | png.c | 1036 png_colorspacerp colorspace, png_fixed_point gAMA, int from) 1049 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 && 1050 (png_muldiv(>est, colorspace->gamma, PNG_FP_1, gAMA) == 0 || 1059 if ((colorspace->flags & PNG_COLORSPACE_FROM_sRGB) != 0 || from == 2) 1080 png_colorspacerp colorspace, png_fixed_point gAMA) 1101 (colorspace->flags & PNG_COLORSPACE_FROM_gAMA) != 0) 1106 else if ((colorspace->flags & PNG_COLORSPACE_INVALID) != 0) 1111 if (png_colorspace_check_gamma(png_ptr, colorspace, gAMA, 1115 colorspace->gamma = gAMA; 1116 colorspace->flags |= [all …]
|
/external/webp/src/dec/ |
D | io_dec.c | 54 WebPSamplers[output->colorspace]); in EmitSampledRGB() 66 WebPUpsampleLinePairFunc upsample = WebPUpsamplers[p->output->colorspace]; in EmitFancyRGB() 184 const WEBP_CSP_MODE colorspace = p->output->colorspace; in EmitAlphaRGB() local 186 (colorspace == MODE_ARGB || colorspace == MODE_Argb); in EmitAlphaRGB() 197 if (has_alpha && WebPIsPremultipliedMode(colorspace)) { in EmitAlphaRGB() 210 const WEBP_CSP_MODE colorspace = p->output->colorspace; in EmitAlphaRGBA4444() local 234 if (alpha_mask != 0x0f && WebPIsPremultipliedMode(colorspace)) { in EmitAlphaRGBA4444() 261 if (WebPIsAlphaMode(p->output->colorspace) && io->a != NULL) { in EmitRescaledYUV() 297 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitYUVRescaler() 356 WebPYUV444Converters[p->output->colorspace]; in ExportRGB() [all …]
|
D | buffer_dec.c | 43 const WEBP_CSP_MODE mode = buffer->colorspace; in CheckDecBuffer() 89 const WEBP_CSP_MODE mode = buffer->colorspace; in AllocateBuffer() 151 if (WebPIsRGBMode(buffer->colorspace)) { in WebPFlipBuffer() 262 assert(src_buf->colorspace == dst_buf->colorspace); in WebPCopyDecBufferPixels() 269 if (WebPIsRGBMode(src_buf->colorspace)) { in WebPCopyDecBufferPixels() 273 src_buf->width * kModeBpp[src_buf->colorspace], in WebPCopyDecBufferPixels() 284 if (WebPIsAlphaMode(src_buf->colorspace)) { in WebPCopyDecBufferPixels() 296 WebPIsPremultipliedMode(output->colorspace) && in WebPAvoidSlowMemory()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_format_parse.py | 107 …layout, block_width, block_height, le_channels, le_swizzles, be_channels, be_swizzles, colorspace): argument 117 self.colorspace = colorspace 212 if self.layout != PLAIN or self.colorspace == ZS: 239 return self.colorspace == ZS and self.has_channel(0) 242 return self.colorspace == ZS and self.has_channel(1) 267 def _parse_channels(fields, layout, colorspace, swizzles): argument 270 if colorspace in (RGB, SRGB): 275 elif colorspace == ZS: 340 colorspace = fields[9] 343 le_channels = _parse_channels(fields[4:8], layout, colorspace, le_swizzles) [all …]
|
D | u_format_table.py | 43 def colorspace_map(colorspace): argument 44 return 'UTIL_FORMAT_COLORSPACE_' + str(colorspace).upper() 120 comment = colorspace_channels_map[format.colorspace][i] 140 print " %s," % (colorspace_map(format.colorspace),) 146 if format.colorspace != ZS and not format.is_pure_color() and access:
|
D | u_format.c | 71 return (desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_has_alpha() 72 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_has_alpha() 83 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_is_luminance() 84 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_is_luminance() 100 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_is_alpha() 101 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_is_alpha() 197 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_is_luminance_alpha() 198 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_is_luminance_alpha() 215 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_is_intensity() 216 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_is_intensity() [all …]
|
D | u_format.h | 223 enum util_format_colorspace colorspace; member 502 return desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB; in util_format_is_srgb() 508 return desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && in util_format_has_depth() 515 return desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && in util_format_has_stencil() 555 if (desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && in util_get_depth_format_type() 614 switch (desc->colorspace) { in util_format_colormask() 835 enum util_format_colorspace colorspace, in util_format_get_component_bits() argument 849 if (colorspace == UTIL_FORMAT_COLORSPACE_SRGB) { in util_format_get_component_bits() 850 colorspace = UTIL_FORMAT_COLORSPACE_RGB; in util_format_get_component_bits() 852 if (desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) { in util_format_get_component_bits() [all …]
|
/external/ImageMagick/coders/ |
D | debug.c | 169 colorspace[MagickPathExtent], in WriteDEBUGImage() local 205 (void) CopyMagickString(colorspace,CommandOptionToMnemonic( in WriteDEBUGImage() 206 MagickColorspaceOptions,(ssize_t) image->colorspace),MagickPathExtent); in WriteDEBUGImage() 207 LocaleLower(colorspace); in WriteDEBUGImage() 210 (void) ConcatenateMagickString(colorspace,"a",MagickPathExtent); in WriteDEBUGImage() 214 GetQuantumRange(image->depth)),colorspace); in WriteDEBUGImage() 230 if (pixel.colorspace == CMYKColorspace) in WriteDEBUGImage()
|
D | txt.c | 107 colorspace[MagickPathExtent]; in IsTXT() local 122 &rows,&depth,colorspace); in IsTXT() 379 colorspace[MagickPathExtent], in ReadTXTImage() local 442 *colorspace='\0'; in ReadTXTImage() 444 colorspace); in ReadTXTImage() 454 LocaleLower(colorspace); in ReadTXTImage() 455 i=(ssize_t) strlen(colorspace)-1; in ReadTXTImage() 457 if ((i > 0) && (colorspace[i] == 'a')) in ReadTXTImage() 459 colorspace[i]='\0'; in ReadTXTImage() 462 type=ParseCommandOption(MagickColorspaceOptions,MagickFalse,colorspace); in ReadTXTImage() [all …]
|
D | tile.c | 125 image->colorspace=tile_image->colorspace; in ReadTILEImage() 137 if (image->colorspace == GRAYColorspace) in ReadTILEImage()
|
/external/mesa3d/src/amd/vulkan/ |
D | vk_format.h | 137 enum vk_format_colorspace colorspace; member 333 return desc->colorspace == VK_FORMAT_COLORSPACE_ZS && in vk_format_has_depth() 340 return desc->colorspace == VK_FORMAT_COLORSPACE_ZS && in vk_format_has_stencil() 409 enum vk_format_colorspace colorspace, in vk_format_get_component_bits() argument 423 if (colorspace == VK_FORMAT_COLORSPACE_SRGB) { in vk_format_get_component_bits() 424 colorspace = VK_FORMAT_COLORSPACE_RGB; in vk_format_get_component_bits() 426 if (desc->colorspace == VK_FORMAT_COLORSPACE_SRGB) { in vk_format_get_component_bits() 429 desc_colorspace = desc->colorspace; in vk_format_get_component_bits() 432 if (desc_colorspace != colorspace) { in vk_format_get_component_bits()
|
D | vk_format_parse.py | 111 …layout, block_width, block_height, le_channels, le_swizzles, be_channels, be_swizzles, colorspace): argument 121 self.colorspace = colorspace 220 if self.layout != PLAIN or self.colorspace == ZS: 247 return self.colorspace == ZS and self.has_channel(0) 250 return self.colorspace == ZS and self.has_channel(1) 275 def _parse_channels(fields, layout, colorspace, swizzles): argument 278 if colorspace in (RGB, SRGB): 283 elif colorspace == ZS: 359 colorspace = fields[9] 362 le_channels = _parse_channels(fields[4:8], layout, colorspace, le_swizzles) [all …]
|
D | vk_format_table.py | 41 def colorspace_map(colorspace): argument 42 return 'VK_FORMAT_COLORSPACE_' + str(colorspace).upper() 122 comment = colorspace_channels_map[format.colorspace][i] 142 print " %s," % (colorspace_map(format.colorspace),)
|
/external/mesa3d/src/mesa/main/ |
D | format_parser.py | 230 …_init__(self, name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace): argument 258 assert colorspace in (RGB, SRGB, YUV, ZS) 259 self.colorspace = colorspace 263 if self.colorspace in (RGB, SRGB): 267 elif colorspace == ZS: 516 def _parse_channels(fields, layout, colorspace, swizzle): argument 561 colorspace = fields[10] 567 channels = _parse_channels(fields[5:9], layout, colorspace, swizzle) 569 … yield Format(name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace)
|
/external/ImageMagick/tests/ |
D | cli-colorspace.tap | 37 too_dark=`eval ${MAGICK} "$in" -colorspace RGB "$out"` 38 too_light=`eval ${MAGICK} "$in" -set colorspace RGB -colorspace sRGB "$out"`
|
/external/mesa3d/src/intel/isl/ |
D | gen_format_layout.py | 153 self.colorspace = line[12].strip().upper() 154 if self.colorspace in ['', 'ALPHA']: 155 self.colorspace = 'NONE'
|