/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/ |
D | ShadowNativeColorSpaceTest.java | 31 import android.graphics.ColorSpace; 76 for (ColorSpace.Named named : ColorSpace.Named.values()) { in testNamedColorSpaces() 77 ColorSpace colorSpace = ColorSpace.get(named); in testNamedColorSpaces() 90 () -> new ColorSpace.Rgb(null, new float[6], new float[2], identity, identity, 0.0f, 1.0f)); in testNullName() 97 () -> new ColorSpace.Rgb("", new float[6], new float[2], identity, identity, 0.0f, 1.0f)); in testEmptyName() 102 ColorSpace.Rgb cs = in testName() 103 new ColorSpace.Rgb("Test", new float[6], new float[2], identity, identity, 0.0f, 1.0f); in testName() 112 new ColorSpace.Rgb("Test", new float[7], new float[2], identity, identity, 0.0f, 1.0f)); in testPrimariesLength() 120 new ColorSpace.Rgb("Test", new float[6], new float[1], identity, identity, 0.0f, 1.0f)); in testWhitePointLength() 127 () -> new ColorSpace.Rgb("Test", new float[6], new float[2], null, identity, 0.0f, 1.0f)); in testNullOETF() [all …]
|
D | ShadowNativeImageDecoderTest.java | 12 import android.graphics.ColorSpace; 39 public final ColorSpace colorSpace; 48 ColorSpace colorSpace) { in Record() 59 private static final ColorSpace SRGB = ColorSpace.get(ColorSpace.Named.SRGB); 171 private final ColorSpace colorSpace; 180 ColorSpace colorSpace) { in AssetRecord() 190 public ColorSpace getColorSpace() { in getColorSpace() 194 public void checkColorSpace(ColorSpace requested, ColorSpace actual) { in checkColorSpace() 197 if (requested.equals(ColorSpace.get(ColorSpace.Named.LINEAR_SRGB))) { in checkColorSpace() 198 assertSame(ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB), actual); in checkColorSpace() [all …]
|
D | ShadowNativeBitmapTest.java | 38 import android.graphics.ColorSpace; 39 import android.graphics.ColorSpace.Named; 76 public static List<ColorSpace> getRgbColorSpaces() { in getRgbColorSpaces() 77 List<ColorSpace> rgbColorSpaces = new ArrayList<ColorSpace>(); in getRgbColorSpaces() 78 for (ColorSpace.Named e : ColorSpace.Named.values()) { in getRgbColorSpaces() 79 ColorSpace cs = ColorSpace.get(e); in getRgbColorSpaces() 80 if (cs.getModel() != ColorSpace.Model.RGB) { in getRgbColorSpaces() 83 if (((ColorSpace.Rgb) cs).getTransferParameters() == null) { in getRgbColorSpaces() 338 metrics, 10, 10, Config.ARGB_8888, true, ColorSpace.get(ColorSpace.Named.SRGB)); in testCreateBitmap_displayMetrics_mutable() 362 bitmap = Bitmap.createBitmap(10, 10, Config.ARGB_8888, true, ColorSpace.get(Named.SRGB)); in testCreateBitmap_noDisplayMetrics_mutable() [all …]
|
/external/webrtc/modules/video_coding/codecs/h264/ |
D | h264_color_space.cc | 20 ColorSpace ExtractH264ColorSpace(AVCodecContext* codec) { in ExtractH264ColorSpace() 21 ColorSpace::PrimaryID primaries = ColorSpace::PrimaryID::kUnspecified; in ExtractH264ColorSpace() 24 primaries = ColorSpace::PrimaryID::kBT709; in ExtractH264ColorSpace() 27 primaries = ColorSpace::PrimaryID::kBT470M; in ExtractH264ColorSpace() 30 primaries = ColorSpace::PrimaryID::kBT470BG; in ExtractH264ColorSpace() 33 primaries = ColorSpace::PrimaryID::kSMPTE170M; in ExtractH264ColorSpace() 36 primaries = ColorSpace::PrimaryID::kSMPTE240M; in ExtractH264ColorSpace() 39 primaries = ColorSpace::PrimaryID::kFILM; in ExtractH264ColorSpace() 42 primaries = ColorSpace::PrimaryID::kBT2020; in ExtractH264ColorSpace() 45 primaries = ColorSpace::PrimaryID::kSMPTEST428; in ExtractH264ColorSpace() [all …]
|
/external/webrtc/api/video/ |
D | color_space.cc | 55 ColorSpace::ChromaSiting* chroma_siting) { in SetChromaSitingFromUint8() 56 constexpr ColorSpace::ChromaSiting kChromaSitings[] = { in SetChromaSitingFromUint8() 57 ColorSpace::ChromaSiting::kUnspecified, in SetChromaSitingFromUint8() 58 ColorSpace::ChromaSiting::kCollocated, ColorSpace::ChromaSiting::kHalf}; in SetChromaSitingFromUint8() 66 ColorSpace::ColorSpace() = default; 67 ColorSpace::ColorSpace(const ColorSpace& other) = default; 68 ColorSpace::ColorSpace(ColorSpace&& other) = default; 69 ColorSpace& ColorSpace::operator=(const ColorSpace& other) = default; 71 ColorSpace::ColorSpace(PrimaryID primaries, in ColorSpace() function in webrtc::ColorSpace 75 : ColorSpace(primaries, in ColorSpace() [all …]
|
D | color_space.h | 35 class RTC_EXPORT ColorSpace { 125 ColorSpace(); 126 ColorSpace(const ColorSpace& other); 127 ColorSpace(ColorSpace&& other); 128 ColorSpace& operator=(const ColorSpace& other); 129 ColorSpace(PrimaryID primaries, 133 ColorSpace(PrimaryID primaries, 140 friend bool operator==(const ColorSpace& lhs, const ColorSpace& rhs) { 147 friend bool operator!=(const ColorSpace& lhs, const ColorSpace& rhs) {
|
/external/webrtc/api/video/test/ |
D | color_space_unittest.cc | 18 TEST(ColorSpace, TestSettingPrimariesFromUint8) { in TEST() argument 19 ColorSpace color_space; in TEST() 21 static_cast<uint8_t>(ColorSpace::PrimaryID::kBT470BG))); in TEST() 22 EXPECT_EQ(ColorSpace::PrimaryID::kBT470BG, color_space.primaries()); in TEST() 28 TEST(ColorSpace, TestSettingTransferFromUint8) { in TEST() argument 29 ColorSpace color_space; in TEST() 31 static_cast<uint8_t>(ColorSpace::TransferID::kBT2020_10))); in TEST() 32 EXPECT_EQ(ColorSpace::TransferID::kBT2020_10, color_space.transfer()); in TEST() 38 TEST(ColorSpace, TestSettingMatrixFromUint8) { in TEST() argument 39 ColorSpace color_space; in TEST() [all …]
|
/external/webrtc/modules/video_coding/codecs/vp9/ |
D | libvpx_vp9_decoder.cc | 34 ColorSpace ExtractVP9ColorSpace(vpx_color_space_t space_t, in ExtractVP9ColorSpace() 37 ColorSpace::PrimaryID primaries = ColorSpace::PrimaryID::kUnspecified; in ExtractVP9ColorSpace() 38 ColorSpace::TransferID transfer = ColorSpace::TransferID::kUnspecified; in ExtractVP9ColorSpace() 39 ColorSpace::MatrixID matrix = ColorSpace::MatrixID::kUnspecified; in ExtractVP9ColorSpace() 43 primaries = ColorSpace::PrimaryID::kSMPTE170M; in ExtractVP9ColorSpace() 44 transfer = ColorSpace::TransferID::kSMPTE170M; in ExtractVP9ColorSpace() 45 matrix = ColorSpace::MatrixID::kSMPTE170M; in ExtractVP9ColorSpace() 48 primaries = ColorSpace::PrimaryID::kSMPTE240M; in ExtractVP9ColorSpace() 49 transfer = ColorSpace::TransferID::kSMPTE240M; in ExtractVP9ColorSpace() 50 matrix = ColorSpace::MatrixID::kSMPTE240M; in ExtractVP9ColorSpace() [all …]
|
/external/webrtc/common_video/h264/ |
D | sps_vui_rewriter_unittest.cc | 153 static const webrtc::ColorSpace kColorSpaceH264Default( 154 ColorSpace::PrimaryID::kUnspecified, 155 ColorSpace::TransferID::kUnspecified, 156 ColorSpace::MatrixID::kUnspecified, 157 ColorSpace::RangeID::kLimited); 159 static const webrtc::ColorSpace kColorSpacePrimariesBt709( 160 ColorSpace::PrimaryID::kBT709, 161 ColorSpace::TransferID::kUnspecified, 162 ColorSpace::MatrixID::kUnspecified, 163 ColorSpace::RangeID::kLimited); [all …]
|
D | sps_vui_rewriter.cc | 89 const webrtc::ColorSpace* color_space, 96 bool IsDefaultColorSpace(const ColorSpace& color_space); 98 const ColorSpace& color_space); 102 const ColorSpace* color_space, 141 const webrtc::ColorSpace* color_space, in ParseAndRewriteSps() 218 const webrtc::ColorSpace* color_space, in ParseAndRewriteSps() 229 const webrtc::ColorSpace* color_space) { in ParseOutgoingBitstreamAndRewrite() 288 const webrtc::ColorSpace* color_space, in CopyAndRewriteVui() 470 bool IsDefaultColorSpace(const ColorSpace& color_space) { in IsDefaultColorSpace() 471 return color_space.range() != ColorSpace::RangeID::kFull && in IsDefaultColorSpace() [all …]
|
/external/pdfium/testing/resources/pixel/ |
D | jpxdecode_with_mismatch_colorspace.in | 42 % grayscale image with RGB /ColorSpace entry 48 % grayscale image with CMYK /ColorSpace entry 54 % RGB image with grayscale /ColorSpace entry 60 % RGB image with CMYK /ColorSpace entry 66 % CMYK image with grayscale /ColorSpace entry 72 % CMYK image with RGB /ColorSpace entry 81 % grayscale image with RGB /ColorSpace 86 /ColorSpace /DeviceRGB 97 % grayscale image with CMYK /ColorSpace 102 /ColorSpace /DeviceCMYK [all …]
|
D | matte.in | 56 /ColorSpace /DeviceRGB 71 /ColorSpace /DeviceGray 86 /ColorSpace /DeviceRGB 101 /ColorSpace /DeviceGray 115 /ColorSpace /DeviceRGB 130 /ColorSpace /DeviceGray 145 /ColorSpace /DeviceRGB 160 /ColorSpace /DeviceGray
|
D | image_transformer_other.in | 19 /ColorSpace << 64 /ColorSpace 5 0 R 79 /ColorSpace /DeviceGray 94 /ColorSpace /DeviceRGB 111 /ColorSpace /DeviceRGB
|
D | jpxdecode_without_bitspercomponent.in | 79 /ColorSpace /DeviceGray 94 /ColorSpace /DeviceGray 110 /ColorSpace /DeviceRGB 125 /ColorSpace /DeviceRGB 141 /ColorSpace /DeviceCMYK 156 /ColorSpace /DeviceCMYK
|
D | jpxdecode.in | 80 /ColorSpace /DeviceGray 96 /ColorSpace /DeviceGray 113 /ColorSpace /DeviceRGB 129 /ColorSpace /DeviceRGB 146 /ColorSpace /DeviceCMYK 162 /ColorSpace /DeviceCMYK
|
/external/skia/src/shaders/gradients/ |
D | SkGradientShaderBase.cpp | 122 fInterpolation.fColorSpace = (Interpolation::ColorSpace)( in unflatten() 425 using ColorSpace = Interpolation::ColorSpace; in appendStages() typedef 431 case ColorSpace::kLab: in appendStages() 432 case ColorSpace::kOKLab: in appendStages() 436 case ColorSpace::kLCH: in appendStages() 437 case ColorSpace::kOKLCH: in appendStages() 438 case ColorSpace::kHSL: in appendStages() 439 case ColorSpace::kHWB: in appendStages() 449 case ColorSpace::kLab: p->append(SkRasterPipelineOp::css_lab_to_xyz); break; in appendStages() 450 case ColorSpace::kOKLab: p->append(SkRasterPipelineOp::css_oklab_to_linear_srgb); break; in appendStages() [all …]
|
/external/webrtc/common_video/test/ |
D | utilities.cc | 34 ColorSpace CreateTestColorSpace(bool with_hdr_metadata) { in CreateTestColorSpace() 36 return ColorSpace( in CreateTestColorSpace() 37 ColorSpace::PrimaryID::kBT709, ColorSpace::TransferID::kGAMMA22, in CreateTestColorSpace() 38 ColorSpace::MatrixID::kSMPTE2085, ColorSpace::RangeID::kFull, in CreateTestColorSpace() 39 ColorSpace::ChromaSiting::kCollocated, in CreateTestColorSpace() 40 ColorSpace::ChromaSiting::kCollocated, in CreateTestColorSpace()
|
/external/rust/crates/vulkano/src/swapchain/ |
D | capabilities.rs | 54 …pub supported_formats: Vec<(Format, ColorSpace)>, // TODO: https://github.com/KhronosGroup/Vulkan-… 613 pub enum ColorSpace { enum 632 impl From<ColorSpace> for ash::vk::ColorSpaceKHR { 634 fn from(val: ColorSpace) -> Self { in from() 639 impl From<ash::vk::ColorSpaceKHR> for ColorSpace { implementation 643 ash::vk::ColorSpaceKHR::SRGB_NONLINEAR => ColorSpace::SrgbNonLinear, in from() 644 ash::vk::ColorSpaceKHR::DISPLAY_P3_NONLINEAR_EXT => ColorSpace::DisplayP3NonLinear, in from() 645 ash::vk::ColorSpaceKHR::EXTENDED_SRGB_LINEAR_EXT => ColorSpace::ExtendedSrgbLinear, in from() 647 ColorSpace::ExtendedSrgbNonLinear in from() 649 ash::vk::ColorSpaceKHR::DCI_P3_LINEAR_EXT => ColorSpace::DciP3Linear, in from() [all …]
|
/external/pdfium/testing/resources/ |
D | matte.in | 56 /ColorSpace /DeviceRGB 71 /ColorSpace /DeviceGray 86 /ColorSpace /DeviceRGB 101 /ColorSpace /DeviceGray 115 /ColorSpace /DeviceRGB 130 /ColorSpace /DeviceGray 145 /ColorSpace /DeviceRGB 160 /ColorSpace /DeviceGray
|
/external/webrtc/modules/video_coding/codecs/h264/test/ |
D | h264_impl_unittest.cc | 72 const ColorSpace color_space = *decoded_frame->color_space(); in TEST_F() 73 EXPECT_EQ(ColorSpace::PrimaryID::kUnspecified, color_space.primaries()); in TEST_F() 74 EXPECT_EQ(ColorSpace::TransferID::kUnspecified, color_space.transfer()); in TEST_F() 75 EXPECT_EQ(ColorSpace::MatrixID::kUnspecified, color_space.matrix()); in TEST_F() 76 EXPECT_EQ(ColorSpace::RangeID::kInvalid, color_space.range()); in TEST_F() 77 EXPECT_EQ(ColorSpace::ChromaSiting::kUnspecified, in TEST_F() 79 EXPECT_EQ(ColorSpace::ChromaSiting::kUnspecified, in TEST_F()
|
/external/angle/src/common/ |
D | PackedEGLEnums_autogen.cpp | 19 ColorSpace FromEGLenum<ColorSpace>(EGLenum from) in FromEGLenum() 24 return ColorSpace::sRGB; in FromEGLenum() 26 return ColorSpace::Linear; in FromEGLenum() 28 return ColorSpace::InvalidEnum; in FromEGLenum() 32 EGLenum ToEGLenum(ColorSpace from) in ToEGLenum() 36 case ColorSpace::sRGB: in ToEGLenum() 38 case ColorSpace::Linear: in ToEGLenum() 46 std::ostream &operator<<(std::ostream &os, ColorSpace value) in operator <<() 50 case ColorSpace::sRGB: in operator <<() 53 case ColorSpace::Linear: in operator <<()
|
D | PackedEGLEnums_autogen.h | 27 enum class ColorSpace : uint8_t enum 37 ColorSpace FromEGLenum<ColorSpace>(EGLenum from); 38 EGLenum ToEGLenum(ColorSpace from); 39 std::ostream &operator<<(std::ostream &os, ColorSpace value);
|
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowNativeBitmap.java | 16 import android.graphics.ColorSpace; 17 import android.graphics.ColorSpace.Rgb.TransferParameters; 83 ColorSpace.Rgb.TransferParameters p) { in nativeCreate() 287 ColorSpace colorSpace = nativeComputeColorSpace(nativePtr); in nativeGetColorSpace() 295 if (colorSpace instanceof ColorSpace.Rgb) { in nativeGetColorSpace() 296 TransferParameters transferParameters = ((ColorSpace.Rgb) colorSpace).getTransferParameters(); in nativeGetColorSpace() 304 ColorSpace.Rgb rgb = in nativeGetColorSpace() 305 (ColorSpace.Rgb) in nativeGetColorSpace() 306 ColorSpace.adapt( in nativeGetColorSpace() 314 protected static ColorSpace nativeComputeColorSpace(long nativePtr) { in nativeComputeColorSpace() [all …]
|
/external/skia/src/gpu/ganesh/gradients/ |
D | GrGradientShader.cpp | 672 using ColorSpace = SkGradientShader::Interpolation::ColorSpace; in make_interpolated_to_dst() typedef 675 static_assert(static_cast<int>(ColorSpace::kDestination) == 0); in make_interpolated_to_dst() 676 static_assert(static_cast<int>(ColorSpace::kSRGBLinear) == 1); in make_interpolated_to_dst() 677 static_assert(static_cast<int>(ColorSpace::kLab) == 2); in make_interpolated_to_dst() 678 static_assert(static_cast<int>(ColorSpace::kOKLab) == 3); in make_interpolated_to_dst() 679 static_assert(static_cast<int>(ColorSpace::kLCH) == 4); in make_interpolated_to_dst() 680 static_assert(static_cast<int>(ColorSpace::kOKLCH) == 5); in make_interpolated_to_dst() 681 static_assert(static_cast<int>(ColorSpace::kSRGB) == 6); in make_interpolated_to_dst() 682 static_assert(static_cast<int>(ColorSpace::kHSL) == 7); in make_interpolated_to_dst() 683 static_assert(static_cast<int>(ColorSpace::kHWB) == 8); in make_interpolated_to_dst() [all …]
|
/external/pdfium/third_party/lcms/src/ |
D | cmsvirt.c | 289 cmsColorSpaceSignature ColorSpace, in cmsCreateLinearizationDeviceLinkTHR() argument 303 cmsSetColorSpace(hICC, ColorSpace); in cmsCreateLinearizationDeviceLinkTHR() 304 cmsSetPCS(hICC, ColorSpace); in cmsCreateLinearizationDeviceLinkTHR() 309 nChannels = cmsChannelsOfColorSpace(ColorSpace); in cmsCreateLinearizationDeviceLinkTHR() 340 cmsHPROFILE CMSEXPORT cmsCreateLinearizationDeviceLink(cmsColorSpaceSignature ColorSpace, in cmsCreateLinearizationDeviceLink() argument 343 return cmsCreateLinearizationDeviceLinkTHR(NULL, ColorSpace, TransferFunctions); in cmsCreateLinearizationDeviceLink() 394 cmsColorSpaceSignature ColorSpace, in cmsCreateInkLimitingDeviceLinkTHR() argument 402 if (ColorSpace != cmsSigCmykData) { in cmsCreateInkLimitingDeviceLinkTHR() 422 cmsSetColorSpace(hICC, ColorSpace); in cmsCreateInkLimitingDeviceLinkTHR() 423 cmsSetPCS(hICC, ColorSpace); in cmsCreateInkLimitingDeviceLinkTHR() [all …]
|