Home
last modified time | relevance | path

Searched refs:colorspace (Results 1 – 25 of 691) sorted by relevance

12345678910>>...28

/external/ImageMagick/MagickCore/
Dcolorspace-private.h51 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 == LinearGRAYColorspace) || (colorspace == GRAYColorspace)) in IsGrayColorspace()
105 const ColorspaceType colorspace) in IsHueCompatibleColorspace() argument
107 if ((colorspace == HCLColorspace) || (colorspace == HCLpColorspace) || in IsHueCompatibleColorspace()
108 (colorspace == HSBColorspace) || (colorspace == HSIColorspace) || in IsHueCompatibleColorspace()
109 (colorspace == HSLColorspace) || (colorspace == HSVColorspace)) in IsHueCompatibleColorspace()
[all …]
Dcolor.c1144 if ((pixel->colorspace == CMYKColorspace) && in IsSVGCompliant()
1168 (IssRGBCompatibleColorspace(pixel->colorspace) != MagickFalse) && in ConcatenateColorComponent()
1176 if (IsHueCompatibleColorspace(pixel->colorspace) != MagickFalse) in ConcatenateColorComponent()
1178 if ((compliance != NoCompliance) && (pixel->colorspace == LabColorspace)) in ConcatenateColorComponent()
1185 if (IsHueCompatibleColorspace(pixel->colorspace) != MagickFalse) in ConcatenateColorComponent()
1187 if ((compliance != NoCompliance) && (pixel->colorspace == LabColorspace)) in ConcatenateColorComponent()
1194 if (IsHueCompatibleColorspace(pixel->colorspace) != MagickFalse) in ConcatenateColorComponent()
1196 if (pixel->colorspace == LabColorspace) in ConcatenateColorComponent()
1220 if ((scale != 100.0f) || (pixel->colorspace == LabColorspace)) in ConcatenateColorComponent()
1537 if (pixel->colorspace == CMYKColorspace) in GetColorTuple()
[all …]
Dcolorspace.c126 colorspace; in GetImageColorspaceType() local
135 colorspace=image->colorspace; in GetImageColorspaceType()
139 colorspace=GRAYColorspace; in GetImageColorspaceType()
140 return(colorspace); in GetImageColorspaceType()
454 const ColorspaceType colorspace,ExceptionInfo *exception) in sRGBTransformImage() argument
491 assert(colorspace != sRGBColorspace); in sRGBTransformImage()
492 assert(colorspace != TransparentColorspace); in sRGBTransformImage()
493 assert(colorspace != UndefinedColorspace); in sRGBTransformImage()
504 switch (colorspace) in sRGBTransformImage()
521 if (SetImageColorspace(image,colorspace,exception) == MagickFalse) in sRGBTransformImage()
[all …]
/external/mesa3d/prebuilt-intermediates/isl/
Disl_format_layout.c46 .colorspace = ISL_COLORSPACE_LINEAR,
66 .colorspace = ISL_COLORSPACE_LINEAR,
86 .colorspace = ISL_COLORSPACE_LINEAR,
106 .colorspace = ISL_COLORSPACE_LINEAR,
126 .colorspace = ISL_COLORSPACE_LINEAR,
146 .colorspace = ISL_COLORSPACE_LINEAR,
166 .colorspace = ISL_COLORSPACE_LINEAR,
186 .colorspace = ISL_COLORSPACE_LINEAR,
206 .colorspace = ISL_COLORSPACE_LINEAR,
226 .colorspace = ISL_COLORSPACE_LINEAR,
[all …]
/external/pdfium/third_party/libpng16/
Dpng.c1071 png_colorspacerp colorspace, png_fixed_point gAMA, int from)
1084 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 &&
1085 (png_muldiv(&gtest, colorspace->gamma, PNG_FP_1, gAMA) == 0 ||
1094 if ((colorspace->flags & PNG_COLORSPACE_FROM_sRGB) != 0 || from == 2)
1115 png_colorspacerp colorspace, png_fixed_point gAMA)
1136 (colorspace->flags & PNG_COLORSPACE_FROM_gAMA) != 0)
1141 else if ((colorspace->flags & PNG_COLORSPACE_INVALID) != 0)
1146 if (png_colorspace_check_gamma(png_ptr, colorspace, gAMA,
1150 colorspace->gamma = gAMA;
1151 colorspace->flags |=
[all …]
Dpngget.c523 (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 …]
/external/libpng/
Dpng.c1071 png_colorspacerp colorspace, png_fixed_point gAMA, int from)
1084 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 &&
1085 (png_muldiv(&gtest, colorspace->gamma, PNG_FP_1, gAMA) == 0 ||
1094 if ((colorspace->flags & PNG_COLORSPACE_FROM_sRGB) != 0 || from == 2)
1115 png_colorspacerp colorspace, png_fixed_point gAMA)
1136 (colorspace->flags & PNG_COLORSPACE_FROM_gAMA) != 0)
1141 else if ((colorspace->flags & PNG_COLORSPACE_INVALID) != 0)
1146 if (png_colorspace_check_gamma(png_ptr, colorspace, gAMA,
1150 colorspace->gamma = gAMA;
1151 colorspace->flags |=
[all …]
Dpngget.c523 (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 …]
/external/webp/src/dec/
Dio_dec.c49 WebPSamplers[output->colorspace]); in EmitSampledRGB()
61 WebPUpsampleLinePairFunc upsample = WebPUpsamplers[p->output->colorspace]; in EmitFancyRGB()
179 const WEBP_CSP_MODE colorspace = p->output->colorspace; in EmitAlphaRGB() local
181 (colorspace == MODE_ARGB || colorspace == MODE_Argb); in EmitAlphaRGB()
192 if (has_alpha && WebPIsPremultipliedMode(colorspace)) { in EmitAlphaRGB()
205 const WEBP_CSP_MODE colorspace = p->output->colorspace; in EmitAlphaRGBA4444() local
229 if (alpha_mask != 0x0f && WebPIsPremultipliedMode(colorspace)) { in EmitAlphaRGBA4444()
257 if (WebPIsAlphaMode(p->output->colorspace) && io->a != NULL) { in EmitRescaledYUV()
293 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitYUVRescaler()
352 WebPYUV444Converters[p->output->colorspace]; in ExportRGB()
[all …]
Dbuffer_dec.c43 const WEBP_CSP_MODE mode = buffer->colorspace; in CheckDecBuffer()
90 const WEBP_CSP_MODE mode = buffer->colorspace; in AllocateBuffer()
157 if (WebPIsRGBMode(buffer->colorspace)) { in WebPFlipBuffer()
274 assert(src_buf->colorspace == dst_buf->colorspace); in WebPCopyDecBufferPixels()
281 if (WebPIsRGBMode(src_buf->colorspace)) { in WebPCopyDecBufferPixels()
285 src_buf->width * kModeBpp[src_buf->colorspace], in WebPCopyDecBufferPixels()
296 if (WebPIsAlphaMode(src_buf->colorspace)) { in WebPCopyDecBufferPixels()
308 WebPIsPremultipliedMode(output->colorspace) && in WebPAvoidSlowMemory()
/external/virglrenderer/src/gallium/auxiliary/util/
Du_format_parse.py115 …layout, block_width, block_height, le_channels, le_swizzles, be_channels, be_swizzles, colorspace): argument
125 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:
348 colorspace = fields[9]
351 le_channels = _parse_channels(fields[4:8], layout, colorspace, le_swizzles)
[all …]
Du_format.c72 return (desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_has_alpha()
73 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_has_alpha()
84 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_is_luminance()
85 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_is_luminance()
101 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_is_alpha()
102 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_is_alpha()
179 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_is_luminance_alpha()
180 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_is_luminance_alpha()
197 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_is_intensity()
198 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_is_intensity()
[all …]
Du_format.h239 enum util_format_colorspace colorspace; member
338 return desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB; in util_format_is_srgb()
344 return desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && in util_format_has_depth()
351 return desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && in util_format_has_stencil()
391 if (desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && in util_get_depth_format_type()
450 switch (desc->colorspace) { in util_format_colormask()
668 enum util_format_colorspace colorspace, in util_format_get_component_bits() argument
682 if (colorspace == UTIL_FORMAT_COLORSPACE_SRGB) { in util_format_get_component_bits()
683 colorspace = UTIL_FORMAT_COLORSPACE_RGB; in util_format_get_component_bits()
685 if (desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) { in util_format_get_component_bits()
[all …]
Du_format_table.py43 def colorspace_map(colorspace): argument
44 return 'UTIL_FORMAT_COLORSPACE_' + str(colorspace).upper()
117 comment = colorspace_channels_map[format.colorspace][i]
147 print(" %s," % (colorspace_map(format.colorspace),))
/external/ImageMagick/coders/
Ddebug.c169 colorspace[MagickPathExtent], in WriteDEBUGImage() local
209 (void) CopyMagickString(colorspace,CommandOptionToMnemonic( in WriteDEBUGImage()
210 MagickColorspaceOptions,(ssize_t) image->colorspace),MagickPathExtent); in WriteDEBUGImage()
211 LocaleLower(colorspace); in WriteDEBUGImage()
214 (void) ConcatenateMagickString(colorspace,"a",MagickPathExtent); in WriteDEBUGImage()
218 GetQuantumRange(image->depth)),colorspace); in WriteDEBUGImage()
234 if (pixel.colorspace == CMYKColorspace) in WriteDEBUGImage()
Dtxt.c106 colorspace[MagickPathExtent]; in IsTXT() local
122 &rows,&depth,colorspace); in IsTXT()
386 colorspace[MagickPathExtent], in ReadTXTImage() local
452 *colorspace='\0'; in ReadTXTImage()
454 colorspace); in ReadTXTImage()
468 LocaleLower(colorspace); in ReadTXTImage()
469 i=(ssize_t) strlen(colorspace)-1; in ReadTXTImage()
471 if ((i > 0) && (colorspace[i] == 'a')) in ReadTXTImage()
473 colorspace[i]='\0'; in ReadTXTImage()
476 type=ParseCommandOption(MagickColorspaceOptions,MagickFalse,colorspace); in ReadTXTImage()
[all …]
Dtile.c127 image->colorspace=tile_image->colorspace; in ReadTILEImage()
138 if ((image->colorspace == LinearGRAYColorspace) || in ReadTILEImage()
139 (image->colorspace == GRAYColorspace)) in ReadTILEImage()
/external/mesa3d/src/freedreno/vulkan/
Dvk_format_parse.py115 …layout, block_width, block_height, le_channels, le_swizzles, be_channels, be_swizzles, colorspace): argument
125 self.colorspace = colorspace
224 if self.layout != PLAIN or self.colorspace == ZS:
251 return self.colorspace == ZS and self.has_channel(0)
254 return self.colorspace == ZS and self.has_channel(1)
279 def _parse_channels(fields, layout, colorspace, swizzles): argument
282 if colorspace in (RGB, SRGB):
287 elif colorspace == ZS:
363 colorspace = fields[9]
366 le_channels = _parse_channels(fields[4:8], layout, colorspace, le_swizzles)
[all …]
/external/mesa3d/src/util/format/
Du_format_parse.py115 …_width, block_height, block_depth, le_channels, le_swizzles, be_channels, be_swizzles, colorspace): argument
126 self.colorspace = colorspace
241 if self.layout != PLAIN or self.colorspace == ZS:
268 return self.colorspace == ZS and self.has_channel(0)
271 return self.colorspace == ZS and self.has_channel(1)
296 def _parse_channels(fields, layout, colorspace, swizzles): argument
299 if colorspace in (RGB, SRGB):
304 elif colorspace == ZS:
369 colorspace = fields[10]
372 le_channels = _parse_channels(fields[5:9], layout, colorspace, le_swizzles)
[all …]
Du_format_table.py43 def colorspace_map(colorspace): argument
44 return 'UTIL_FORMAT_COLORSPACE_' + str(colorspace).upper()
161 comment = colorspace_channels_map[format.colorspace][i]
208 print(" %s," % (colorspace_map(format.colorspace),))
225 if format.colorspace != ZS and not format.is_pure_color():
256 if format.colorspace != ZS and not format.is_pure_color():
283 if format.colorspace != ZS and has_access(format):
/external/mesa3d/src/amd/vulkan/
Dvk_format.h140 enum vk_format_colorspace colorspace; member
354 return desc->colorspace == VK_FORMAT_COLORSPACE_ZS && in vk_format_has_depth()
361 return desc->colorspace == VK_FORMAT_COLORSPACE_ZS && in vk_format_has_stencil()
439 return desc->colorspace == VK_FORMAT_COLORSPACE_SRGB; in vk_format_is_srgb()
490 enum vk_format_colorspace colorspace, in vk_format_get_component_bits() argument
504 if (colorspace == VK_FORMAT_COLORSPACE_SRGB) { in vk_format_get_component_bits()
505 colorspace = VK_FORMAT_COLORSPACE_RGB; in vk_format_get_component_bits()
507 if (desc->colorspace == VK_FORMAT_COLORSPACE_SRGB) { in vk_format_get_component_bits()
510 desc_colorspace = desc->colorspace; in vk_format_get_component_bits()
513 if (desc_colorspace != colorspace) { in vk_format_get_component_bits()
Dvk_format_parse.py116 …dth, block_height, le_channels, le_swizzles, be_channels, be_swizzles, colorspace, width_divisor, … argument
126 self.colorspace = colorspace
232 if self.layout != PLAIN or self.colorspace == ZS:
259 return self.colorspace == ZS and self.has_channel(0)
262 return self.colorspace == ZS and self.has_channel(1)
287 def _parse_channels(fields, layout, colorspace, swizzles): argument
290 if colorspace in (RGB, SRGB):
295 elif colorspace == ZS:
380 colorspace = fields[9]
383 le_channels = _parse_channels(fields[4:8], layout, colorspace, le_swizzles)
[all …]
Dvk_format_table.py41 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/
Dformat_parser.py235 …_init__(self, name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace): argument
263 assert colorspace in (RGB, SRGB, YUV, ZS)
264 self.colorspace = colorspace
268 if self.colorspace in (RGB, SRGB):
272 elif colorspace == ZS:
521 def _parse_channels(fields, layout, colorspace, swizzle): argument
566 colorspace = fields[10]
572 channels = _parse_channels(fields[5:9], layout, colorspace, swizzle)
574 … yield Format(name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace)
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/video/
DVideoDecoderOutputBuffer.java52 public int colorspace; field in VideoDecoderOutputBuffer
110 public boolean initForYuvFrame(int width, int height, int yStride, int uvStride, int colorspace) { in initForYuvFrame() argument
113 this.colorspace = colorspace; in initForYuvFrame()

12345678910>>...28