Home
last modified time | relevance | path

Searched refs:ColorSpace (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/graphics/
DColorSpaceRendererTest.java34 Bitmap b = ColorSpace.createRenderer() in testRendererSize()
40 b = ColorSpace.createRenderer() in testRendererSize()
49 Bitmap b = ColorSpace.createRenderer() in testRenderer()
53 .add(ColorSpace.get(ColorSpace.Named.SRGB), 0xffffffff) in testRenderer()
54 .add(ColorSpace.get(ColorSpace.Named.DCI_P3), 0xffffffff) in testRenderer()
55 .add(ColorSpace.get(ColorSpace.Named.PRO_PHOTO_RGB), 0.1f, 0.5f, 0.1f, 0xff000000) in testRenderer()
56 .add(ColorSpace.get(ColorSpace.Named.ADOBE_RGB), 0.1f, 0.5f, 0.1f, 0xff000000) in testRenderer()
63 Bitmap b = ColorSpace.createRenderer() in testUcsRenderer()
68 .add(ColorSpace.get(ColorSpace.Named.SRGB), 0xffffffff) in testUcsRenderer()
69 .add(ColorSpace.get(ColorSpace.Named.DCI_P3), 0xffffffff) in testUcsRenderer()
[all …]
/frameworks/native/include/ui/
DColorSpace.h33 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 …]
/frameworks/native/libs/ui/
DColorSpace.cpp27 static constexpr float rcpResponse(float x, const ColorSpace::TransferParameters& p) { in rcpResponse()
31 static constexpr float response(float x, const ColorSpace::TransferParameters& p) { in response()
35 static constexpr float rcpFullResponse(float x, const ColorSpace::TransferParameters& p) { in rcpFullResponse()
39 static constexpr float fullResponse(float x, const ColorSpace::TransferParameters& p) { in fullResponse()
57 static ColorSpace::transfer_function toOETF(const ColorSpace::TransferParameters& parameters) { in toOETF()
64 static ColorSpace::transfer_function toEOTF( const ColorSpace::TransferParameters& parameters) { in toEOTF()
71 static ColorSpace::transfer_function toOETF(float gamma) { in toOETF()
78 static ColorSpace::transfer_function toEOTF(float gamma) { in toEOTF()
100 ColorSpace::ColorSpace( in ColorSpace() function in android::ColorSpace
116 ColorSpace::ColorSpace( in ColorSpace() function in android::ColorSpace
[all …]
DAndroid.bp48 "ColorSpace.cpp",
/frameworks/native/libs/ui/tests/
Dcolorspace_test.cpp41 ColorSpace sRGB("sRGB", sRGBToXYZ); in TEST_F()
54 ColorSpace sRGB("sRGB", sRGBToXYZ); in TEST_F()
73 ColorSpace sRGB("sRGB", sRGBToXYZ); in TEST_F()
86 ColorSpace sRGB1("sRGB", sRGBToXYZ); in TEST_F()
87 ColorSpace sRGB2( in TEST_F()
107 ColorSpace sRGB = ColorSpace::sRGB(); in TEST_F()
128 ColorSpace sRGB2( in TEST_F()
142 float3 c(ColorSpace::BT2020().rgbToXYZ(float3{0, 1, 0})); in TEST_F()
145 float3 sRGB(ColorSpace::sRGB().xyzToRGB(c)); in TEST_F()
149 float3 extendedSRGB(ColorSpace::linearExtendedSRGB().xyzToRGB(c)); in TEST_F()
[all …]
/frameworks/native/libs/ui/tools/
Dlutgen.cpp31 ColorSpace gColorSpaceSrc = ColorSpace::DisplayP3();
32 ColorSpace gColorSpaceDst = ColorSpace::extendedSRGB();
69 static const ColorSpace findColorSpace(const string& name) { in findColorSpace()
70 if (name == "linearSRGB") return ColorSpace::linearSRGB(); in findColorSpace()
71 if (name == "extendedSRGB") return ColorSpace::extendedSRGB(); in findColorSpace()
72 if (name == "linearExtendedSRGB") return ColorSpace::linearExtendedSRGB(); in findColorSpace()
73 if (name == "NTSC") return ColorSpace::NTSC(); in findColorSpace()
74 if (name == "BT709") return ColorSpace::BT709(); in findColorSpace()
75 if (name == "BT2020") return ColorSpace::BT2020(); in findColorSpace()
76 if (name == "AdobeRGB") return ColorSpace::AdobeRGB(); in findColorSpace()
[all …]
/frameworks/base/graphics/java/android/graphics/
DColor.java312 private final ColorSpace mColorSpace;
328 mColorSpace = ColorSpace.get(ColorSpace.Named.SRGB); in Color()
341 this(r, g, b, a, ColorSpace.get(ColorSpace.Named.SRGB)); in Color()
354 private Color(float r, float g, float b, float a, @NonNull ColorSpace colorSpace) { in Color()
365 private Color(@Size(min = 4, max = 5) float[] components, @NonNull ColorSpace colorSpace) { in Color()
376 public ColorSpace getColorSpace() { in getColorSpace()
385 public ColorSpace.Model getModel() { in getModel()
451 public Color convert(@NonNull ColorSpace colorSpace) { in convert()
452 ColorSpace.Connector connector = ColorSpace.connect(mColorSpace, colorSpace); in convert()
480 ColorSpace.connect(mColorSpace).transform(color); in toArgb()
[all …]
DColorSpace.java136 public abstract class ColorSpace { class
203 private static final ColorSpace[] sNamedColorSpaces = new ColorSpace[Named.values().length];
865 private ColorSpace( in ColorSpace() method in ColorSpace
1149 ColorSpace that = (ColorSpace) o; in equals()
1188 public static Connector connect(@NonNull ColorSpace source, @NonNull ColorSpace destination) { in connect()
1213 public static Connector connect(@NonNull ColorSpace source, @NonNull ColorSpace destination, in connect()
1244 public static Connector connect(@NonNull ColorSpace source) { in connect()
1266 public static Connector connect(@NonNull ColorSpace source, @NonNull RenderIntent intent) { in connect()
1295 public static ColorSpace adapt(@NonNull ColorSpace colorSpace, in adapt()
1324 public static ColorSpace adapt(@NonNull ColorSpace colorSpace, in adapt()
[all …]
DBitmap.java78 private ColorSpace mColorSpace;
944 boolean hasAlpha, @NonNull ColorSpace colorSpace) { in createBitmap()
969 ColorSpace.get(ColorSpace.Named.SRGB)); in createBitmap()
999 @NonNull Config config, boolean hasAlpha, @NonNull ColorSpace colorSpace) { in createBitmap()
1013 if (config != Config.ARGB_8888 || colorSpace == ColorSpace.get(ColorSpace.Named.SRGB)) { in createBitmap()
1016 if (!(colorSpace instanceof ColorSpace.Rgb)) { in createBitmap()
1019 ColorSpace.Rgb rgb = (ColorSpace.Rgb) colorSpace; in createBitmap()
1020 ColorSpace.Rgb.TransferParameters parameters = rgb.getTransferParameters(); in createBitmap()
1026 ColorSpace.Rgb d50 = (ColorSpace.Rgb) ColorSpace.adapt(rgb, ColorSpace.ILLUMINANT_D50); in createBitmap()
1544 public final ColorSpace getColorSpace() { in getColorSpace()
[all …]
DBitmapFactory.java172 public ColorSpace inPreferredColorSpace = null;
398 public ColorSpace outColorSpace;
441 if (!(opts.inPreferredColorSpace instanceof ColorSpace.Rgb)) { in validate()
445 if (((ColorSpace.Rgb) opts.inPreferredColorSpace).getTransferParameters() == null) { in validate()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DCpuVideoTrackDecoder.java27 import androidx.media.filterfw.ColorSpace;
240 ColorSpace.convertArgb8888ToRgba8888(input, output, width, height); in convertImage()
243 ColorSpace.convertYuv420pToRgba8888(input, output, width, height); in convertImage()
/frameworks/base/libs/hwui/
DTexture.cpp331 ColorSpace::TransferParameters p = in upload()
333 ColorSpace src("Unnamed", mat4f((const float*) &data[0]).upperLeft(), p); in upload()
334 mConnector.reset(new ColorSpaceConnector(src, ColorSpace::sRGB())); in upload()
398 const ColorSpace::TransferParameters& p = mConnector->getSource().getTransferParameters(); in getTransferFunctionType()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DColorSpace.java26 public class ColorSpace { class
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLES20RenderEngine.cpp146 mat3 srgbToP3 = ColorSpace::DisplayP3().getXYZtoRGB() * ColorSpace::sRGB().getRGBtoXYZ(); in GLES20RenderEngine()
/frameworks/base/libs/hwui/renderstate/
DRenderState.cpp385 const ColorSpace& source = connector->getSource(); in render()
/frameworks/base/
Dpreloaded-classes67 [Landroid.graphics.ColorSpace$Model;
68 [Landroid.graphics.ColorSpace$Named;
69 [Landroid.graphics.ColorSpace;
963 android.graphics.ColorSpace
964 android.graphics.ColorSpace$Lab
965 android.graphics.ColorSpace$Model
966 android.graphics.ColorSpace$Named
967 android.graphics.ColorSpace$Rgb
968 android.graphics.ColorSpace$Rgb$TransferParameters
969 android.graphics.ColorSpace$Xyz
Dcompiled-classes-phone1276 android.graphics.ColorSpace
1277 android.graphics.ColorSpace$Adaptation
1278 android.graphics.ColorSpace$Lab
1279 android.graphics.ColorSpace$Model
1280 android.graphics.ColorSpace$Named
1281 android.graphics.ColorSpace$Rgb
1282 android.graphics.ColorSpace$Rgb$TransferParameters
1283 android.graphics.ColorSpace$Xyz
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DExifInterface.java493 public static interface ColorSpace { interface in ExifInterface
/frameworks/base/api/
Dcurrent.txt12457 …itmap createBitmap(int, int, android.graphics.Bitmap.Config, boolean, android.graphics.ColorSpace);
12459 …il.DisplayMetrics, int, int, android.graphics.Bitmap.Config, boolean, android.graphics.ColorSpace);
12471 method public final android.graphics.ColorSpace getColorSpace();
12554 field public android.graphics.ColorSpace inPreferredColorSpace;
12564 field public android.graphics.ColorSpace outColorSpace;
12753 method public static android.graphics.ColorSpace colorSpace(long);
12755 method public android.graphics.Color convert(android.graphics.ColorSpace);
12756 method public static long convert(int, android.graphics.ColorSpace);
12757 method public static long convert(long, android.graphics.ColorSpace);
12758 …long convert(float, float, float, float, android.graphics.ColorSpace, android.graphics.ColorSpace);
[all …]
Dsystem-current.txt13237 …itmap createBitmap(int, int, android.graphics.Bitmap.Config, boolean, android.graphics.ColorSpace);
13239 …il.DisplayMetrics, int, int, android.graphics.Bitmap.Config, boolean, android.graphics.ColorSpace);
13251 method public final android.graphics.ColorSpace getColorSpace();
13334 field public android.graphics.ColorSpace inPreferredColorSpace;
13344 field public android.graphics.ColorSpace outColorSpace;
13533 method public static android.graphics.ColorSpace colorSpace(long);
13535 method public android.graphics.Color convert(android.graphics.ColorSpace);
13536 method public static long convert(int, android.graphics.ColorSpace);
13537 method public static long convert(long, android.graphics.ColorSpace);
13538 …long convert(float, float, float, float, android.graphics.ColorSpace, android.graphics.ColorSpace);
[all …]
/frameworks/support/api/
D25.1.0.txt893 field public static final java.lang.String TAG_COLOR_SPACE = "ColorSpace";
D25.2.0.txt893 field public static final java.lang.String TAG_COLOR_SPACE = "ColorSpace";
D26.0.0-alpha1.txt932 field public static final java.lang.String TAG_COLOR_SPACE = "ColorSpace";
D25.3.0.txt1023 field public static final java.lang.String TAG_COLOR_SPACE = "ColorSpace";
D25.4.0.txt1053 field public static final java.lang.String TAG_COLOR_SPACE = "ColorSpace";

12