/hardware/interfaces/graphics/composer/2.2/utils/hal/include/composer-hal/2.2/ |
D | ComposerHal.h | 31 using common::V1_1::ColorMode; 58 Error getColorModes(Display display, hidl_vec<common::V1_0::ColorMode>* outModes) override { in getColorModes() 59 return getColorModes_2_2(display, reinterpret_cast<hidl_vec<ColorMode>*>(outModes)); in getColorModes() 63 Error setColorMode(Display display, common::V1_0::ColorMode mode) override { in setColorMode() 64 return setColorMode_2_2(display, static_cast<ColorMode>(mode), RenderIntent::COLORIMETRIC); in setColorMode() 87 virtual Error getColorModes_2_2(Display display, hidl_vec<ColorMode>* outModes) = 0; 88 virtual Error getRenderIntents(Display display, ColorMode mode, 90 virtual Error setColorMode_2_2(Display display, ColorMode mode, RenderIntent intent) = 0;
|
/hardware/interfaces/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/ |
D | ComposerHal.h | 29 using common::V1_2::ColorMode; 45 Error setColorMode_2_2(Display display, common::V1_1::ColorMode mode, in setColorMode_2_2() 47 return setColorMode_2_3(display, static_cast<ColorMode>(mode), intent); in setColorMode_2_2() 50 Error getColorModes_2_2(Display display, hidl_vec<common::V1_1::ColorMode>* outModes) override { in getColorModes_2_2() 51 return getColorModes_2_3(display, reinterpret_cast<hidl_vec<ColorMode>*>(outModes)); in getColorModes_2_2() 85 virtual Error setColorMode_2_3(Display display, ColorMode mode, RenderIntent intent) = 0; 87 virtual Error getRenderIntents_2_3(Display display, ColorMode mode, 90 virtual Error getColorModes_2_3(Display display, hidl_vec<ColorMode>* outModes) = 0;
|
/hardware/qcom/sm8150/display/sdm/libs/hwc2/ |
D | hwc_display_pluggable.h | 52 virtual HWC2::Error GetColorModes(uint32_t *out_num_modes, ColorMode *out_modes); 53 virtual HWC2::Error GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, 55 virtual HWC2::Error SetColorMode(ColorMode mode); 56 virtual HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent);
|
D | hwc_display.h | 45 using android::hardware::graphics::common::V1_1::ColorMode; 82 uint32_t GetRenderIntentCount(ColorMode mode); 83 HWC2::Error GetColorModes(uint32_t *out_num_modes, ColorMode *out_modes); 84 HWC2::Error GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, RenderIntent *out_modes); 85 HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 90 ColorMode GetCurrentColorMode() { return current_color_mode_; } in GetCurrentColorMode() 92 HWC2::Error CacheColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 104 HWC2::Error ValidateColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 106 ColorMode *color_mode, DynamicRangeType *dynamic_range); 110 ColorMode current_color_mode_ = ColorMode::NATIVE; [all …]
|
D | hwc_display_virtual.h | 54 virtual HWC2::Error SetColorMode(ColorMode mode); 55 virtual HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in SetColorModeWithRenderIntent()
|
D | hwc_display_builtin.h | 65 virtual HWC2::Error GetColorModes(uint32_t *out_num_modes, ColorMode *out_modes); 66 virtual HWC2::Error SetColorMode(ColorMode mode); 67 virtual HWC2::Error GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, 69 virtual HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent);
|
D | hwc_display.cpp | 89 uint32_t HWCColorMode::GetRenderIntentCount(ColorMode mode) { in GetRenderIntentCount() 95 HWC2::Error HWCColorMode::GetColorModes(uint32_t *out_num_modes, ColorMode *out_modes) { in GetColorModes() 104 HWC2::Error HWCColorMode::GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, in GetRenderIntents() 117 HWC2::Error HWCColorMode::ValidateColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in ValidateColorModeWithRenderIntent() 118 if (mode < ColorMode::NATIVE || mode > ColorMode::BT2100_HLG) { in ValidateColorModeWithRenderIntent() 132 HWC2::Error HWCColorMode::SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in SetColorModeWithRenderIntent() 159 HWC2::Error HWCColorMode::CacheColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in CacheColorModeWithRenderIntent() 196 current_color_mode_ == ColorMode::DISPLAY_P3 && in ApplyCurrentColorModeWithRenderIntent() 225 bool from_client, ColorMode *color_mode, DynamicRangeType *dynamic_range) { in SetPreferredColorModeInternal() 227 ColorMode mode = ColorMode::NATIVE; in SetPreferredColorModeInternal() [all …]
|
D | hwc_display_pluggable.cpp | 295 HWC2::Error HWCDisplayPluggable::GetColorModes(uint32_t *out_num_modes, ColorMode *out_modes) { in GetColorModes() 304 HWC2::Error HWCDisplayPluggable::GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, in GetRenderIntents() 314 HWC2::Error HWCDisplayPluggable::SetColorMode(ColorMode mode) { in SetColorMode() 318 HWC2::Error HWCDisplayPluggable::SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in SetColorModeWithRenderIntent()
|
/hardware/qcom/sdm845/display/sdm/libs/hwc2/ |
D | hwc_display.h | 42 using android::hardware::graphics::common::V1_1::ColorMode; 166 uint32_t GetRenderIntentCount(ColorMode mode); 167 HWC2::Error GetColorModes(uint32_t *out_num_modes, ColorMode *out_modes); 168 HWC2::Error GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, RenderIntent *out_modes); 169 HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 174 ColorMode GetCurrentColorMode() { return current_color_mode_; } in GetCurrentColorMode() 179 void FindRenderIntent(const ColorMode &mode, const std::string &mode_string); 190 ColorMode current_color_mode_ = ColorMode::NATIVE; 194 std::map<ColorMode, RenderIntentMap> color_mode_map_ = {}; 311 ColorMode GetCurrentColorMode() { return current_color_mode_; } in GetCurrentColorMode() [all …]
|
D | hwc_display_primary.h | 62 virtual HWC2::Error GetColorModes(uint32_t *out_num_modes, ColorMode *out_modes); 63 virtual HWC2::Error SetColorMode(ColorMode mode); 65 virtual HWC2::Error GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, 67 virtual HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent);
|
D | hwc_display.cpp | 72 uint32_t HWCColorMode::GetRenderIntentCount(ColorMode mode) { in GetRenderIntentCount() 78 HWC2::Error HWCColorMode::GetColorModes(uint32_t *out_num_modes, ColorMode *out_modes) { in GetColorModes() 87 HWC2::Error HWCColorMode::GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, in GetRenderIntents() 100 HWC2::Error HWCColorMode::SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in SetColorModeWithRenderIntent() 102 if (mode < ColorMode::NATIVE || mode > ColorMode::BT2100_HLG) { in SetColorModeWithRenderIntent() 381 void HWCColorMode::FindRenderIntent(const ColorMode &mode, const std::string &mode_string) { in FindRenderIntent() 395 color_mode_map_[ColorMode::NATIVE][RenderIntent::COLORIMETRIC] = "hal_native_identity"; in PopulateColorModes() 423 color_mode_map_[ColorMode::NATIVE][RenderIntent::COLORIMETRIC] = mode_string; in PopulateColorModes() 428 color_mode_map_[ColorMode::SRGB][RenderIntent::COLORIMETRIC] = mode_string; in PopulateColorModes() 431 color_mode_map_[ColorMode::SRGB][RenderIntent::ENHANCE] = mode_string; in PopulateColorModes() [all …]
|
/hardware/interfaces/graphics/composer/2.3/utils/vts/include/composer-vts/2.3/ |
D | ComposerVts.h | 35 using common::V1_2::ColorMode; 81 std::vector<ColorMode> getColorModes_2_3(Display display); 83 void setColorMode_2_3(Display display, ColorMode mode, RenderIntent intent); 85 std::vector<RenderIntent> getRenderIntents_2_3(Display display, ColorMode mode);
|
/hardware/interfaces/graphics/composer/2.3/vts/functional/ |
D | VtsHalGraphicsComposerV2_3TargetTest.cpp | 42 using common::V1_2::ColorMode; 321 std::vector<ColorMode> modes = mComposerClient->getColorModes_2_3(mPrimaryDisplay); in TEST_P() 328 case ColorMode::BT2100_PQ: in TEST_P() 329 case ColorMode::BT2100_HLG: in TEST_P() 351 std::vector<ColorMode> modes = mComposerClient->getColorModes_2_3(mPrimaryDisplay); in TEST_P() 367 mPrimaryDisplay, static_cast<ColorMode>(-1), in TEST_P() 375 std::vector<ColorMode> colorModes = mComposerClient->getColorModes_2_3(mPrimaryDisplay); in TEST_P() 377 auto native = std::find(colorModes.cbegin(), colorModes.cend(), ColorMode::NATIVE); in TEST_P() 397 std::vector<ColorMode> colorModes = mComposerClient->getColorModes_2_3(mPrimaryDisplay); in TEST_P() 407 ASSERT_NO_FATAL_FAILURE(mComposerClient->setColorMode_2_3(mPrimaryDisplay, ColorMode::NATIVE, in TEST_P() [all …]
|
/hardware/interfaces/graphics/composer/2.2/vts/functional/ |
D | VtsHalGraphicsComposerV2_2TargetTest.cpp | 40 using common::V1_1::ColorMode; 567 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_P() 569 auto nativeMode = std::find(modes.cbegin(), modes.cend(), ColorMode::NATIVE); in TEST_P() 589 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_P() 596 case ColorMode::BT2100_PQ: in TEST_P() 597 case ColorMode::BT2100_HLG: in TEST_P() 619 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_P() 635 mPrimaryDisplay, static_cast<ColorMode>(-1), in TEST_P() 643 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_P() 652 mComposerClient->setColorMode(mPrimaryDisplay, ColorMode::NATIVE, RenderIntent::COLORIMETRIC); in TEST_P() [all …]
|
D | VtsHalGraphicsComposerV2_2ReadbackTest.cpp | 145 std::vector<ColorMode> mTestColorModes; 174 for (ColorMode mode : tmpModes) { in setTestColorModes() 191 for (ColorMode mode : mTestColorModes) { in TEST_P() 253 for (ColorMode mode : mTestColorModes) { in TEST_P() 325 for (ColorMode mode : mTestColorModes) { in TEST_P() 390 for (ColorMode mode : mTestColorModes) { in TEST_P() 507 for (ColorMode mode : mTestColorModes) { in TEST_P() 630 for (ColorMode mode : mTestColorModes) { in TEST_P() 715 for (ColorMode mode : mTestColorModes) { in TEST_P() 776 for (ColorMode mode : mTestColorModes) { in TEST_P() [all …]
|
/hardware/interfaces/graphics/composer/2.2/utils/passthrough/include/composer-passthrough/2.2/ |
D | HwcHal.h | 37 using common::V1_1::ColorMode; 168 Error getColorModes_2_2(Display display, hidl_vec<ColorMode>* outModes) override { in getColorModes_2_2() 170 reinterpret_cast<hidl_vec<common::V1_0::ColorMode>*>(outModes)); in getColorModes_2_2() 173 Error getRenderIntents(Display display, ColorMode mode, in getRenderIntents() 180 if (mode < ColorMode::NATIVE || mode > ColorMode::DISPLAY_P3) { in getRenderIntents() 208 Error setColorMode_2_2(Display display, ColorMode mode, RenderIntent intent) override { in setColorMode_2_2() 216 return setColorMode(display, static_cast<common::V1_0::ColorMode>(mode)); in setColorMode_2_2()
|
/hardware/interfaces/graphics/composer/2.2/utils/vts/include/composer-vts/2.2/ |
D | ComposerVts.h | 40 using common::V1_1::ColorMode; 84 std::vector<ColorMode> getColorModes(Display display); 85 std::vector<RenderIntent> getRenderIntents(Display display, ColorMode mode); 86 void setColorMode(Display display, ColorMode mode, RenderIntent intent);
|
D | ReadbackVts.h | 147 static std::string getColorModeString(ColorMode mode); 151 static Dataspace getDataspaceForColorMode(ColorMode mode); 168 static const std::vector<ColorMode> colorModes;
|
/hardware/interfaces/graphics/composer/2.2/utils/vts/ |
D | ReadbackVts.cpp | 37 const std::vector<ColorMode> ReadbackHelper::colorModes = {ColorMode::SRGB, ColorMode::DISPLAY_P3}; 41 std::string ReadbackHelper::getColorModeString(ColorMode mode) { in getColorModeString() 43 case ColorMode::SRGB: in getColorModeString() 45 case ColorMode::DISPLAY_P3: in getColorModeString() 65 Dataspace ReadbackHelper::getDataspaceForColorMode(ColorMode mode) { in getDataspaceForColorMode() 67 case ColorMode::DISPLAY_P3: in getDataspaceForColorMode() 69 case ColorMode::SRGB: in getDataspaceForColorMode()
|
D | ComposerVts.cpp | 148 std::vector<ColorMode> ComposerClient::getColorModes(Display display) { in getColorModes() 149 std::vector<ColorMode> modes; in getColorModes() 157 std::vector<RenderIntent> ComposerClient::getRenderIntents(Display display, ColorMode mode) { in getRenderIntents() 166 void ComposerClient::setColorMode(Display display, ColorMode mode, RenderIntent intent) { in setColorMode()
|
/hardware/interfaces/graphics/composer/2.3/utils/vts/ |
D | ComposerVts.cpp | 64 std::vector<ColorMode> ComposerClient::getColorModes_2_3(Display display) { in getColorModes_2_3() 65 std::vector<ColorMode> modes; in getColorModes_2_3() 73 void ComposerClient::setColorMode_2_3(Display display, ColorMode mode, RenderIntent intent) { in setColorMode_2_3() 78 std::vector<RenderIntent> ComposerClient::getRenderIntents_2_3(Display display, ColorMode mode) { in getRenderIntents_2_3()
|
/hardware/interfaces/graphics/composer/2.1/utils/vts/include/composer-vts/2.1/ |
D | ComposerVts.h | 42 using android::hardware::graphics::common::V1_0::ColorMode; 98 std::vector<ColorMode> getColorModes(Display display); 110 void setColorMode(Display display, ColorMode mode);
|
/hardware/interfaces/graphics/composer/2.3/utils/passthrough/include/composer-passthrough/2.3/ |
D | HwcHal.h | 38 using common::V1_2::ColorMode; 86 Error setColorMode_2_3(Display display, ColorMode mode, RenderIntent intent) override { in setColorMode_2_3() 87 return setColorMode_2_2(display, static_cast<common::V1_1::ColorMode>(mode), intent); in setColorMode_2_3() 90 Error getRenderIntents_2_3(Display display, ColorMode mode, in getRenderIntents_2_3() 92 return getRenderIntents(display, static_cast<common::V1_1::ColorMode>(mode), outIntents); in getRenderIntents_2_3() 95 Error getColorModes_2_3(Display display, hidl_vec<ColorMode>* outModes) override { in getColorModes_2_3() 97 reinterpret_cast<hidl_vec<common::V1_1::ColorMode>*>(outModes)); in getColorModes_2_3()
|
/hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/ |
D | ComposerHal.h | 39 using common::V1_0::ColorMode; 82 virtual Error getColorModes(Display display, hidl_vec<ColorMode>* outModes) = 0; 94 virtual Error setColorMode(Display display, ColorMode mode) = 0;
|
/hardware/interfaces/graphics/common/1.1/ |
D | types.hal | 20 import @1.0::ColorMode; 181 enum ColorMode : @1.0::ColorMode { 246 * modes. It is ignored when the color mode is ColorMode::NATIVE, because 247 * ColorMode::NATIVE colors are already display colors. 257 * ColorMode::NATIVE is the only supported color mode.
|