/cts/tests/tests/graphics/src/android/graphics/cts/ |
ColorSpaceTest.java | 26 import android.graphics.ColorSpace; 74 for (ColorSpace.Named named : ColorSpace.Named.values()) { 75 ColorSpace colorSpace = ColorSpace.get(named); 76 assertNotNull(colorSpace.getName()); 77 assertNotNull(colorSpace); 78 assertEquals(named.ordinal(), colorSpace.getId()); 79 assertTrue(colorSpace.getComponentCount() >= 1) [all...] |
BitmapColorSpaceTest.java | 30 import android.graphics.ColorSpace; 65 ColorSpace cs; 66 ColorSpace sRGB = ColorSpace.get(ColorSpace.Named.SRGB); 76 ColorSpace.get(ColorSpace.Named.ADOBE_RGB)); 79 assertSame(ColorSpace.get(ColorSpace.Named.ADOBE_RGB), cs); 84 assertSame(ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB), cs) [all...] |
Color_ColorLongTest.java | 19 import android.graphics.ColorSpace; 20 import android.graphics.ColorSpace.Named; 28 import static android.graphics.Color.colorSpace; 48 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); 56 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); 64 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); 72 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3) [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/ |
ImageFormat.java | 29 public static final String COLORSPACE_KEY = "colorspace"; 38 int colorspace, 44 result.setMetaValue(COLORSPACE_KEY, colorspace); 53 int colorspace, 57 colorspace, 58 bytesPerSampleForColorspace(colorspace), 62 public static MutableFrameFormat create(int colorspace, int target) { 65 colorspace, 66 bytesPerSampleForColorspace(colorspace), 70 public static MutableFrameFormat create(int colorspace) { [all...] |
/frameworks/base/core/tests/coretests/src/android/graphics/ |
ColorSpaceRendererTest.java | 34 Bitmap b = ColorSpace.createRenderer() 40 b = ColorSpace.createRenderer() 49 Bitmap b = ColorSpace.createRenderer() 53 .add(ColorSpace.get(ColorSpace.Named.SRGB), 0xffffffff) 54 .add(ColorSpace.get(ColorSpace.Named.DCI_P3), 0xffffffff) 55 .add(ColorSpace.get(ColorSpace.Named.PRO_PHOTO_RGB), 0.1f, 0.5f, 0.1f, 0xff000000) 56 .add(ColorSpace.get(ColorSpace.Named.ADOBE_RGB), 0.1f, 0.5f, 0.1f, 0xff000000 [all...] |
/external/ImageMagick/MagickCore/ |
colorspace-private.h | 16 MagickCore image colorspace private methods. 51 if (pixel->colorspace != sRGBColorspace) 81 pixel->colorspace=CMYKColorspace; 89 const ColorspaceType colorspace) 91 if (colorspace == CMYKColorspace) 97 const ColorspaceType colorspace) 99 if (colorspace == GRAYColorspace) 104 static inline MagickBooleanType IsRGBColorspace(const ColorspaceType colorspace) 106 if ((colorspace == RGBColorspace) || (colorspace == scRGBColorspace) [all...] |
colorspace.h | 16 MagickCore image colorspace methods. 28 CMYColorspace, /* negated linear RGB colorspace */ 48 RGBColorspace, /* Linear RGB colorspace */ 50 sRGBColorspace, /* Default: non-linear sRGB colorspace */ 53 XYZColorspace, /* IEEE Color Reference colorspace */
|
/external/strace/mpers-m32/ |
struct_v4l2_framebuffer.h | 15 uint32_t colorspace; member in struct:__anon31709::__anon31710
|
struct_v4l2_create_buffers.h | 18 uint32_t colorspace; member in struct:__anon31687::__anon31688::__anon31689::__anon31690 26 uint32_t colorspace; member in struct:__anon31687::__anon31688::__anon31689::__anon31691
|
struct_v4l2_format.h | 14 uint32_t colorspace; member in struct:__anon31700::__anon31701::__anon31702 22 uint32_t colorspace; member in struct:__anon31700::__anon31701::__anon31703
|
/external/strace/mpers-mx32/ |
struct_v4l2_framebuffer.h | 15 uint32_t colorspace; member in struct:__anon31868::__anon31869
|
/external/skia/src/core/ |
SkImageInfoPriv.h | 37 (!info.colorSpace() || !info.colorSpace()->gammaIsLinear())) { 46 * colorSpace. Allows numerical color spaces. Returns false otherwise. 54 if (info.colorSpace() && !info.colorSpace()->isNumericalTransferFn(&fn)) { 63 * colorSpace. Only supports rendering color spaces. Returns false otherwise. 70 if (info.colorSpace() && 71 (!info.colorSpace()->gammaCloseToSRGB() && !info.colorSpace()->gammaIsLinear())) { 80 * colorSpace. Uses |colorMode| to decide how to treat color spaces [all...] |
SkPictureImageGenerator.cpp | 21 sk_sp<SkColorSpace> colorSpace) { 26 if (SkImage::BitDepth::kF16 == bitDepth && (!colorSpace || !colorSpace->gammaIsLinear())) { 30 if (colorSpace && (!colorSpace->gammaCloseToSRGB() && !colorSpace->gammaIsLinear())) { 40 kPremul_SkAlphaType, std::move(colorSpace)); 64 SkTransferFunctionBehavior::kIgnore == opts.fBehavior && info.colorSpace(); 89 SkImage::BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) { 92 if (!colorSpace) { [all...] |
/frameworks/native/libs/ui/tools/ |
lutgen.cpp | 25 #include <ui/ColorSpace.h> 31 ColorSpace gColorSpaceSrc = ColorSpace::DisplayP3(); 32 ColorSpace gColorSpaceDst = ColorSpace::extendedSRGB(); 48 cout << " --source=COLORSPACE, -s" << endl; 50 cout << " --target=COLORSPACE, -t" << endl; 53 cout << "Colorspace names:" << endl; 69 static const ColorSpace findColorSpace(const string& name) { 70 if (name == "linearSRGB") return ColorSpace::linearSRGB() [all...] |
/frameworks/native/libs/ui/ |
ColorSpace.cpp | 17 #include <ui/ColorSpace.h> 27 static constexpr float rcpResponse(float x, const ColorSpace::TransferParameters& p) { 31 static constexpr float response(float x, const ColorSpace::TransferParameters& p) { 35 static constexpr float rcpFullResponse(float x, const ColorSpace::TransferParameters& p) { 39 static constexpr float fullResponse(float x, const ColorSpace::TransferParameters& p) { 57 static ColorSpace::transfer_function toOETF(const ColorSpace::TransferParameters& parameters) { 64 static ColorSpace::transfer_function toEOTF( const ColorSpace::TransferParameters& parameters) { 71 static ColorSpace::transfer_function toOETF(float gamma) [all...] |
/frameworks/native/libs/ui/include/ui/ |
ColorSpace.h | 33 class ColorSpace { 57 ColorSpace( 74 ColorSpace( 89 ColorSpace( 105 ColorSpace( 123 ColorSpace( 139 ColorSpace( 147 ColorSpace() noexcept = delete; 233 static const ColorSpace sRGB(); 234 static const ColorSpace linearSRGB() [all...] |
/external/skia/src/image/ |
SkSurface_Gpu.cpp | 164 return info.colorSpace() && info.colorSpace()->gammaIsLinear(); 167 return !info.colorSpace() || info.colorSpace()->gammaCloseToSRGB(); 169 return !info.colorSpace(); 173 bool SkSurface_Gpu::Valid(GrContext* context, GrPixelConfig config, SkColorSpace* colorSpace) { 176 return colorSpace && colorSpace->gammaIsLinear(); 179 return context->caps()->srgbSupport() && colorSpace && colorSpace->gammaCloseToSRGB() [all...] |
/frameworks/native/libs/ui/tests/ |
colorspace_test.cpp | 22 #include <ui/ColorSpace.h> 41 ColorSpace sRGB("sRGB", sRGBToXYZ); 54 ColorSpace sRGB("sRGB", sRGBToXYZ); 73 ColorSpace sRGB("sRGB", sRGBToXYZ); 86 ColorSpace sRGB1("sRGB", sRGBToXYZ); 87 ColorSpace sRGB2( 107 ColorSpace sRGB = ColorSpace::sRGB(); 128 ColorSpace sRGB2( 142 float3 c(ColorSpace::BT2020().rgbToXYZ(float3{0, 1, 0})) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Color.java | 52 * <p>A color int always defines a color in the {@link ColorSpace.Named#SRGB sRGB} 118 * {@link ColorSpace color spaces}, with more precision than color ints.</p> 122 * three components depend on the color space's {@link ColorSpace.Model color model}. 123 * The most common color model is the {@link ColorSpace.Model#RGB RGB} model in 129 * the RGB components of a color in the {@link ColorSpace.Named#DISPLAY_P3 Display P3} 131 * various {@link ColorSpace.Named color spaces} to find their respective ranges.</p> 138 * use, color longs encoding {@link ColorSpace.Named#SRGB sRGB} colors do not 145 * <tr><td colspan="4">{@link ColorSpace.Model#RGB RGB} color model</td></tr> 151 * <tr><td colspan="4">{@link ColorSpace.Named#SRGB sRGB} color space</td></tr> 157 * <tr><td colspan="4">{@link ColorSpace.Model#XYZ XYZ} color model</td></tr [all...] |
/external/skia/gm/ |
encode-srgb.cpp | 28 sk_sp<SkColorSpace> fix_for_colortype(sk_sp<SkColorSpace> colorSpace, SkColorType colorType) { 30 if (!colorSpace) { 34 return as_CSB(colorSpace)->makeLinearGamma(); 37 return colorSpace; 41 sk_sp<SkColorSpace> colorSpace) { 62 .makeColorSpace(fix_for_colortype(colorSpace, colorType)); 76 SkTransferFunctionBehavior behavior = bitmap.colorSpace() 141 for (sk_sp<SkColorSpace> colorSpace : colorSpaces) { 142 make(&bitmap, colorType, alphaType, colorSpace);
|
/external/opencv/otherlibs/highgui/ |
grfmt_imageio.cpp | 115 CGColorSpaceRef colorSpace = CGImageGetColorSpace( imageRef ); 116 if( !colorSpace ) 119 m_iscolor = ( CGColorSpaceGetNumberOfComponents( colorSpace ) > 1 ); 137 CGColorSpaceRef colorSpace = NULL; 142 // appropriate colorspace is set 145 colorSpace = CGColorSpaceCreateDeviceGray(); 151 colorSpace = CGColorSpaceCreateDeviceRGB(); 155 if( !colorSpace ) 161 CGColorSpaceRelease( colorSpace ); 170 colorSpace, /* color space * [all...] |
/external/ImageMagick/ImageMagick/script/ |
color-management.html | 58 <p>The first major change was to swap -colorspace RGB and -colorspace sRGB. In earlier versions, RGB really meant non-linear sRGB. With the completion of the changes, RGB now means linear color and sRGB means non-linear color in terms of their respective colorspaces.</p> 60 <p>ImageMagick supports color profiles, however, for images without a profile or a declaration of colorspace, ImageMagick assumes non-linear sRGB. Most image processing algorithms assume a linear colorspace, therefore it might be prudent to convert to linear color or remove the gamma function before certain image processing algorithms are applied. For example,</p> 63 convert myimage.jpg -colorspace RGB -resize 200% -colorspace sRGB mybigimage.jpg 69 convert myimage.png -set colorspace RGB myRGBimage.png 72 <p>Afterwards, the verbose information for the output file lists the colorspace as RGB. This only works on image types containing meta data that distinguishes between linear RGB and non-linear sRGB, such as PNG and GIF. Therefore, if the above command is run with a JPG or TIF output format, the verbose information for the colorspace still shows sRGB. In order to properly have the JPG output know that it is linear RGB, include an appropriate color profile.</p> 75 <p>The second major change treats any grayscale image as linear rather than non-linear, as it was previously. This change is appropriate, since many types of processing requires a linear colorspace. This means that the conversion of a color image to grayscale via <code>-colorspace gray</code> lo (…) [all...] |
/external/ImageMagick/www/ |
color-management.html | 62 <p>The first major change was to swap -colorspace RGB and -colorspace sRGB. In earlier versions, RGB really meant non-linear sRGB. With the completion of the changes, RGB now means linear color and sRGB means non-linear color in terms of their respective colorspaces.</p> 64 <p>ImageMagick supports color profiles, however, for images without a profile or a declaration of colorspace, ImageMagick assumes non-linear sRGB. Most image processing algorithms assume a linear colorspace, therefore it might be prudent to convert to linear color or remove the gamma function before certain image processing algorithms are applied. For example,</p> 67 convert myimage.jpg -colorspace RGB -resize 200% -colorspace sRGB mybigimage.jpg 73 convert myimage.png -set colorspace RGB myRGBimage.png 76 <p>Afterwards, the verbose information for the output file lists the colorspace as RGB. This only works on image types containing meta data that distinguishes between linear RGB and non-linear sRGB, such as PNG and GIF. Therefore, if the above command is run with a JPG or TIF output format, the verbose information for the colorspace still shows sRGB. In order to properly have the JPG output know that it is linear RGB, include an appropriate color profile.</p> 79 <p>The second major change treats any grayscale image as linear rather than non-linear, as it was previously. This change is appropriate, since many types of processing requires a linear colorspace. This means that the conversion of a color image to grayscale via <code>-colorspace gray</code> lo (…) [all...] |
/external/pdfium/testing/resources/pixel/ |
bug_71.in | 18 /ColorSpace << 48 /ColorSpace 11 0 R
|
/external/skia/src/sksl/ |
sksl_fp.include | 24 vec4 COLORSPACE(vec4 color, colorSpaceXform colorSpace);
|