Home
last modified time | relevance | path

Searched refs:Dataspace (Results 1 – 25 of 180) sorted by relevance

12345678

/frameworks/native/libs/ui/include/ui/fuzzer/
DFuzzableDataspaces.h20 constexpr ui::Dataspace kDataspaces[] = {
21 ui::Dataspace::UNKNOWN,
22 ui::Dataspace::ARBITRARY,
23 ui::Dataspace::STANDARD_UNSPECIFIED,
24 ui::Dataspace::STANDARD_BT709,
25 ui::Dataspace::STANDARD_BT601_625,
26 ui::Dataspace::STANDARD_BT601_625_UNADJUSTED,
27 ui::Dataspace::STANDARD_BT601_525,
28 ui::Dataspace::STANDARD_BT601_525_UNADJUSTED,
29 ui::Dataspace::STANDARD_BT2020,
[all …]
/frameworks/av/media/libstagefright/renderfright/fuzzer/
DREADME.md17Dataspace::UNKNOWN`<br/>1. `ui::Dataspace::ARBITRARY`<br/>2. `ui::Dataspace::STANDARD_SHIFT`<br/>3…
Dlibstagefright_renderfright_fuzzer.cpp36 static constexpr ui::Dataspace kDataSpace[] = {
37 ui::Dataspace::UNKNOWN,
38 ui::Dataspace::ARBITRARY,
39 ui::Dataspace::STANDARD_SHIFT,
40 ui::Dataspace::STANDARD_MASK,
41 ui::Dataspace::STANDARD_UNSPECIFIED,
42 ui::Dataspace::STANDARD_BT709,
43 ui::Dataspace::STANDARD_BT601_625,
44 ui::Dataspace::STANDARD_BT601_625_UNADJUSTED,
45 ui::Dataspace::STANDARD_BT601_525,
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayColorProfileTest.cpp35 using ui::Dataspace;
337 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F()
338 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_HLG)); in TEST_F()
344 EXPECT_TRUE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F()
345 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_HLG)); in TEST_F()
351 EXPECT_TRUE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F()
352 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_HLG)); in TEST_F()
358 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F()
359 EXPECT_TRUE(profile.hasLegacyHdrSupport(Dataspace::BT2020_HLG)); in TEST_F()
369 const std::array<std::tuple<Dataspace, ColorMode, RenderIntent>, 15>& expected) { in checkGetBestColorMode() argument
[all …]
/frameworks/native/libs/ui/tests/
DHdrRenderTypeUtils_test.cpp28 EXPECT_EQ(getHdrRenderType(ui::Dataspace::BT2020_ITU_HLG, std::nullopt), in TEST_F()
30 EXPECT_EQ(getHdrRenderType(ui::Dataspace::BT2020_ITU_PQ, std::nullopt), in TEST_F()
32 EXPECT_EQ(getHdrRenderType(ui::Dataspace::BT2020_PQ, std::nullopt), HdrRenderType::GENERIC_HDR); in TEST_F()
33 EXPECT_EQ(getHdrRenderType(ui::Dataspace::BT2020_HLG, std::nullopt), in TEST_F()
35 EXPECT_EQ(getHdrRenderType(ui::Dataspace::V0_SCRGB, in TEST_F()
38 EXPECT_EQ(getHdrRenderType(ui::Dataspace::V0_SCRGB, in TEST_F()
41 EXPECT_EQ(getHdrRenderType(ui::Dataspace::V0_SCRGB_LINEAR, in TEST_F()
45 EXPECT_EQ(getHdrRenderType(ui::Dataspace::V0_SRGB_LINEAR, std::nullopt), HdrRenderType::SDR); in TEST_F()
47 EXPECT_EQ(getHdrRenderType(ui::Dataspace::V0_SCRGB_LINEAR, std::nullopt), HdrRenderType::SDR); in TEST_F()
48 EXPECT_EQ(getHdrRenderType(ui::Dataspace::V0_SCRGB, std::nullopt), HdrRenderType::SDR); in TEST_F()
[all …]
/frameworks/native/libs/ui/
DPublicFormat.cpp25 using ::aidl::android::hardware::graphics::common::Dataspace;
49 Dataspace dataspace; in mapPublicFormatToHalDataspace()
52 dataspace = Dataspace::JFIF; in mapPublicFormatToHalDataspace()
58 dataspace = Dataspace::DEPTH; in mapPublicFormatToHalDataspace()
64 dataspace = Dataspace::ARBITRARY; in mapPublicFormatToHalDataspace()
69 dataspace = Dataspace::JFIF; in mapPublicFormatToHalDataspace()
72 dataspace = Dataspace::DYNAMIC_DEPTH; in mapPublicFormatToHalDataspace()
75 dataspace = Dataspace::HEIF; in mapPublicFormatToHalDataspace()
78 dataspace = Dataspace::JPEG_R; in mapPublicFormatToHalDataspace()
82 dataspace = Dataspace::UNKNOWN; in mapPublicFormatToHalDataspace()
[all …]
/frameworks/av/media/libstagefright/renderfright/
DDescription.cpp26 Description::TransferFunction Description::dataSpaceToTransferFunction(ui::Dataspace dataSpace) { in dataSpaceToTransferFunction()
27 ui::Dataspace transfer = static_cast<ui::Dataspace>(dataSpace & ui::Dataspace::TRANSFER_MASK); in dataSpaceToTransferFunction()
29 case ui::Dataspace::TRANSFER_ST2084: in dataSpaceToTransferFunction()
31 case ui::Dataspace::TRANSFER_HLG: in dataSpaceToTransferFunction()
33 case ui::Dataspace::TRANSFER_LINEAR: in dataSpaceToTransferFunction()
/frameworks/native/libs/shaders/include/shaders/
Dshaders.h52 const ui::Dataspace inputDataspace = ui::Dataspace::SRGB;
55 const ui::Dataspace outputDataspace = ui::Dataspace::SRGB;
67 ui::Dataspace fakeOutputDataspace = ui::Dataspace::UNKNOWN;
86 size_t result = std::hash<ui::Dataspace>{}(le.inputDataspace); in operator()
87 result = HashCombine(result, std::hash<ui::Dataspace>{}(le.outputDataspace)); in operator()
89 return HashCombine(result, std::hash<ui::Dataspace>{}(le.fakeOutputDataspace)); in operator()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplayColorProfile.cpp39 using ui::Dataspace;
74 Dataspace colorModeToDataspace(ColorMode mode) { in colorModeToDataspace()
77 return Dataspace::V0_SRGB; in colorModeToDataspace()
79 return Dataspace::DISPLAY_P3; in colorModeToDataspace()
81 return Dataspace::DISPLAY_BT2020; in colorModeToDataspace()
83 return Dataspace::BT2020_HLG; in colorModeToDataspace()
85 return Dataspace::BT2020_PQ; in colorModeToDataspace()
87 return Dataspace::UNKNOWN; in colorModeToDataspace()
316 const Dataspace dataspace = colorModeToDataspace(mode); in addColorMode()
317 const Dataspace hwcDataspace = colorModeToDataspace(hwcColorMode); in addColorMode()
[all …]
/frameworks/av/media/libstagefright/
DFrameCaptureLayer.cpp38 ui::Dataspace translateDataspace(ui::Dataspace dataspace) { in translateDataspace()
39 ui::Dataspace updatedDataspace = dataspace; in translateDataspace()
42 case ui::Dataspace::SRGB: in translateDataspace()
43 updatedDataspace = ui::Dataspace::V0_SRGB; in translateDataspace()
45 case ui::Dataspace::SRGB_LINEAR: in translateDataspace()
46 updatedDataspace = ui::Dataspace::V0_SRGB_LINEAR; in translateDataspace()
48 case ui::Dataspace::JFIF: in translateDataspace()
49 updatedDataspace = ui::Dataspace::V0_JFIF; in translateDataspace()
51 case ui::Dataspace::BT601_625: in translateDataspace()
52 updatedDataspace = ui::Dataspace::V0_BT601_625; in translateDataspace()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayDevice_GetBestColorModeTest.cpp41 void setInputDataspace(ui::Dataspace dataspace) { mInputDataspace = dataspace; } in setInputDataspace()
59 ui::Dataspace mOutDataspace;
64 ui::Dataspace mInputDataspace;
73 setInputDataspace(ui::Dataspace::DISPLAY_P3); in TEST_F()
79 ASSERT_EQ(ui::Dataspace::V0_SRGB, mOutDataspace); in TEST_F()
91 setInputDataspace(ui::Dataspace::DISPLAY_P3); in TEST_F()
97 ASSERT_EQ(ui::Dataspace::DISPLAY_P3, mOutDataspace); in TEST_F()
105 setInputDataspace(ui::Dataspace::DISPLAY_P3); in TEST_F()
111 ASSERT_EQ(ui::Dataspace::DISPLAY_BT2020, mOutDataspace); in TEST_F()
/frameworks/base/libs/hwui/
DTonemapper.cpp77 static ui::Dataspace extractTransfer(ui::Dataspace dataspace) { in extractTransfer()
78 return static_cast<ui::Dataspace>(dataspace & HAL_DATASPACE_TRANSFER_MASK); in extractTransfer()
81 static bool isHdrDataspace(ui::Dataspace dataspace) { in isHdrDataspace()
84 return transfer == ui::Dataspace::TRANSFER_ST2084 || transfer == ui::Dataspace::TRANSFER_HLG; in isHdrDataspace()
87 static ui::Dataspace getDataspace(const SkImageInfo& image) { in getDataspace()
88 return static_cast<ui::Dataspace>( in getDataspace()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DDisplayColorProfile.h42 bool hasLegacyHdrSupport(ui::Dataspace dataspace) const override;
43 void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent,
44 ui::Dataspace* outDataspace, ui::ColorMode* outMode,
57 bool isDataspaceSupported(ui::Dataspace) const override;
70 ui::Dataspace dataspace;
75 static ColorModeKey getColorModeKey(ui::Dataspace dataspace, ui::RenderIntent intent) { in getColorModeKey()
/frameworks/native/libs/renderengine/skia/
DAutoBackendTexture.h97 sk_sp<SkImage> makeImage(ui::Dataspace dataspace, SkAlphaType alphaType) { in makeImage()
102 sk_sp<SkSurface> getOrCreateSurface(ui::Dataspace dataspace) { in getOrCreateSurface()
134 sk_sp<SkImage> makeImage(ui::Dataspace dataspace, SkAlphaType alphaType);
137 sk_sp<SkSurface> getOrCreateSurface(ui::Dataspace dataspace);
148 ui::Dataspace mDataspace = ui::Dataspace::UNKNOWN;
/frameworks/native/libs/shaders/
Dshaders.cpp32 aidl::android::hardware::graphics::common::Dataspace toAidlDataspace(ui::Dataspace dataspace) { in toAidlDataspace()
33 return static_cast<aidl::android::hardware::graphics::common::Dataspace>(dataspace); in toAidlDataspace()
57 void generateLuminanceScalesForOOTF(ui::Dataspace inputDataspace, std::string& shader) { in generateLuminanceScalesForOOTF()
80 static void generateLuminanceNormalizationForOOTF(ui::Dataspace inputDataspace, in generateLuminanceNormalizationForOOTF()
81 ui::Dataspace outputDataspace, in generateLuminanceNormalizationForOOTF()
144 void generateOOTF(ui::Dataspace inputDataspace, ui::Dataspace outputDataspace, in generateOOTF()
248 ColorSpace toColorSpace(ui::Dataspace dataspace) { in toColorSpace()
/frameworks/native/libs/renderengine/tests/
DRenderEngineTest.cpp540 void fillBufferWithColorTransformAndSourceDataspace(const ui::Dataspace sourceDataspace);
546 void fillBufferWithColorTransformAndOutputDataspace(const ui::Dataspace outputDataspace);
596 void tonemap(ui::Dataspace sourceDataspace, std::function<vec3(vec3)> eotf,
615 layer.sourceDataspace = ui::Dataspace::V0_SRGB_LINEAR; in fillColor()
622 layer.sourceDataspace = ui::Dataspace::V0_SRGB_LINEAR; in setOpaqueBit()
631 layer.sourceDataspace = ui::Dataspace::V0_SRGB_LINEAR; in setOpaqueBit()
665 layer.sourceDataspace = ui::Dataspace::V0_SRGB_LINEAR; in fillColor()
675 settings.outputDataspace = ui::Dataspace::V0_SRGB_LINEAR; in fillBuffer()
680 layer.sourceDataspace = ui::Dataspace::V0_SRGB_LINEAR; in fillBuffer()
717 settings.outputDataspace = ui::Dataspace::V0_SRGB_LINEAR; in fillRedOffsetBuffer()
[all …]
/frameworks/native/libs/shaders/tests/
Dshaders_test.cpp54 shaders::LinearEffect{.inputDataspace = ui::Dataspace::V0_SRGB_LINEAR, in TEST_F()
55 .outputDataspace = ui::Dataspace::V0_SRGB_LINEAR, in TEST_F()
56 .fakeOutputDataspace = ui::Dataspace::UNKNOWN}; in TEST_F()
77 shaders::LinearEffect{.inputDataspace = ui::Dataspace::V0_SRGB, in TEST_F()
78 .outputDataspace = ui::Dataspace::DISPLAY_P3, in TEST_F()
79 .fakeOutputDataspace = ui::Dataspace::UNKNOWN}; in TEST_F()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DDisplayColorProfile.h33 MOCK_CONST_METHOD1(hasLegacyHdrSupport, bool(ui::Dataspace));
35 void(ui::Dataspace, ui::RenderIntent, ui::Dataspace*, ui::ColorMode*,
45 MOCK_CONST_METHOD1(isDataspaceSupported, bool(ui::Dataspace));
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplayColorProfile.h58 virtual bool hasLegacyHdrSupport(ui::Dataspace) const = 0;
62 virtual void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent,
63 ui::Dataspace* outDataspace, ui::ColorMode* outMode,
88 virtual bool isDataspaceSupported(ui::Dataspace) const = 0;
/frameworks/native/libs/tonemap/include/tonemap/
Dtonemap.h123 aidl::android::hardware::graphics::common::Dataspace sourceDataspace,
124 aidl::android::hardware::graphics::common::Dataspace destinationDataspace) = 0;
148 aidl::android::hardware::graphics::common::Dataspace sourceDataspace,
149 aidl::android::hardware::graphics::common::Dataspace destinationDataspace,
/frameworks/native/libs/ui/include/ui/
DColorMode.h48 inline Dataspace pickDataspaceFor(ColorMode colorMode) { in pickDataspaceFor()
54 return Dataspace::DISPLAY_P3; in pickDataspaceFor()
56 return Dataspace::V0_SRGB; in pickDataspaceFor()
/frameworks/native/libs/ui/include_types/ui/
DHdrRenderTypeUtils.h37 inline HdrRenderType getHdrRenderType(ui::Dataspace dataspace,
47 static const auto BT2020_LINEAR_EXT = static_cast<ui::Dataspace>(HAL_DATASPACE_STANDARD_BT2020 |
51 if ((dataspace == BT2020_LINEAR_EXT || dataspace == ui::Dataspace::V0_SCRGB) &&
/frameworks/native/libs/tonemap/tests/
Dtonemap_test.cpp68 Dataspace::BT2020_ITU_PQ, in TEST_F()
70 Dataspace::DISPLAY_P3); in TEST_F()
80 Dataspace::BT2020_ITU_HLG, in TEST_F()
82 Dataspace::DISPLAY_P3); in TEST_F()
/frameworks/native/libs/renderengine/skia/compat/
DGaneshBackendTexture.h38 sk_sp<SkImage> makeImage(SkAlphaType alphaType, ui::Dataspace dataspace,
42 sk_sp<SkSurface> makeSurface(ui::Dataspace dataspace, TextureReleaseProc releaseSurfaceProc,
48 void logFatalTexture(const char* msg, ui::Dataspace dataspace, SkColorType colorType);
DGraphiteBackendTexture.h43 sk_sp<SkImage> makeImage(SkAlphaType alphaType, ui::Dataspace dataspace,
47 sk_sp<SkSurface> makeSurface(ui::Dataspace dataspace, TextureReleaseProc releaseSurfaceProc,
53 void logFatalTexture(const char* msg, ui::Dataspace dataspace, SkColorType colorType);

12345678