/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | DisplayColorProfileTest.cpp | 28 return os << toString(value) << " (" << static_cast<std::underlying_type_t<Dataspace>>(value) in operator <<() 39 std::ostream& operator<<(std::ostream& os, const Dataspace& value) { in operator <<() 40 return os << toString(value) << " (" << static_cast<std::underlying_type_t<Dataspace>>(value) in operator <<() 45 return os << toString(value) << " (" << static_cast<std::underlying_type_t<Dataspace>>(value) in operator <<() 64 using ui::Dataspace; 399 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F() 400 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_HLG)); in TEST_F() 406 EXPECT_TRUE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F() 407 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_HLG)); in TEST_F() 413 EXPECT_TRUE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F() [all …]
|
D | DisplayTest.cpp | 148 ASSERT_EQ(ui::Dataspace::UNKNOWN, mDisplay.getState().dataspace); in TEST_F() 152 mDisplay.setColorMode(ui::ColorMode::NATIVE, ui::Dataspace::UNKNOWN, in TEST_F() 156 EXPECT_EQ(ui::Dataspace::UNKNOWN, mDisplay.getState().dataspace); in TEST_F() 160 EXPECT_CALL(*renderSurface, setBufferDataspace(ui::Dataspace::DISPLAY_P3)).Times(1); in TEST_F() 166 mDisplay.setColorMode(ui::ColorMode::DISPLAY_P3, ui::Dataspace::DISPLAY_P3, in TEST_F() 170 EXPECT_EQ(ui::Dataspace::DISPLAY_P3, mDisplay.getState().dataspace); in TEST_F() 178 virtualDisplay.setColorMode(ui::ColorMode::DISPLAY_P3, ui::Dataspace::DISPLAY_P3, in TEST_F() 182 EXPECT_EQ(ui::Dataspace::UNKNOWN, virtualDisplay.getState().dataspace); in TEST_F()
|
/frameworks/native/libs/ui/ |
D | PublicFormat.cpp | 24 using ui::Dataspace; 45 Dataspace dataspace; in mapPublicFormatToHalDataspace() 48 dataspace = Dataspace::V0_JFIF; in mapPublicFormatToHalDataspace() 53 dataspace = Dataspace::DEPTH; in mapPublicFormatToHalDataspace() 59 dataspace = Dataspace::ARBITRARY; in mapPublicFormatToHalDataspace() 64 dataspace = Dataspace::V0_JFIF; in mapPublicFormatToHalDataspace() 67 dataspace = Dataspace::DYNAMIC_DEPTH; in mapPublicFormatToHalDataspace() 70 dataspace = Dataspace::HEIF; in mapPublicFormatToHalDataspace() 74 dataspace = Dataspace::UNKNOWN; in mapPublicFormatToHalDataspace() 81 Dataspace ds = static_cast<Dataspace>(dataSpace); in mapHalFormatDataspaceToPublicFormat() [all …]
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2TestProperties.cpp | 269 const std::vector<android::ui::Dataspace> Hwc2TestDataspace::defaultDataspaces = { 270 android::ui::Dataspace::UNKNOWN, 273 const std::vector<android::ui::Dataspace> Hwc2TestDataspace::basicDataspaces = { 274 android::ui::Dataspace::UNKNOWN, 275 android::ui::Dataspace::V0_SRGB, 278 const std::vector<android::ui::Dataspace> Hwc2TestDataspace::completeDataspaces = { 279 android::ui::Dataspace::UNKNOWN, 280 android::ui::Dataspace::ARBITRARY, 281 android::ui::Dataspace::STANDARD_SHIFT, 282 android::ui::Dataspace::STANDARD_MASK, [all …]
|
/frameworks/native/libs/renderengine/ |
D | Description.cpp | 26 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/services/surfaceflinger/CompositionEngine/src/ |
D | DisplayColorProfile.cpp | 39 using ui::Dataspace; 68 Dataspace colorModeToDataspace(ColorMode mode) { in colorModeToDataspace() 71 return Dataspace::V0_SRGB; in colorModeToDataspace() 73 return Dataspace::DISPLAY_P3; in colorModeToDataspace() 75 return Dataspace::DISPLAY_BT2020; in colorModeToDataspace() 77 return Dataspace::BT2020_HLG; in colorModeToDataspace() 79 return Dataspace::BT2020_PQ; in colorModeToDataspace() 81 return Dataspace::UNKNOWN; in colorModeToDataspace() 327 const Dataspace dataspace = colorModeToDataspace(mode); in addColorMode() 328 const Dataspace hwcDataspace = colorModeToDataspace(hwcColorMode); in addColorMode() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | DisplayColorProfile.h | 42 bool hasLegacyHdrSupport(ui::Dataspace dataspace) const override; 43 void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent, 44 ui::Dataspace* outDataspace, ui::ColorMode* outMode, 69 ui::Dataspace dataspace; 74 static ColorModeKey getColorModeKey(ui::Dataspace dataspace, ui::RenderIntent intent) { in getColorModeKey()
|
D | OutputCompositionState.h | 92 ui::Dataspace dataspace{ui::Dataspace::UNKNOWN};
|
/frameworks/native/libs/renderengine/gl/ |
D | GLESRenderEngine.cpp | 117 using ui::Dataspace; 1078 void GLESRenderEngine::setSourceDataSpace(Dataspace source) { in setSourceDataSpace() 1082 void GLESRenderEngine::setOutputDataSpace(Dataspace dataspace) { in setOutputDataSpace() 1162 Dataspace inputStandard = static_cast<Dataspace>(mDataSpace & Dataspace::STANDARD_MASK); in drawMesh() 1163 Dataspace inputTransfer = static_cast<Dataspace>(mDataSpace & Dataspace::TRANSFER_MASK); in drawMesh() 1164 Dataspace outputStandard = in drawMesh() 1165 static_cast<Dataspace>(mOutputDataSpace & Dataspace::STANDARD_MASK); in drawMesh() 1166 Dataspace outputTransfer = in drawMesh() 1167 static_cast<Dataspace>(mOutputDataSpace & Dataspace::TRANSFER_MASK); in drawMesh() 1172 if (inputStandard != Dataspace::STANDARD_DCI_P3 && in drawMesh() [all …]
|
D | GLESRenderEngine.h | 121 void setSourceDataSpace(ui::Dataspace source) override; 122 void setOutputDataSpace(ui::Dataspace dataspace) override; 151 bool isHdrDataSpace(const ui::Dataspace dataSpace) const; 206 ui::Dataspace mDataSpace = ui::Dataspace::UNKNOWN; 209 ui::Dataspace mOutputDataSpace = ui::Dataspace::UNKNOWN;
|
/frameworks/base/cmds/screencap/ |
D | screencap.cpp | 77 static sk_sp<SkColorSpace> dataSpaceToColorSpace(ui::Dataspace d) in dataSpaceToColorSpace() 80 case ui::Dataspace::V0_SRGB: in dataSpaceToColorSpace() 82 case ui::Dataspace::DISPLAY_P3: in dataSpaceToColorSpace() 89 static uint32_t dataSpaceToInt(ui::Dataspace d) in dataSpaceToInt() 92 case ui::Dataspace::V0_SRGB: in dataSpaceToInt() 94 case ui::Dataspace::DISPLAY_P3: in dataSpaceToInt() 177 ui::Dataspace outDataspace; in main()
|
/frameworks/native/services/surfaceflinger/ |
D | BufferLayer.cpp | 251 return (mCurrentDataSpace == ui::Dataspace::BT2020_ITU_PQ && in isHdrY410() 259 const ui::Dataspace targetDataspace) { in setPerFrameData() 311 ui::Dataspace dataspace = isColorSpaceAgnostic() && targetDataspace != ui::Dataspace::UNKNOWN in setPerFrameData() 463 ui::Dataspace dataSpace = getDrawingDataSpace(); in latchBuffer() 466 case ui::Dataspace::SRGB: in latchBuffer() 467 dataSpace = ui::Dataspace::V0_SRGB; in latchBuffer() 469 case ui::Dataspace::SRGB_LINEAR: in latchBuffer() 470 dataSpace = ui::Dataspace::V0_SRGB_LINEAR; in latchBuffer() 472 case ui::Dataspace::JFIF: in latchBuffer() 473 dataSpace = ui::Dataspace::V0_JFIF; in latchBuffer() [all …]
|
D | RenderArea.h | 25 ui::Dataspace reqDataSpace, 75 ui::Dataspace getReqDataSpace() const { return mReqDataSpace; } in getReqDataSpace() 86 const ui::Dataspace mReqDataSpace;
|
D | ColorLayer.h | 38 bool setDataspace(ui::Dataspace dataspace) override; 42 const ui::Dataspace targetDataspace) override;
|
D | ColorLayer.cpp | 82 bool ColorLayer::setDataspace(ui::Dataspace dataspace) { in setDataspace() 97 const ui::Dataspace targetDataspace) { in setPerFrameData() 117 const ui::Dataspace dataspace = in setPerFrameData() 118 isColorSpaceAgnostic() && targetDataspace != ui::Dataspace::UNKNOWN ? targetDataspace in setPerFrameData()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/ |
D | DisplayColorProfile.h | 33 MOCK_CONST_METHOD1(hasLegacyHdrSupport, bool(ui::Dataspace)); 35 void(ui::Dataspace, ui::RenderIntent, ui::Dataspace*, ui::ColorMode*,
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | DisplayColorProfile.h | 49 virtual bool hasLegacyHdrSupport(ui::Dataspace) const = 0; 53 virtual void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent, 54 ui::Dataspace* outDataspace, ui::ColorMode* outMode,
|
D | LayerFECompositionState.h | 103 ui::Dataspace dataspace{ui::Dataspace::UNKNOWN};
|
/frameworks/base/libs/hwui/ |
D | DeviceInfo.cpp | 95 ui::Dataspace defaultDataspace, wcgDataspace; in queryWideColorGamutPreference() 102 case ui::Dataspace::DISPLAY_P3: in queryWideColorGamutPreference() 105 case ui::Dataspace::V0_SCRGB: in queryWideColorGamutPreference() 108 case ui::Dataspace::V0_SRGB: in queryWideColorGamutPreference()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | FramebufferSurface.cpp | 47 using ui::Dataspace; 96 Dataspace dataspace = Dataspace::UNKNOWN; in advanceFrame() 108 Dataspace& outDataspace) { in nextBuffer() 141 outDataspace = static_cast<Dataspace>(item.mDataSpace); in nextBuffer()
|
/frameworks/native/libs/gui/include/gui/ |
D | ISurfaceComposer.h | 215 bool& outCapturedSecureLayers, const ui::Dataspace reqDataspace, 245 return captureScreen(display, outBuffer, outIgnored, ui::Dataspace::V0_SRGB, 250 virtual status_t captureScreen(uint64_t displayOrLayerStack, ui::Dataspace* outDataspace, 267 const ui::Dataspace reqDataspace, const ui::PixelFormat reqPixelFormat, 279 return captureLayers(layerHandleBinder, outBuffer, ui::Dataspace::V0_SRGB, 321 virtual status_t getCompositionPreference(ui::Dataspace* defaultDataspace, 323 ui::Dataspace* wideColorGamutDataspace, 330 ui::Dataspace* outDataspace,
|
D | SurfaceComposerClient.h | 151 static status_t getCompositionPreference(ui::Dataspace* defaultDataspace, 153 ui::Dataspace* wideColorGamutDataspace, 393 float alpha, ui::Dataspace dataspace); 403 Transaction& setDataspace(const sp<SurfaceControl>& sc, ui::Dataspace dataspace); 493 ui::Dataspace* outDataspace, 519 static status_t capture(const sp<IBinder>& display, const ui::Dataspace reqDataSpace, 524 static status_t capture(const sp<IBinder>& display, const ui::Dataspace reqDataSpace, 528 static status_t capture(uint64_t displayOrLayerStack, ui::Dataspace* outDataspace, 530 static status_t captureLayers(const sp<IBinder>& layerHandle, const ui::Dataspace reqDataSpace, 534 const sp<IBinder>& layerHandle, const ui::Dataspace reqDataSpace,
|
/frameworks/native/libs/renderengine/include/renderengine/ |
D | DisplaySettings.h | 49 ui::Dataspace outputDataspace = ui::Dataspace::UNKNOWN;
|
D | LayerSettings.h | 111 ui::Dataspace sourceDataspace = ui::Dataspace::UNKNOWN;
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockComposer.h | 34 using android::hardware::graphics::common::V1_2::Dataspace; 79 MOCK_METHOD2(getDataspaceSaturationMatrix, Error(Dataspace, mat4*)); 85 Error(Display, uint32_t, const sp<GraphicBuffer>&, int, Dataspace, 102 MOCK_METHOD3(setLayerDataspace, Error(Display, Layer, Dataspace)); 117 Error(Display, PixelFormat*, Dataspace*, uint8_t*));
|