Home
last modified time | relevance | path

Searched refs:FLOAT (Results 1 – 25 of 54) sorted by relevance

123

/hardware/qcom/display/sdm845/sdm/libs/hwc2/
Dhwc_display_external.cpp151 float width_ratio = FLOAT(width) / 100.0f; in ApplyScanAdjustment()
153 float height_ratio = FLOAT(height) / 100.0f; in ApplyScanAdjustment()
168 uint32_t new_mixer_width = UINT32(mixer_width * FLOAT(1.0f - width_ratio)); in ApplyScanAdjustment()
169 uint32_t new_mixer_height = UINT32(mixer_height * FLOAT(1.0f - height_ratio)); in ApplyScanAdjustment()
171 int x_offset = INT((FLOAT(mixer_width) * width_ratio) / 2.0f); in ApplyScanAdjustment()
172 int y_offset = INT((FLOAT(mixer_height) * height_ratio) / 2.0f); in ApplyScanAdjustment()
Dhwc_color_manager.cpp185 FLOAT(solid_fill_params_.rect.x), FLOAT(solid_fill_params_.rect.y), in SetSolidFill()
186 FLOAT(solid_fill_params_.rect.x) + FLOAT(solid_fill_params_.rect.width), in SetSolidFill()
187 FLOAT(solid_fill_params_.rect.y) + FLOAT(solid_fill_params_.rect.height), in SetSolidFill()
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_display_external.cpp149 float width_ratio = FLOAT(width) / 100.0f; in ApplyScanAdjustment()
151 float height_ratio = FLOAT(height) / 100.0f; in ApplyScanAdjustment()
166 uint32_t new_mixer_width = UINT32(mixer_width * FLOAT(1.0f - width_ratio)); in ApplyScanAdjustment()
167 uint32_t new_mixer_height = UINT32(mixer_height * FLOAT(1.0f - height_ratio)); in ApplyScanAdjustment()
169 int x_offset = INT((FLOAT(mixer_width) * width_ratio) / 2.0f); in ApplyScanAdjustment()
170 int y_offset = INT((FLOAT(mixer_height) * height_ratio) / 2.0f); in ApplyScanAdjustment()
Dhwc_color_manager.cpp184 FLOAT(solid_fill_params_.rect.x), FLOAT(solid_fill_params_.rect.y), in SetSolidFill()
185 FLOAT(solid_fill_params_.rect.x) + FLOAT(solid_fill_params_.rect.width), in SetSolidFill()
186 FLOAT(solid_fill_params_.rect.y) + FLOAT(solid_fill_params_.rect.height), in SetSolidFill()
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_display_external.cpp146 float width_ratio = FLOAT(underscan_width_) / 100.0f; in ApplyScanAdjustment()
147 float height_ratio = FLOAT(underscan_height_) / 100.0f; in ApplyScanAdjustment()
158 uint32_t new_mixer_width = UINT32(mixer_width * FLOAT(1.0f - width_ratio)); in ApplyScanAdjustment()
159 uint32_t new_mixer_height = UINT32(mixer_height * FLOAT(1.0f - height_ratio)); in ApplyScanAdjustment()
161 int x_offset = INT((FLOAT(mixer_width) * width_ratio) / 2.0f); in ApplyScanAdjustment()
162 int y_offset = INT((FLOAT(mixer_height) * height_ratio) / 2.0f); in ApplyScanAdjustment()
Dhwc_color_manager.cpp184 FLOAT(solid_fill_params_.rect.x), FLOAT(solid_fill_params_.rect.y), in SetSolidFill()
185 FLOAT(solid_fill_params_.rect.x) + FLOAT(solid_fill_params_.rect.width), in SetSolidFill()
186 FLOAT(solid_fill_params_.rect.y) + FLOAT(solid_fill_params_.rect.height), in SetSolidFill()
/hardware/qcom/display/msm8996/sdm/include/utils/
Dconstants.h36 #define FLOAT(exp) static_cast<float>(exp) macro
47 #define ROUND_UP_ALIGN_DOWN(value, a) FLOAT(FloorToMultipleOf(UINT32(value + 0.5f), UINT32(a)))
48 #define ROUND_UP_ALIGN_UP(value, a) FLOAT(CeilToMultipleOf(UINT32(value + 0.5f), UINT32(a)))
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dhwc_display_external.cpp180 float width_ratio = FLOAT(width) / 100.0f; in ApplyScanAdjustment()
182 float height_ratio = FLOAT(height) / 100.0f; in ApplyScanAdjustment()
197 uint32_t new_mixer_width = UINT32(mixer_width * FLOAT(1.0f - width_ratio)); in ApplyScanAdjustment()
198 uint32_t new_mixer_height = UINT32(mixer_height * FLOAT(1.0f - height_ratio)); in ApplyScanAdjustment()
200 int x_offset = INT((FLOAT(mixer_width) * width_ratio) / 2.0f); in ApplyScanAdjustment()
201 int y_offset = INT((FLOAT(mixer_height) * height_ratio) / 2.0f); in ApplyScanAdjustment()
Dblit_engine_c2d.cpp349 dst_rects[processed_blit].top = FLOAT(target_height - height); in PreCommit()
412 clear_rect.right = FLOAT(target_buffer->width); in Commit()
413 clear_rect.bottom = FLOAT(target_buffer->height); in Commit()
518 region_rect.left = FLOAT(dst_rect.l); in DrawRectUsingCopybit()
519 region_rect.top = FLOAT(dst_rect.t); in DrawRectUsingCopybit()
520 region_rect.right = FLOAT(dst_rect.r); in DrawRectUsingCopybit()
521 region_rect.bottom = FLOAT(dst_rect.b); in DrawRectUsingCopybit()
/hardware/qcom/display/msm8998/sdm/include/utils/
Dconstants.h36 #define FLOAT(exp) static_cast<float>(exp) macro
47 #define ROUND_UP_ALIGN_DOWN(value, a) FLOAT(FloorToMultipleOf(UINT32(value + 0.5f), UINT32(a)))
48 #define ROUND_UP_ALIGN_UP(value, a) FLOAT(CeilToMultipleOf(UINT32(value + 0.5f), UINT32(a)))
/hardware/qcom/display/sdm845/sdm/include/utils/
Dconstants.h36 #define FLOAT(exp) static_cast<float>(exp) macro
47 #define ROUND_UP_ALIGN_DOWN(value, a) FLOAT(FloorToMultipleOf(UINT32(value + 0.5f), UINT32(a)))
48 #define ROUND_UP_ALIGN_UP(value, a) FLOAT(CeilToMultipleOf(UINT32(value + 0.5f), UINT32(a)))
/hardware/qcom/display/msm8998/sdm/libs/core/drm/
Dhw_device_drm.cpp192 display_attributes_.x_dpi = (FLOAT(mode.hdisplay) * 25.4f) / FLOAT(mm_width); in PopulateDisplayAttributes()
193 display_attributes_.y_dpi = (FLOAT(mode.vdisplay) * 25.4f) / FLOAT(mm_height); in PopulateDisplayAttributes()
751 float mixer_aspect_ratio = FLOAT(mixer_attributes.width) / FLOAT(mixer_attributes.height); in SetMixerAttributes()
753 FLOAT(display_attributes_.x_pixels) / FLOAT(display_attributes_.y_pixels); in SetMixerAttributes()
761 float scale_x = FLOAT(display_attributes_.x_pixels) / FLOAT(mixer_attributes.width); in SetMixerAttributes()
762 float scale_y = FLOAT(display_attributes_.y_pixels) / FLOAT(mixer_attributes.height); in SetMixerAttributes()
772 float mixer_split_ratio = FLOAT(mixer_attributes_.split_left) / FLOAT(mixer_attributes_.width); in SetMixerAttributes()
777 mixer_attributes_.split_left = UINT32(FLOAT(mixer_attributes.width) * mixer_split_ratio); in SetMixerAttributes()
/hardware/qcom/display/sdm845/sdm/libs/core/
Dstrategy.cpp151 float layer_mixer_width = FLOAT(mixer_attributes_.width); in GetNextStrategy()
152 float layer_mixer_height = FLOAT(mixer_attributes_.height); in GetNextStrategy()
153 float fb_width = FLOAT(fb_config_.x_pixels); in GetNextStrategy()
154 float fb_height = FLOAT(fb_config_.y_pixels); in GetNextStrategy()
188 float left_split = FLOAT(mixer_attributes_.split_left); in GenerateROI()
Ddisplay_base.cpp186 float layer_mixer_width = FLOAT(mixer_attributes_.width); in ValidateGPUTargetParams()
187 float layer_mixer_height = FLOAT(mixer_attributes_.height); in ValidateGPUTargetParams()
188 float fb_width = FLOAT(fb_config_.x_pixels); in ValidateGPUTargetParams()
189 float fb_height = FLOAT(fb_config_.y_pixels); in ValidateGPUTargetParams()
1098 float src_width = FLOAT(src_rect.right - src_rect.left); in NeedsDownScale()
1099 float src_height = FLOAT(src_rect.bottom - src_rect.top); in NeedsDownScale()
1100 float dst_width = FLOAT(dst_rect.right - dst_rect.left); in NeedsDownScale()
1101 float dst_height = FLOAT(dst_rect.bottom - dst_rect.top); in NeedsDownScale()
1122 LayerRect fb_rect = (LayerRect) {0.0f, 0.0f, FLOAT(fb_width), FLOAT(fb_height)}; in NeedsMixerReconfiguration()
1174 *new_mixer_width = FloorToMultipleOf(UINT32((FLOAT(fb_width) / FLOAT(fb_height)) * in NeedsMixerReconfiguration()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/core/
Dstrategy.cpp151 float layer_mixer_width = FLOAT(mixer_attributes_.width); in GetNextStrategy()
152 float layer_mixer_height = FLOAT(mixer_attributes_.height); in GetNextStrategy()
153 float fb_width = FLOAT(fb_config_.x_pixels); in GetNextStrategy()
154 float fb_height = FLOAT(fb_config_.y_pixels); in GetNextStrategy()
188 float left_split = FLOAT(mixer_attributes_.split_left); in GenerateROI()
Ddisplay_base.cpp190 float layer_mixer_width = FLOAT(mixer_attributes_.width); in ValidateGPUTargetParams()
191 float layer_mixer_height = FLOAT(mixer_attributes_.height); in ValidateGPUTargetParams()
192 float fb_width = FLOAT(fb_config_.x_pixels); in ValidateGPUTargetParams()
193 float fb_height = FLOAT(fb_config_.y_pixels); in ValidateGPUTargetParams()
1099 float src_width = FLOAT(src_rect.right - src_rect.left); in NeedsDownScale()
1100 float src_height = FLOAT(src_rect.bottom - src_rect.top); in NeedsDownScale()
1101 float dst_width = FLOAT(dst_rect.right - dst_rect.left); in NeedsDownScale()
1102 float dst_height = FLOAT(dst_rect.bottom - dst_rect.top); in NeedsDownScale()
1123 LayerRect fb_rect = (LayerRect) {0.0f, 0.0f, FLOAT(fb_width), FLOAT(fb_height)}; in NeedsMixerReconfiguration()
1175 *new_mixer_width = FloorToMultipleOf(UINT32((FLOAT(fb_width) / FLOAT(fb_height)) * in NeedsMixerReconfiguration()
[all …]
/hardware/qcom/display/sdm845/sdm/libs/hwc/
Dhwc_display_external.cpp183 float width_ratio = FLOAT(width) / 100.0f; in ApplyScanAdjustment()
185 float height_ratio = FLOAT(height) / 100.0f; in ApplyScanAdjustment()
200 uint32_t new_mixer_width = UINT32(mixer_width * FLOAT(1.0f - width_ratio)); in ApplyScanAdjustment()
201 uint32_t new_mixer_height = UINT32(mixer_height * FLOAT(1.0f - height_ratio)); in ApplyScanAdjustment()
203 int x_offset = INT((FLOAT(mixer_width) * width_ratio) / 2.0f); in ApplyScanAdjustment()
204 int y_offset = INT((FLOAT(mixer_height) * height_ratio) / 2.0f); in ApplyScanAdjustment()
Dblit_engine_c2d.cpp362 dst_rects[processed_blit].top = FLOAT(target_aligned_height - aligned_h); in PreCommit()
427 clear_rect.right = FLOAT(target_buffer->width); in Commit()
428 clear_rect.bottom = FLOAT(target_buffer->height); in Commit()
533 region_rect.left = FLOAT(dst_rect.l); in DrawRectUsingCopybit()
534 region_rect.top = FLOAT(dst_rect.t); in DrawRectUsingCopybit()
535 region_rect.right = FLOAT(dst_rect.r); in DrawRectUsingCopybit()
536 region_rect.bottom = FLOAT(dst_rect.b); in DrawRectUsingCopybit()
/hardware/qcom/display/msm8996/sdm/libs/utils/
Drect.cpp88 res.left = rect.left + FLOAT(x_offset); in Reposition()
89 res.top = rect.top + FLOAT(y_offset); in Reposition()
90 res.right = rect.right + FLOAT(x_offset); in Reposition()
91 res.bottom = rect.bottom + FLOAT(y_offset); in Reposition()
147 float aligned_width = FLOAT(CeilToMultipleOf(split_width, align_x)); in SplitLeftRight()
177 float aligned_height = FLOAT(CeilToMultipleOf(split_height, align_y)); in SplitTopBottom()
/hardware/qcom/display/msm8998/sdm/libs/utils/
Drect.cpp88 res.left = rect.left + FLOAT(x_offset); in Reposition()
89 res.top = rect.top + FLOAT(y_offset); in Reposition()
90 res.right = rect.right + FLOAT(x_offset); in Reposition()
91 res.bottom = rect.bottom + FLOAT(y_offset); in Reposition()
147 float aligned_width = FLOAT(CeilToMultipleOf(split_width, align_x)); in SplitLeftRight()
177 float aligned_height = FLOAT(CeilToMultipleOf(split_height, align_y)); in SplitTopBottom()
/hardware/qcom/display/sdm845/sdm/libs/utils/
Drect.cpp88 res.left = rect.left + FLOAT(x_offset); in Reposition()
89 res.top = rect.top + FLOAT(y_offset); in Reposition()
90 res.right = rect.right + FLOAT(x_offset); in Reposition()
91 res.bottom = rect.bottom + FLOAT(y_offset); in Reposition()
147 float aligned_width = FLOAT(CeilToMultipleOf(split_width, align_x)); in SplitLeftRight()
177 float aligned_height = FLOAT(CeilToMultipleOf(split_height, align_y)); in SplitTopBottom()
/hardware/qcom/display/msm8996/sdm/libs/core/
Ddisplay_base.cpp181 float layer_mixer_width = FLOAT(mixer_attributes_.width); in ValidateGPUTarget()
182 float layer_mixer_height = FLOAT(mixer_attributes_.height); in ValidateGPUTarget()
183 float fb_width = FLOAT(fb_config_.x_pixels); in ValidateGPUTarget()
184 float fb_height = FLOAT(fb_config_.y_pixels); in ValidateGPUTarget()
949 LayerRect fb_rect = (LayerRect) {0.0f, 0.0f, FLOAT(fb_width), FLOAT(fb_height)}; in NeedsMixerReconfiguration()
981 LayerRect layer_rect = (LayerRect){0.0f, 0.0f, FLOAT(layer_width), FLOAT(layer_height)}; in NeedsMixerReconfiguration()
992 layer_width = UINT32((FLOAT(fb_width) / FLOAT(fb_height)) * layer_height); in NeedsMixerReconfiguration()
1021 LayerRect crop = LayerRect(0, 0, FLOAT(width), FLOAT(height)); in SetFrameBufferConfig()
1022 LayerRect dst = LayerRect(0, 0, FLOAT(mixer_attributes_.width), FLOAT(mixer_attributes_.height)); in SetFrameBufferConfig()
/hardware/qcom/display/sdm845/sdm/libs/core/drm/
Dhw_device_drm.cpp420 display_attributes_.x_dpi = (FLOAT(mode.hdisplay) * 25.4f) / FLOAT(mm_width); in PopulateDisplayAttributes()
421 display_attributes_.y_dpi = (FLOAT(mode.vdisplay) * 25.4f) / FLOAT(mm_height); in PopulateDisplayAttributes()
1060 float mixer_aspect_ratio = FLOAT(mixer_attributes.width) / FLOAT(mixer_attributes.height); in SetMixerAttributes()
1062 FLOAT(display_attributes_.x_pixels) / FLOAT(display_attributes_.y_pixels); in SetMixerAttributes()
1070 float scale_x = FLOAT(display_attributes_.x_pixels) / FLOAT(mixer_attributes.width); in SetMixerAttributes()
1071 float scale_y = FLOAT(display_attributes_.y_pixels) / FLOAT(mixer_attributes.height); in SetMixerAttributes()
1081 float mixer_split_ratio = FLOAT(mixer_attributes_.split_left) / FLOAT(mixer_attributes_.width); in SetMixerAttributes()
1086 mixer_attributes_.split_left = UINT32(FLOAT(mixer_attributes.width) * mixer_split_ratio); in SetMixerAttributes()
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DVehicleObjectPool_test.cpp64 ASSERT_NE(raw, valuePool->obtain(VehiclePropertyType::FLOAT).get()); in TEST_F()
103 ? VehiclePropertyType::FLOAT in TEST_F()
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehicleUtils.cpp40 case VehiclePropertyType::FLOAT: // fall through in createVehiclePropValue()
67 case VehiclePropertyType::FLOAT: // fall through in getVehicleRawValueVectorSize()

123