Home
last modified time | relevance | path

Searched refs:ColorMode (Results 1 – 25 of 46) sorted by relevance

12

/hardware/interfaces/graphics/composer/2.2/utils/hal/include/composer-hal/2.2/
DComposerHal.h31 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;
DComposerClient.h127 hidl_vec<ColorMode> modes; in getColorModes_2_2()
133 Return<void> getRenderIntents(Display display, ColorMode mode, in getRenderIntents()
141 Return<Error> setColorMode_2_2(Display display, ColorMode mode, RenderIntent intent) override { in setColorMode_2_2()
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_display.h45 using android::hardware::graphics::common::V1_1::ColorMode;
77 uint32_t GetRenderIntentCount(ColorMode mode);
78 HWC2::Error GetColorModes(uint32_t *out_num_modes, ColorMode *out_modes);
79 HWC2::Error GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, RenderIntent *out_modes);
80 HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent);
85 ColorMode GetCurrentColorMode() { return current_color_mode_; } in GetCurrentColorMode()
87 HWC2::Error CacheColorModeWithRenderIntent(ColorMode mode, RenderIntent intent);
98 HWC2::Error ValidateColorModeWithRenderIntent(ColorMode mode, RenderIntent intent);
100 ColorMode *color_mode, DynamicRangeType *dynamic_range);
104 ColorMode current_color_mode_ = ColorMode::NATIVE;
[all …]
Dhwc_display_pluggable.h52 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);
Dhwc_display_builtin.h65 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);
Dhwc_display.cpp83 uint32_t HWCColorMode::GetRenderIntentCount(ColorMode mode) { in GetRenderIntentCount()
89 HWC2::Error HWCColorMode::GetColorModes(uint32_t *out_num_modes, ColorMode *out_modes) { in GetColorModes()
98 HWC2::Error HWCColorMode::GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, in GetRenderIntents()
111 HWC2::Error HWCColorMode::ValidateColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in ValidateColorModeWithRenderIntent()
112 if (mode < ColorMode::NATIVE || mode > ColorMode::BT2100_HLG) { in ValidateColorModeWithRenderIntent()
126 HWC2::Error HWCColorMode::SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in SetColorModeWithRenderIntent()
153 HWC2::Error HWCColorMode::CacheColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in CacheColorModeWithRenderIntent()
190 current_color_mode_ == ColorMode::DISPLAY_P3 && in ApplyCurrentColorModeWithRenderIntent()
219 bool from_client, ColorMode *color_mode, DynamicRangeType *dynamic_range) { in SetPreferredColorModeInternal()
221 ColorMode mode = ColorMode::NATIVE; in SetPreferredColorModeInternal()
[all …]
Dhwc_display_pluggable.cpp295 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/interfaces/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/
DComposerHal.h29 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;
DComposerClient.h49 Return<Error> setColorMode_2_3(Display display, ColorMode mode, RenderIntent intent) override { in setColorMode_2_3()
53 Return<void> getRenderIntents_2_3(Display display, ColorMode mode, in getRenderIntents_2_3()
63 hidl_vec<ColorMode> modes; in getColorModes_2_3()
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_display.h42 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 …]
Dhwc_display_primary.h62 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);
Dhwc_display.cpp72 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()
380 void HWCColorMode::FindRenderIntent(const ColorMode &mode, const std::string &mode_string) { in FindRenderIntent()
394 color_mode_map_[ColorMode::NATIVE][RenderIntent::COLORIMETRIC] = "hal_native_identity"; in PopulateColorModes()
422 color_mode_map_[ColorMode::NATIVE][RenderIntent::COLORIMETRIC] = mode_string; in PopulateColorModes()
427 color_mode_map_[ColorMode::SRGB][RenderIntent::COLORIMETRIC] = mode_string; in PopulateColorModes()
430 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/
DComposerVts.h36 using common::V1_2::ColorMode;
84 std::vector<ColorMode> getColorModes_2_3(Display display);
86 void setColorMode_2_3(Display display, ColorMode mode, RenderIntent intent);
88 std::vector<RenderIntent> getRenderIntents_2_3(Display display, ColorMode mode);
/hardware/interfaces/graphics/composer/2.2/vts/functional/
DVtsHalGraphicsComposerV2_2TargetTest.cpp38 using common::V1_1::ColorMode;
583 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_F()
585 auto nativeMode = std::find(modes.cbegin(), modes.cend(), ColorMode::NATIVE); in TEST_F()
605 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_F()
612 case ColorMode::BT2100_PQ: in TEST_F()
613 case ColorMode::BT2100_HLG: in TEST_F()
635 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_F()
651 mPrimaryDisplay, static_cast<ColorMode>(-1), in TEST_F()
659 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_F()
668 mComposerClient->setColorMode(mPrimaryDisplay, ColorMode::NATIVE, RenderIntent::COLORIMETRIC); in TEST_F()
[all …]
/hardware/interfaces/graphics/composer/2.3/vts/functional/
DVtsHalGraphicsComposerV2_3TargetTest.cpp40 using common::V1_2::ColorMode;
337 std::vector<ColorMode> modes = mComposerClient->getColorModes_2_3(mPrimaryDisplay); in TEST_F()
344 case ColorMode::BT2100_PQ: in TEST_F()
345 case ColorMode::BT2100_HLG: in TEST_F()
367 std::vector<ColorMode> modes = mComposerClient->getColorModes_2_3(mPrimaryDisplay); in TEST_F()
383 mPrimaryDisplay, static_cast<ColorMode>(-1), in TEST_F()
391 std::vector<ColorMode> colorModes = mComposerClient->getColorModes_2_3(mPrimaryDisplay); in TEST_F()
393 auto native = std::find(colorModes.cbegin(), colorModes.cend(), ColorMode::NATIVE); in TEST_F()
413 std::vector<ColorMode> colorModes = mComposerClient->getColorModes_2_3(mPrimaryDisplay); in TEST_F()
423 ASSERT_NO_FATAL_FAILURE(mComposerClient->setColorMode_2_3(mPrimaryDisplay, ColorMode::NATIVE, in TEST_F()
[all …]
/hardware/interfaces/graphics/composer/2.2/utils/vts/include/composer-vts/2.2/
DComposerVts.h41 using common::V1_1::ColorMode;
83 std::vector<ColorMode> getColorModes(Display display);
84 std::vector<RenderIntent> getRenderIntents(Display display, ColorMode mode);
85 void setColorMode(Display display, ColorMode mode, RenderIntent intent);
/hardware/interfaces/graphics/composer/2.2/utils/passthrough/include/composer-passthrough/2.2/
DHwcHal.h37 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()
200 Error setColorMode_2_2(Display display, ColorMode mode, RenderIntent intent) override { in setColorMode_2_2()
205 return setColorMode(display, static_cast<common::V1_0::ColorMode>(mode)); in setColorMode_2_2()
/hardware/interfaces/graphics/composer/2.3/utils/vts/
DComposerVts.cpp71 std::vector<ColorMode> ComposerClient::getColorModes_2_3(Display display) { in getColorModes_2_3()
72 std::vector<ColorMode> modes; in getColorModes_2_3()
80 void ComposerClient::setColorMode_2_3(Display display, ColorMode mode, RenderIntent intent) { in setColorMode_2_3()
85 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/
DComposerVts.h41 using android::hardware::graphics::common::V1_0::ColorMode;
97 std::vector<ColorMode> getColorModes(Display display);
109 void setColorMode(Display display, ColorMode mode);
/hardware/interfaces/graphics/composer/2.2/utils/vts/
DComposerVts.cpp149 std::vector<ColorMode> ComposerClient::getColorModes(Display display) { in getColorModes()
150 std::vector<ColorMode> modes; in getColorModes()
158 std::vector<RenderIntent> ComposerClient::getRenderIntents(Display display, ColorMode mode) { in getRenderIntents()
167 void ComposerClient::setColorMode(Display display, ColorMode mode, RenderIntent intent) { in setColorMode()
/hardware/interfaces/graphics/composer/2.3/utils/passthrough/include/composer-passthrough/2.3/
DHwcHal.h38 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/
DComposerHal.h39 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/
Dtypes.hal20 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.
/hardware/interfaces/graphics/composer/2.1/vts/functional/
DVtsHalGraphicsComposerV2_1TargetTest.cpp46 using android::hardware::graphics::common::V1_0::ColorMode;
469 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_F()
470 auto nativeModeLocation = std::find(modes.begin(), modes.end(), ColorMode::NATIVE); in TEST_F()
481 std::unordered_set<ColorMode> validModes; in TEST_F()
482 for (auto mode : hidl_enum_range<ColorMode>()) { in TEST_F()
486 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_F()
501 std::vector<ColorMode> modes = mComposerClient->getColorModes(mPrimaryDisplay); in TEST_F()
516 mComposerClient->getRaw()->setColorMode(mPrimaryDisplay, static_cast<ColorMode>(-1)); in TEST_F()
793 mComposerClient->setColorMode(mPrimaryDisplay, ColorMode::NATIVE); in TEST_F()
/hardware/interfaces/graphics/common/1.2/
Dtypes.hal21 import @1.1::ColorMode;
80 enum ColorMode : @1.1::ColorMode {

12