Home
last modified time | relevance | path

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

12345678910

/third_party/ffmpeg/libavformat/
H A Dyuv4mpegenc.c34 const char *colorspace = ""; in yuv4_write_header() local
74 colorspace = " Cmono"; in yuv4_write_header()
77 colorspace = " Cmono9"; in yuv4_write_header()
80 colorspace = " Cmono10"; in yuv4_write_header()
83 colorspace = " Cmono12"; in yuv4_write_header()
86 colorspace = " Cmono16"; in yuv4_write_header()
89 colorspace = " C411 XYSCSS=411"; in yuv4_write_header()
92 colorspace = " C420jpeg XYSCSS=420JPEG"; in yuv4_write_header()
96 colorspace = " C422 XYSCSS=422"; in yuv4_write_header()
100 colorspace in yuv4_write_header()
[all...]
/third_party/skia/third_party/externals/libpng/
H A Dpng.c1071 png_colorspacerp colorspace, png_fixed_point gAMA, int from) in png_colorspace_check_gamma()
1084 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 && in png_colorspace_check_gamma()
1085 (png_muldiv(&gtest, colorspace->gamma, PNG_FP_1, gAMA) == 0 || in png_colorspace_check_gamma()
1094 if ((colorspace->flags & PNG_COLORSPACE_FROM_sRGB) != 0 || from == 2) in png_colorspace_check_gamma()
1115 png_colorspacerp colorspace, png_fixed_point gAMA) in png_colorspace_set_gamma()
1136 (colorspace->flags & PNG_COLORSPACE_FROM_gAMA) != 0) in png_colorspace_set_gamma()
1140 /* Do nothing if the colorspace is already invalid */ in png_colorspace_set_gamma()
1141 else if ((colorspace->flags & PNG_COLORSPACE_INVALID) != 0) in png_colorspace_set_gamma()
1146 if (png_colorspace_check_gamma(png_ptr, colorspace, gAMA, in png_colorspace_set_gamma()
1150 colorspace in png_colorspace_set_gamma()
1070 png_colorspace_check_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA, int from) png_colorspace_check_gamma() argument
1114 png_colorspace_set_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA) png_colorspace_set_gamma() argument
1672 png_colorspace_set_xy_and_XYZ(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, const png_XYZ *XYZ, int preferred) png_colorspace_set_xy_and_XYZ() argument
1720 png_colorspace_set_chromaticities(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, int preferred) png_colorspace_set_chromaticities() argument
1757 png_colorspace_set_endpoints(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_XYZ *XYZ_in, int preferred) png_colorspace_set_endpoints() argument
1823 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) png_icc_profile_error() argument
1872 png_colorspace_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, int intent) png_colorspace_set_sRGB() argument
1970 icc_check_length(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length) icc_check_length() argument
1981 png_icc_check_length(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length) png_icc_check_length() argument
2014 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) png_icc_check_header() argument
2197 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 ) png_icc_check_tag_table() argument
2428 png_icc_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_bytep profile, uLong adler) png_icc_set_sRGB() argument
2442 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) png_colorspace_set_ICC() argument
[all...]
H A 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 in png_get_cHRM_XYZ()
[all...]
/third_party/skia/third_party/externals/libwebp/examples/
H A Ddwebp.c142 const int has_alpha = WebPIsAlphaMode(output_buffer->colorspace); in AllocateExternalBuffer()
325 output_buffer->colorspace = bitstream->has_alpha ? MODE_BGRA : MODE_BGR; in main()
327 output_buffer->colorspace = bitstream->has_alpha ? MODE_RGBA : MODE_RGB; in main()
331 output_buffer->colorspace = MODE_RGBA; in main()
334 output_buffer->colorspace = MODE_RGB; // drops alpha for PPM in main()
337 output_buffer->colorspace = bitstream->has_alpha ? MODE_BGRA : MODE_BGR; in main()
340 output_buffer->colorspace = bitstream->has_alpha ? MODE_RGBA : MODE_RGB; in main()
344 output_buffer->colorspace = bitstream->has_alpha ? MODE_YUVA : MODE_YUV; in main()
347 output_buffer->colorspace = MODE_YUVA; in main()
350 case RGB: output_buffer->colorspace in main()
[all...]
/third_party/skia/third_party/externals/libwebp/src/dec/
H A 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()
413 const WEBP_CSP_MODE colorspace = p->output->colorspace; ExportAlpha() local
447 const WEBP_CSP_MODE colorspace = p->output->colorspace; ExportAlphaRGBA4444() local
565 const WEBP_CSP_MODE colorspace = p->output->colorspace; CustomSetup() local
[all...]
H A Dbuffer_dec.c43 const WEBP_CSP_MODE mode = buffer->colorspace; in CheckDecBuffer()
90 const WEBP_CSP_MODE mode = buffer->colorspace; in AllocateBuffer()
156 if (WebPIsRGBMode(buffer->colorspace)) { in WebPFlipBuffer()
272 assert(src_buf->colorspace == dst_buf->colorspace); in WebPCopyDecBufferPixels()
279 if (WebPIsRGBMode(src_buf->colorspace)) { in WebPCopyDecBufferPixels()
283 src_buf->width * kModeBpp[src_buf->colorspace], in WebPCopyDecBufferPixels()
294 if (WebPIsAlphaMode(src_buf->colorspace)) { in WebPCopyDecBufferPixels()
306 WebPIsPremultipliedMode(output->colorspace) && in WebPAvoidSlowMemory()
/third_party/mesa3d/src/util/format/
H A Du_format_table.py41 def colorspace_map(colorspace):
42 return 'UTIL_FORMAT_COLORSPACE_' + str(colorspace).upper()
169 comment = colorspace_channels_map[format.colorspace][i]
215 print(" %s," % (colorspace_map(format.colorspace),))
232 if format.colorspace != ZS and not format.is_pure_color():
262 if format.colorspace != ZS and not format.is_pure_color():
296 if format.colorspace != ZS and has_access(format):
H A Du_format_parse.py117 def __init__(self, name, layout, block_width, block_height, block_depth, le_channels, le_swizzles, be_channels, be_swizzles, colorspace):
123 self.colorspace = colorspace
297 if self.layout != PLAIN or self.colorspace == ZS:
324 return self.colorspace == ZS and self.has_channel(0)
327 return self.colorspace == ZS and self.has_channel(1)
353 def _parse_channels(fields, layout, colorspace, swizzles):
356 if colorspace in (RGB, SRGB):
361 elif colorspace == ZS:
425 colorspace
[all...]
H A Du_format.c119 return (desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_has_alpha()
120 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_has_alpha()
131 return (desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_has_alpha1()
132 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_has_alpha1()
143 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_is_luminance()
144 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_is_luminance()
160 if ((desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in util_format_is_alpha()
161 desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) && in util_format_is_alpha()
177 if (desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { in util_format_is_pure_integer()
289 if ((desc->colorspace in util_format_is_luminance_alpha()
[all...]
H A Du_format.h237 * depending on the colorspace.
244 enum util_format_colorspace colorspace; member
543 return desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB; in util_format_is_srgb()
549 return desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && in util_format_has_depth()
556 return desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && in util_format_has_stencil()
619 return desc->colorspace == UTIL_FORMAT_COLORSPACE_YUV; in util_format_is_yuv()
629 if (desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS && in util_get_depth_format_type()
688 switch (desc->colorspace) { in util_format_colormask()
943 enum util_format_colorspace colorspace, in util_format_get_component_bits()
957 if (colorspace in util_format_get_component_bits()
942 util_format_get_component_bits(enum pipe_format format, enum util_format_colorspace colorspace, uint component) util_format_get_component_bits() argument
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvaapi_vpp.c242 enum AVColorSpace colorspace; member
296 worst_score = 4 * (props->colorspace != AVCOL_SPC_UNSPECIFIED && in vaapi_vpp_fill_colour_standard()
297 props->colorspace != AVCOL_SPC_RGB) + in vaapi_vpp_fill_colour_standard()
315 if (props->colorspace != AVCOL_SPC_UNSPECIFIED && in vaapi_vpp_fill_colour_standard()
316 props->colorspace != AVCOL_SPC_RGB) in vaapi_vpp_fill_colour_standard()
317 score += 4 * (props->colorspace != t->colorspace); in vaapi_vpp_fill_colour_standard()
400 av_color_space_name(props->colorspace), in vaapi_vpp_fill_colour_properties()
440 .colorspace = vaapi_vpp_frame_is_rgb(input_frame) in vaapi_vpp_colour_properties()
441 ? AVCOL_SPC_RGB : input_frame->colorspace, in vaapi_vpp_colour_properties()
[all...]
H A Dvf_scale.c380 static const int *parse_yuv_type(const char *s, enum AVColorSpace colorspace) in parse_yuv_type() argument
386 colorspace = AVCOL_SPC_BT709; in parse_yuv_type()
388 colorspace = AVCOL_SPC_FCC; in parse_yuv_type()
390 colorspace = AVCOL_SPC_SMPTE240M; in parse_yuv_type()
392 colorspace = AVCOL_SPC_BT470BG; in parse_yuv_type()
394 colorspace = AVCOL_SPC_BT2020_NCL; in parse_yuv_type()
397 if (colorspace < 1 || colorspace > 10 || colorspace == 8) { in parse_yuv_type()
398 colorspace in parse_yuv_type()
[all...]
/third_party/cups-filters/cupsfilters/
H A Dimage-pix.c40 cups_icspace_t primary, /* I - Primary choice for colorspace */ in _cupsImageReadPIX()
41 cups_icspace_t secondary, /* I - Secondary choice for colorspace */ in _cupsImageReadPIX()
84 img->colorspace = secondary; in _cupsImageReadPIX()
86 img->colorspace = (primary == CUPS_IMAGE_RGB_CMYK) ? CUPS_IMAGE_RGB : primary; in _cupsImageReadPIX()
118 if (img->colorspace == CUPS_IMAGE_WHITE) in _cupsImageReadPIX()
134 if (img->colorspace != CUPS_IMAGE_WHITE) in _cupsImageReadPIX()
135 switch (img->colorspace) in _cupsImageReadPIX()
181 switch (img->colorspace) in _cupsImageReadPIX()
H A Dimage-jpeg.c36 cups_icspace_t primary, /* I - Primary choice for colorspace */ in _cupsImageReadJPEG()
37 cups_icspace_t secondary, /* I - Secondary choice for colorspace */ in _cupsImageReadJPEG()
98 img->colorspace = secondary; in _cupsImageReadJPEG()
108 img->colorspace = (primary == CUPS_IMAGE_RGB_CMYK) ? CUPS_IMAGE_CMYK : primary; in _cupsImageReadJPEG()
118 img->colorspace = (primary == CUPS_IMAGE_RGB_CMYK) ? CUPS_IMAGE_RGB : primary; in _cupsImageReadJPEG()
204 if ((img->colorspace == CUPS_IMAGE_WHITE && cinfo.out_color_space == JCS_GRAYSCALE) || in _cupsImageReadJPEG()
205 (img->colorspace == CUPS_IMAGE_CMYK && cinfo.out_color_space == JCS_CMYK)) in _cupsImageReadJPEG()
233 switch (img->colorspace) in _cupsImageReadJPEG()
259 switch (img->colorspace) in _cupsImageReadJPEG()
290 switch (img->colorspace) in _cupsImageReadJPEG()
[all...]
H A Draster.c802 colorspace, /* CUPS/PWG raster color space */ in cupsRasterParseIPPOptions() local
813 colorspace = 20; in cupsRasterParseIPPOptions()
820 colorspace = 20; in cupsRasterParseIPPOptions()
825 colorspace = 18; in cupsRasterParseIPPOptions()
832 colorspace = 3; in cupsRasterParseIPPOptions()
840 colorspace = 3; in cupsRasterParseIPPOptions()
845 colorspace = 18; in cupsRasterParseIPPOptions()
852 colorspace = 18; in cupsRasterParseIPPOptions()
859 colorspace = 18; in cupsRasterParseIPPOptions()
864 colorspace in cupsRasterParseIPPOptions()
[all...]
H A Dimage-pnm.c32 cups_icspace_t primary, /* I - Primary choice for colorspace */ in _cupsImageReadPNM()
33 cups_icspace_t secondary, /* I - Secondary choice for colorspace */ in _cupsImageReadPNM()
144 img->colorspace = secondary; in _cupsImageReadPNM()
146 img->colorspace = (primary == CUPS_IMAGE_RGB_CMYK) ? CUPS_IMAGE_RGB : primary; in _cupsImageReadPNM()
238 if (img->colorspace == CUPS_IMAGE_WHITE) in _cupsImageReadPNM()
247 switch (img->colorspace) in _cupsImageReadPNM()
277 switch (img->colorspace) in _cupsImageReadPNM()
H A Dimage-sgi.c33 cups_icspace_t primary, /* I - Primary choice for colorspace */ in _cupsImageReadSGI()
34 cups_icspace_t secondary, /* I - Secondary choice for colorspace */ in _cupsImageReadSGI()
79 img->colorspace = secondary; in _cupsImageReadSGI()
81 img->colorspace = (primary == CUPS_IMAGE_RGB_CMYK) ? CUPS_IMAGE_RGB : primary; in _cupsImageReadSGI()
209 if (img->colorspace == CUPS_IMAGE_WHITE) in _cupsImageReadSGI()
218 switch (img->colorspace) in _cupsImageReadSGI()
249 switch (img->colorspace) in _cupsImageReadSGI()
H A Dimage.c16 * cupsImageGetColorSpace() - Get the image colorspace.
178 * 'cupsImageGetColorSpace()' - Get the image colorspace.
185 return (img->colorspace); in cupsImageGetColorSpace()
196 return (abs(img->colorspace)); in cupsImageGetDepth()
242 bpp = img->colorspace < 0 ? -img->colorspace : img->colorspace; in cupsImageGetRow()
304 cups_icspace_t primary, /* I - Primary colorspace needed */ in cupsImageOpen()
305 cups_icspace_t secondary, /* I - Secondary colorspace if primary no good */ in cupsImageOpen()
526 bpp = img->colorspace < in _cupsImagePutRow()
[all...]
H A Dimage-tiff.c37 cups_icspace_t primary, /* I - Primary choice for colorspace */ in _cupsImageReadTIFF()
38 cups_icspace_t secondary, /* I - Secondary choice for colorspace */ in _cupsImageReadTIFF()
216 * Setup the image size and colorspace... in _cupsImageReadTIFF()
223 img->colorspace = secondary; in _cupsImageReadTIFF()
225 img->colorspace = CUPS_IMAGE_CMYK; in _cupsImageReadTIFF()
227 img->colorspace = CUPS_IMAGE_RGB; in _cupsImageReadTIFF()
229 img->colorspace = primary; in _cupsImageReadTIFF()
231 fprintf(stderr, "DEBUG: img->colorspace = %d\n", img->colorspace); in _cupsImageReadTIFF()
475 if (img->colorspace in _cupsImageReadTIFF()
[all...]
/third_party/ffmpeg/libavcodec/
H A Ddirac.c122 enum AVColorSpace colorspace; member
290 dsh->colorspace = dirac_color_presets[idx].colorspace; in parse_source_parameters()
304 dsh->colorspace = AVCOL_SPC_BT709; in parse_source_parameters()
306 dsh->colorspace = AVCOL_SPC_BT470BG; in parse_source_parameters()
315 dsh->colorspace = dirac_color_presets[idx].colorspace; in parse_source_parameters()
/third_party/ffmpeg/tests/fate/
H A Dlibswscale.mak20 FATE_LIBSWSCALE-$(CONFIG_RAWVIDEO_DEMUXER) += fate-sws-yuv-colorspace
21 fate-sws-yuv-colorspace: tests/data/vsynth1.yuv
22 fate-sws-yuv-colorspace: ffmpeg$(PROGSSUF)$(EXESUF)
23 fate-sws-yuv-colorspace: CMD = framecrc \
/third_party/skia/modules/svg/src/
H A DSkSVGFeComposite.cpp50 const SkSVGColorspace colorspace = this->resolveColorspace(ctx, fctx); in onMakeImageFilter() local
51 const sk_sp<SkImageFilter> background = fctx.resolveInput(ctx, fIn2, colorspace); in onMakeImageFilter()
52 const sk_sp<SkImageFilter> foreground = fctx.resolveInput(ctx, this->getIn(), colorspace); in onMakeImageFilter()
H A DSkSVGFeBlend.cpp42 const SkSVGColorspace colorspace = this->resolveColorspace(ctx, fctx); in onMakeImageFilter() local
43 const sk_sp<SkImageFilter> background = fctx.resolveInput(ctx, fIn2, colorspace); in onMakeImageFilter()
44 const sk_sp<SkImageFilter> foreground = fctx.resolveInput(ctx, this->getIn(), colorspace); in onMakeImageFilter()
/third_party/mesa3d/src/intel/isl/
H A Dgen_format_layout.py91 .colorspace = ISL_COLORSPACE_${format.colorspace},
210 # alpha doesn't have a colorspace of it's own.
211 self.colorspace = line[13].strip().upper()
212 if self.colorspace in ['']:
213 self.colorspace = 'NONE'
249 if fmt.colorspace != 'SRGB':
/third_party/mesa3d/src/mesa/main/
H A Dformat_parser.py235 def __init__(self, name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace):
252 colorspace -- one of 'rgb', 'srgb', 'yuv', or 'zs'
263 assert colorspace in (RGB, SRGB, YUV, ZS)
264 self.colorspace = colorspace
268 if self.colorspace in (RGB, SRGB):
272 elif colorspace == ZS:
566 colorspace = fields[10]
575 yield Format(name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace)

Completed in 18 milliseconds

12345678910