/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | DisplayColorProfileTest.cpp | 35 using ui::Dataspace; 370 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F() 371 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_HLG)); in TEST_F() 377 EXPECT_TRUE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F() 378 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_HLG)); in TEST_F() 384 EXPECT_TRUE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F() 385 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_HLG)); in TEST_F() 391 EXPECT_FALSE(profile.hasLegacyHdrSupport(Dataspace::BT2020_PQ)); in TEST_F() 392 EXPECT_TRUE(profile.hasLegacyHdrSupport(Dataspace::BT2020_HLG)); in TEST_F() 402 const std::array<std::tuple<Dataspace, ColorMode, RenderIntent>, 15>& expected) { in checkGetBestColorMode() argument [all …]
|
D | OutputTest.cpp | 385 getTargetDataspace(ui::ColorMode::DISPLAY_P3, ui::Dataspace::DISPLAY_P3, in TEST_F() 386 ui::Dataspace::UNKNOWN)) in TEST_F() 387 .WillOnce(Return(ui::Dataspace::UNKNOWN)); in TEST_F() 388 EXPECT_CALL(*mRenderSurface, setBufferDataspace(ui::Dataspace::DISPLAY_P3)).Times(1); in TEST_F() 390 mOutput->setColorProfile(ColorProfile{ui::ColorMode::DISPLAY_P3, ui::Dataspace::DISPLAY_P3, in TEST_F() 392 ui::Dataspace::UNKNOWN}); in TEST_F() 395 EXPECT_EQ(ui::Dataspace::DISPLAY_P3, mOutput->getState().dataspace); in TEST_F() 397 EXPECT_EQ(ui::Dataspace::UNKNOWN, mOutput->getState().targetDataspace); in TEST_F() 406 getTargetDataspace(ui::ColorMode::DISPLAY_P3, ui::Dataspace::DISPLAY_P3, in TEST_F() 407 ui::Dataspace::UNKNOWN)) in TEST_F() [all …]
|
D | DisplayTest.cpp | 433 .WillRepeatedly(Return(ui::Dataspace::UNKNOWN)); in TEST_F() 437 ASSERT_EQ(ui::Dataspace::UNKNOWN, mDisplay->getState().dataspace); in TEST_F() 439 ASSERT_EQ(ui::Dataspace::UNKNOWN, mDisplay->getState().targetDataspace); in TEST_F() 442 mDisplay->setColorProfile(ColorProfile{ui::ColorMode::NATIVE, ui::Dataspace::UNKNOWN, in TEST_F() 443 ui::RenderIntent::COLORIMETRIC, ui::Dataspace::UNKNOWN}); in TEST_F() 446 EXPECT_EQ(ui::Dataspace::UNKNOWN, mDisplay->getState().dataspace); in TEST_F() 448 EXPECT_EQ(ui::Dataspace::UNKNOWN, mDisplay->getState().targetDataspace); in TEST_F() 451 EXPECT_CALL(*renderSurface, setBufferDataspace(ui::Dataspace::DISPLAY_P3)).Times(1); in TEST_F() 457 mDisplay->setColorProfile(ColorProfile{ui::ColorMode::DISPLAY_P3, ui::Dataspace::DISPLAY_P3, in TEST_F() 459 ui::Dataspace::UNKNOWN}); in TEST_F() [all …]
|
/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/CompositionEngine/src/ |
D | DisplayColorProfile.cpp | 39 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() 327 const Dataspace dataspace = colorModeToDataspace(mode); in addColorMode() 328 const Dataspace hwcDataspace = colorModeToDataspace(hwcColorMode); in addColorMode() [all …]
|
D | Output.cpp | 152 ui::Dataspace targetDataspace = in setColorProfile() 626 ui::Dataspace Output::getBestDataspace(ui::Dataspace* outHdrDataSpace, in getBestDataspace() 628 ui::Dataspace bestDataSpace = ui::Dataspace::V0_SRGB; in getBestDataspace() 629 *outHdrDataSpace = ui::Dataspace::UNKNOWN; in getBestDataspace() 633 case ui::Dataspace::V0_SCRGB: in getBestDataspace() 634 case ui::Dataspace::V0_SCRGB_LINEAR: in getBestDataspace() 635 case ui::Dataspace::BT2020: in getBestDataspace() 636 case ui::Dataspace::BT2020_ITU: in getBestDataspace() 637 case ui::Dataspace::BT2020_LINEAR: in getBestDataspace() 638 case ui::Dataspace::DISPLAY_BT2020: in getBestDataspace() [all …]
|
/frameworks/av/media/libstagefright/ |
D | FrameCaptureLayer.cpp | 38 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/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/include/compositionengine/mock/ |
D | DisplayColorProfile.h | 33 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)); 47 ui::Dataspace(ui::ColorMode, ui::Dataspace, ui::Dataspace));
|
/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, 57 bool isDataspaceSupported(ui::Dataspace) const override; 58 ui::Dataspace getTargetDataspace(ui::ColorMode, ui::Dataspace, ui::Dataspace) const override; 71 ui::Dataspace dataspace; 76 static ColorModeKey getColorModeKey(ui::Dataspace dataspace, ui::RenderIntent intent) { in getColorModeKey()
|
D | OutputCompositionState.h | 114 ui::Dataspace dataspace{ui::Dataspace::UNKNOWN}; 117 ui::Dataspace targetDataspace{ui::Dataspace::UNKNOWN};
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | DisplayColorProfile.h | 57 virtual bool hasLegacyHdrSupport(ui::Dataspace) const = 0; 61 virtual void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent, 62 ui::Dataspace* outDataspace, ui::ColorMode* outMode, 87 virtual bool isDataspaceSupported(ui::Dataspace) const = 0; 90 virtual ui::Dataspace getTargetDataspace(ui::ColorMode, ui::Dataspace, 91 ui::Dataspace colorSpaceAgnosticDataspace) const = 0;
|
D | Output.h | 131 ui::Dataspace dataspace{ui::Dataspace::UNKNOWN}; 133 ui::Dataspace colorSpaceAgnosticDataspace{ui::Dataspace::UNKNOWN}; 277 bool supportsProtectedContent, Region& clearRegion, ui::Dataspace outputDataspace) = 0;
|
D | CompositionRefreshArgs.h | 56 ui::Dataspace colorSpaceAgnosticDataspace{ui::Dataspace::UNKNOWN};
|
/frameworks/native/libs/renderengine/gl/ |
D | GLESRenderEngine.cpp | 120 using ui::Dataspace; 1241 void GLESRenderEngine::setSourceDataSpace(Dataspace source) { in setSourceDataSpace() 1245 void GLESRenderEngine::setOutputDataSpace(Dataspace dataspace) { in setOutputDataSpace() 1327 Dataspace inputStandard = static_cast<Dataspace>(mDataSpace & Dataspace::STANDARD_MASK); in drawMesh() 1328 Dataspace inputTransfer = static_cast<Dataspace>(mDataSpace & Dataspace::TRANSFER_MASK); in drawMesh() 1329 Dataspace outputStandard = in drawMesh() 1330 static_cast<Dataspace>(mOutputDataSpace & Dataspace::STANDARD_MASK); in drawMesh() 1331 Dataspace outputTransfer = in drawMesh() 1332 static_cast<Dataspace>(mOutputDataSpace & Dataspace::TRANSFER_MASK); in drawMesh() 1337 if (inputStandard != Dataspace::STANDARD_DCI_P3 && in drawMesh() [all …]
|
D | GLESRenderEngine.h | 133 bool isHdrDataSpace(const ui::Dataspace dataSpace) const; 168 void setSourceDataSpace(ui::Dataspace source); 169 void setOutputDataSpace(ui::Dataspace dataspace); 216 ui::Dataspace mDataSpace = ui::Dataspace::UNKNOWN; 219 ui::Dataspace mOutputDataSpace = ui::Dataspace::UNKNOWN;
|
/frameworks/base/cmds/screencap/ |
D | screencap.cpp | 78 static sk_sp<SkColorSpace> dataSpaceToColorSpace(ui::Dataspace d) in dataSpaceToColorSpace() 81 case ui::Dataspace::V0_SRGB: in dataSpaceToColorSpace() 83 case ui::Dataspace::DISPLAY_P3: in dataSpaceToColorSpace() 90 static uint32_t dataSpaceToInt(ui::Dataspace d) in dataSpaceToInt() 93 case ui::Dataspace::V0_SRGB: in dataSpaceToInt() 95 case ui::Dataspace::DISPLAY_P3: in dataSpaceToInt() 205 ui::Dataspace outDataspace; in main()
|
/frameworks/native/services/surfaceflinger/ |
D | BufferLayer.cpp | 273 return (mBufferInfo.mDataspace == ui::Dataspace::BT2020_ITU_PQ && in isHdrY410() 753 ui::Dataspace BufferLayer::getDataSpace() const { in getDataSpace() 757 ui::Dataspace BufferLayer::translateDataspace(ui::Dataspace dataspace) { in translateDataspace() 758 ui::Dataspace updatedDataspace = dataspace; in translateDataspace() 761 case ui::Dataspace::SRGB: in translateDataspace() 762 updatedDataspace = ui::Dataspace::V0_SRGB; in translateDataspace() 764 case ui::Dataspace::SRGB_LINEAR: in translateDataspace() 765 updatedDataspace = ui::Dataspace::V0_SRGB_LINEAR; in translateDataspace() 767 case ui::Dataspace::JFIF: in translateDataspace() 768 updatedDataspace = ui::Dataspace::V0_JFIF; in translateDataspace() [all …]
|
D | BufferLayer.h | 115 ui::Dataspace getDataSpace() const override; 162 ui::Dataspace mDataspace{ui::Dataspace::UNKNOWN}; 205 ui::Dataspace translateDataspace(ui::Dataspace dataspace);
|
D | RenderArea.h | 27 ui::Dataspace reqDataSpace, const Rect& displayViewport, 77 ui::Dataspace getReqDataSpace() const { return mReqDataSpace; } in getReqDataSpace() 91 const ui::Dataspace mReqDataSpace;
|
D | SurfaceFlingerProperties.h | 65 android::hardware::graphics::common::V1_2::Dataspace defaultValue); 71 android::hardware::graphics::common::V1_2::Dataspace defaultValue); 77 android::hardware::graphics::common::V1_2::Dataspace defaultValue);
|
/frameworks/native/libs/gui/include/gui/ |
D | ISurfaceComposer.h | 270 bool& outCapturedSecureLayers, ui::Dataspace reqDataspace, 301 return captureScreen(display, outBuffer, outIgnored, ui::Dataspace::V0_SRGB, 306 virtual status_t captureScreen(uint64_t displayOrLayerStack, ui::Dataspace* outDataspace, 323 ui::Dataspace reqDataspace, ui::PixelFormat reqPixelFormat, const Rect& sourceCrop, 334 return captureLayers(layerHandleBinder, outBuffer, ui::Dataspace::V0_SRGB, 376 virtual status_t getCompositionPreference(ui::Dataspace* defaultDataspace, 378 ui::Dataspace* wideColorGamutDataspace, 385 ui::Dataspace* outDataspace,
|
D | SurfaceComposerClient.h | 173 static status_t getCompositionPreference(ui::Dataspace* defaultDataspace, 175 ui::Dataspace* wideColorGamutDataspace, 462 float alpha, ui::Dataspace dataspace); 472 Transaction& setDataspace(const sp<SurfaceControl>& sc, ui::Dataspace dataspace); 571 ui::Dataspace* outDataspace, 597 static status_t capture(const sp<IBinder>& display, ui::Dataspace reqDataSpace, 602 static status_t capture(const sp<IBinder>& display, ui::Dataspace reqDataSpace, 606 static status_t capture(uint64_t displayOrLayerStack, ui::Dataspace* outDataspace, 608 static status_t captureLayers(const sp<IBinder>& layerHandle, ui::Dataspace reqDataSpace, 612 const sp<IBinder>& layerHandle, ui::Dataspace reqDataSpace,
|
D | LayerState.h | 131 dataspace(ui::Dataspace::UNKNOWN), in layer_state_t() 136 bgColorDataspace(ui::Dataspace::UNKNOWN), in layer_state_t() 196 ui::Dataspace dataspace; 214 ui::Dataspace bgColorDataspace;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | FramebufferSurface.cpp | 51 using ui::Dataspace; 105 Dataspace dataspace = Dataspace::UNKNOWN; in advanceFrame() 117 Dataspace& outDataspace) { in nextBuffer() 150 outDataspace = static_cast<Dataspace>(item.mDataSpace); in nextBuffer()
|