/hardware/qcom/display/msm8960/libcopybit/ |
D | copybit.cpp | 174 e->src_rect.w = (clip.b - clip.t); in set_rects() 175 e->src_rect.h = (clip.r - clip.l); in set_rects() 181 e->src_rect.w = (clip.r - clip.l); in set_rects() 182 e->src_rect.h = (clip.b - clip.t); in set_rects() 187 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects() 188 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects() 190 e->src_rect.x = delta_x + src->l; in set_rects() 191 e->src_rect.y = delta_y + src->t; in set_rects() 195 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects() 197 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects() [all …]
|
/hardware/qcom/display/msm8084/liboverlay/ |
D | overlayMdp.cpp | 135 mOVInfo.src_rect.x >>= mDownscale; in doDownscale() 136 mOVInfo.src_rect.y >>= mDownscale; in doDownscale() 137 mOVInfo.src_rect.w >>= mDownscale; in doDownscale() 138 mOVInfo.src_rect.h >>= mDownscale; in doDownscale() 144 if(mOVInfo.src_rect.w > 2048) { in doDownscale() 155 utils::getDecimationFactor(mOVInfo.src_rect.w, mOVInfo.src_rect.h, in doDownscale() 175 utils::normalizeCrop(mOVInfo.src_rect.x, mOVInfo.src_rect.w); in set() 176 utils::normalizeCrop(mOVInfo.src_rect.y, mOVInfo.src_rect.h); in set() 183 (mOVInfo.src_rect.h % 4)) in set() 184 mOVInfo.src_rect.h = utils::aligndown(mOVInfo.src_rect.h, 4); in set() [all …]
|
D | overlayMdp.h | 272 return utils::Dim( mOVInfo.src_rect.x, in getSrcRectDim() 273 mOVInfo.src_rect.y, in getSrcRectDim() 274 mOVInfo.src_rect.w, in getSrcRectDim() 275 mOVInfo.src_rect.h); in getSrcRectDim() 279 mOVInfo.src_rect.x = d.x; in setSrcRectDim() 280 mOVInfo.src_rect.y = d.y; in setSrcRectDim() 281 mOVInfo.src_rect.w = d.w; in setSrcRectDim() 282 mOVInfo.src_rect.h = d.h; in setSrcRectDim()
|
D | overlayMdpRot.cpp | 53 if ((utils::ROT_DS_EIGHTH == ds) && (mRotImgInfo.src_rect.h & 0xF)) { in setDownscale() 56 mRotImgInfo.src_rect.h = utils::aligndown(mRotImgInfo.src_rect.h, 16); in setDownscale() 90 mRotImgInfo.src_rect.w = whf.w; in setSource() 91 mRotImgInfo.src_rect.h = whf.h; in setSource()
|
/hardware/qcom/display/msm8909w_3100/libcopybit/ |
D | copybit.cpp | 192 e->src_rect.w = (clip.b - clip.t); in set_rects() 193 e->src_rect.h = (clip.r - clip.l); in set_rects() 199 e->src_rect.w = (clip.r - clip.l); in set_rects() 200 e->src_rect.h = (clip.b - clip.t); in set_rects() 205 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects() 206 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects() 208 e->src_rect.x = delta_x + src->l; in set_rects() 209 e->src_rect.y = delta_y + src->t; in set_rects() 213 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects() 215 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects() [all …]
|
/hardware/qcom/display/msm8226/libcopybit/ |
D | copybit.cpp | 178 e->src_rect.w = (clip.b - clip.t); in set_rects() 179 e->src_rect.h = (clip.r - clip.l); in set_rects() 185 e->src_rect.w = (clip.r - clip.l); in set_rects() 186 e->src_rect.h = (clip.b - clip.t); in set_rects() 191 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects() 192 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects() 194 e->src_rect.x = delta_x + src->l; in set_rects() 195 e->src_rect.y = delta_y + src->t; in set_rects() 199 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects() 201 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects() [all …]
|
/hardware/qcom/display/msm8996/libcopybit/ |
D | copybit.cpp | 190 e->src_rect.w = (clip.b - clip.t); in set_rects() 191 e->src_rect.h = (clip.r - clip.l); in set_rects() 197 e->src_rect.w = (clip.r - clip.l); in set_rects() 198 e->src_rect.h = (clip.b - clip.t); in set_rects() 203 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects() 204 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects() 206 e->src_rect.x = delta_x + src->l; in set_rects() 207 e->src_rect.y = delta_y + src->t; in set_rects() 211 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects() 213 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects() [all …]
|
/hardware/qcom/display/msm8084/libcopybit/ |
D | copybit.cpp | 178 e->src_rect.w = (clip.b - clip.t); in set_rects() 179 e->src_rect.h = (clip.r - clip.l); in set_rects() 185 e->src_rect.w = (clip.r - clip.l); in set_rects() 186 e->src_rect.h = (clip.b - clip.t); in set_rects() 191 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects() 192 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects() 194 e->src_rect.x = delta_x + src->l; in set_rects() 195 e->src_rect.y = delta_y + src->t; in set_rects() 199 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects() 201 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects() [all …]
|
/hardware/qcom/sdm845/display/libcopybit/ |
D | copybit.cpp | 192 e->src_rect.w = (clip.b - clip.t); in set_rects() 193 e->src_rect.h = (clip.r - clip.l); in set_rects() 199 e->src_rect.w = (clip.r - clip.l); in set_rects() 200 e->src_rect.h = (clip.b - clip.t); in set_rects() 205 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects() 206 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects() 208 e->src_rect.x = delta_x + src->l; in set_rects() 209 e->src_rect.y = delta_y + src->t; in set_rects() 213 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects() 215 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects() [all …]
|
/hardware/qcom/display/msm8909/libcopybit/ |
D | copybit.cpp | 192 e->src_rect.w = (clip.b - clip.t); in set_rects() 193 e->src_rect.h = (clip.r - clip.l); in set_rects() 199 e->src_rect.w = (clip.r - clip.l); in set_rects() 200 e->src_rect.h = (clip.b - clip.t); in set_rects() 205 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects() 206 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects() 208 e->src_rect.x = delta_x + src->l; in set_rects() 209 e->src_rect.y = delta_y + src->t; in set_rects() 213 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects() 215 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects() [all …]
|
/hardware/qcom/sm8150/display/libcopybit/ |
D | copybit.cpp | 192 e->src_rect.w = (clip.b - clip.t); in set_rects() 193 e->src_rect.h = (clip.r - clip.l); in set_rects() 199 e->src_rect.w = (clip.r - clip.l); in set_rects() 200 e->src_rect.h = (clip.b - clip.t); in set_rects() 205 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects() 206 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects() 208 e->src_rect.x = delta_x + src->l; in set_rects() 209 e->src_rect.y = delta_y + src->t; in set_rects() 213 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects() 215 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects() [all …]
|
/hardware/qcom/display/msm8998/libcopybit/ |
D | copybit.cpp | 190 e->src_rect.w = (clip.b - clip.t); in set_rects() 191 e->src_rect.h = (clip.r - clip.l); in set_rects() 197 e->src_rect.w = (clip.r - clip.l); in set_rects() 198 e->src_rect.h = (clip.b - clip.t); in set_rects() 203 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects() 204 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects() 206 e->src_rect.x = delta_x + src->l; in set_rects() 207 e->src_rect.y = delta_y + src->t; in set_rects() 211 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects() 213 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects() [all …]
|
/hardware/qcom/display/msm8994/libcopybit/ |
D | copybit.cpp | 181 e->src_rect.w = (clip.b - clip.t); in set_rects() 182 e->src_rect.h = (clip.r - clip.l); in set_rects() 188 e->src_rect.w = (clip.r - clip.l); in set_rects() 189 e->src_rect.h = (clip.b - clip.t); in set_rects() 194 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects() 195 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects() 197 e->src_rect.x = delta_x + src->l; in set_rects() 198 e->src_rect.y = delta_y + src->t; in set_rects() 202 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects() 204 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects() [all …]
|
/hardware/qcom/display/msm8960/liboverlay/ |
D | overlayMdpRot.cpp | 54 if((utils::ROT_DS_HALF == ds) && (mRotImgInfo.src_rect.h &0x3)) in setDownscale() 55 mRotImgInfo.src_rect.h = utils::aligndown(mRotImgInfo.src_rect.h, 4); in setDownscale() 56 else if(((utils::ROT_DS_FOURTH == ds) && (mRotImgInfo.src_rect.h &0x7))) in setDownscale() 57 mRotImgInfo.src_rect.h = utils::aligndown(mRotImgInfo.src_rect.h, 8); in setDownscale() 58 else if(((utils::ROT_DS_EIGHTH == ds) && (mRotImgInfo.src_rect.h &0xf))) in setDownscale() 59 mRotImgInfo.src_rect.h = utils::aligndown(mRotImgInfo.src_rect.h, 16); in setDownscale() 60 } else if ((utils::ROT_DS_EIGHTH == ds) && (mRotImgInfo.src_rect.h & 0xF)) { in setDownscale() 65 mRotImgInfo.src_rect.h = utils::alignup(mRotImgInfo.src_rect.h, 16); in setDownscale() 99 mRotImgInfo.src_rect.w = whf.w; in setSource() 100 mRotImgInfo.src_rect.h = whf.h; in setSource()
|
D | overlayMdp.h | 310 return utils::Dim( mOVInfo.src_rect.x, in getSrcRectDim() 311 mOVInfo.src_rect.y, in getSrcRectDim() 312 mOVInfo.src_rect.w, in getSrcRectDim() 313 mOVInfo.src_rect.h); in getSrcRectDim() 317 mOVInfo.src_rect.x = d.x; in setSrcRectDim() 318 mOVInfo.src_rect.y = d.y; in setSrcRectDim() 319 mOVInfo.src_rect.w = d.w; in setSrcRectDim() 320 mOVInfo.src_rect.h = d.h; in setSrcRectDim()
|
/hardware/qcom/display/msm8226/liboverlay/ |
D | overlayMdp.cpp | 150 utils::getDecimationFactor(mOVInfo.src_rect.w, mOVInfo.src_rect.h, in doDownscale() 162 utils::normalizeCrop(mOVInfo.src_rect.x, mOVInfo.src_rect.w); in set() 163 utils::normalizeCrop(mOVInfo.src_rect.y, mOVInfo.src_rect.h); in set() 170 (mOVInfo.src_rect.h % 4)) in set() 171 mOVInfo.src_rect.h = utils::aligndown(mOVInfo.src_rect.h, 4); in set() 174 (mOVInfo.src_rect.w % 4)) in set() 175 mOVInfo.src_rect.w = utils::aligndown(mOVInfo.src_rect.w, 4); in set() 180 if (mOVInfo.src_rect.w - mOVInfo.dst_rect.w == 1) in set() 181 mOVInfo.src_rect.w -= 1; in set() 182 if (mOVInfo.src_rect.h - mOVInfo.dst_rect.h == 1) in set() [all …]
|
D | overlayMdssRot.cpp | 100 mRotInfo.src_rect.x = crop.x; in setCrop() 101 mRotInfo.src_rect.y = crop.y; in setCrop() 102 mRotInfo.src_rect.w = crop.w; in setCrop() 103 mRotInfo.src_rect.h = crop.h; in setCrop() 132 utils::normalizeCrop(mRotInfo.src_rect.x, mRotInfo.src_rect.w); in commit() 133 utils::normalizeCrop(mRotInfo.src_rect.y, mRotInfo.src_rect.h); in commit() 136 (mRotInfo.src_rect.h % 4)) in commit() 137 mRotInfo.src_rect.h = utils::aligndown(mRotInfo.src_rect.h, 4); in commit() 142 mRotInfo.dst_rect.w = mRotInfo.src_rect.w; in commit() 143 mRotInfo.dst_rect.h = mRotInfo.src_rect.h; in commit()
|
D | overlayMdp.h | 242 return utils::Dim( mOVInfo.src_rect.x, in getSrcRectDim() 243 mOVInfo.src_rect.y, in getSrcRectDim() 244 mOVInfo.src_rect.w, in getSrcRectDim() 245 mOVInfo.src_rect.h); in getSrcRectDim() 249 mOVInfo.src_rect.x = d.x; in setSrcRectDim() 250 mOVInfo.src_rect.y = d.y; in setSrcRectDim() 251 mOVInfo.src_rect.w = d.w; in setSrcRectDim() 252 mOVInfo.src_rect.h = d.h; in setSrcRectDim()
|
/hardware/qcom/display/msm8994/liboverlay/ |
D | overlayMdp.cpp | 150 utils::getDecimationFactor(mOVInfo.src_rect.w, mOVInfo.src_rect.h, in doDownscale() 162 utils::normalizeCrop(mOVInfo.src_rect.x, mOVInfo.src_rect.w); in set() 163 utils::normalizeCrop(mOVInfo.src_rect.y, mOVInfo.src_rect.h); in set() 170 (mOVInfo.src_rect.h % 4)) in set() 171 mOVInfo.src_rect.h = utils::aligndown(mOVInfo.src_rect.h, 4); in set() 174 (mOVInfo.src_rect.w % 4)) in set() 175 mOVInfo.src_rect.w = utils::aligndown(mOVInfo.src_rect.w, 4); in set() 180 if (mOVInfo.src_rect.w - mOVInfo.dst_rect.w == 1) in set() 181 mOVInfo.src_rect.w -= 1; in set() 182 if (mOVInfo.src_rect.h - mOVInfo.dst_rect.h == 1) in set() [all …]
|
D | overlayMdp.h | 236 return utils::Dim( mOVInfo.src_rect.x, in getSrcRectDim() 237 mOVInfo.src_rect.y, in getSrcRectDim() 238 mOVInfo.src_rect.w, in getSrcRectDim() 239 mOVInfo.src_rect.h); in getSrcRectDim() 243 mOVInfo.src_rect.x = d.x; in setSrcRectDim() 244 mOVInfo.src_rect.y = d.y; in setSrcRectDim() 245 mOVInfo.src_rect.w = d.w; in setSrcRectDim() 246 mOVInfo.src_rect.h = d.h; in setSrcRectDim()
|
/hardware/qcom/display/msm8996/sdm/libs/core/ |
D | resource_default.cpp | 427 const LayerRect &src_rect, const LayerRect &dst_rect, in SrcSplitConfig() argument 431 float src_width = src_rect.right - src_rect.left; in SrcSplitConfig() 436 SplitRect(src_rect, dst_rect, &left_pipe->src_roi, &left_pipe->dst_roi, &right_pipe->src_roi, in SrcSplitConfig() 441 left_pipe->src_roi = src_rect; in SrcSplitConfig() 451 const LayerRect &src_rect, const LayerRect &dst_rect, in DisplaySplitConfig() argument 468 crop_left = src_rect; in DisplaySplitConfig() 516 LayerRect src_rect = layer->src_rect; in Config() local 519 error = ValidateDimensions(src_rect, dst_rect); in Config() 525 error = ValidateScaling(src_rect, dst_rect, false /*rotated90 */, ubwc_tiled, in Config() 532 error = SrcSplitConfig(display_resource_ctx, src_rect, dst_rect, layer_config); in Config() [all …]
|
/hardware/qcom/sm8150/display/sdm/libs/core/ |
D | resource_default.cpp | 451 const LayerRect &src_rect, const LayerRect &dst_rect, in SrcSplitConfig() argument 456 uint32_t src_width = (uint32_t)(src_rect.right - src_rect.left); in SrcSplitConfig() 465 SplitRect(src_rect, dst_rect, &left_pipe->src_roi, &left_pipe->dst_roi, &right_pipe->src_roi, in SrcSplitConfig() 470 left_pipe->src_roi = src_rect; in SrcSplitConfig() 480 const LayerRect &src_rect, const LayerRect &dst_rect, in DisplaySplitConfig() argument 497 crop_left = src_rect; in DisplaySplitConfig() 545 LayerRect src_rect = layer.src_rect; in Config() local 548 error = ValidateDimensions(src_rect, dst_rect); in Config() 554 error = ValidateScaling(src_rect, dst_rect, false /*rotated90 */, layout, in Config() 561 error = SrcSplitConfig(display_resource_ctx, src_rect, dst_rect, layer_config); in Config() [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/core/ |
D | resource_default.cpp | 464 const LayerRect &src_rect, const LayerRect &dst_rect, in SrcSplitConfig() argument 468 float src_width = src_rect.right - src_rect.left; in SrcSplitConfig() 473 SplitRect(src_rect, dst_rect, &left_pipe->src_roi, &left_pipe->dst_roi, &right_pipe->src_roi, in SrcSplitConfig() 478 left_pipe->src_roi = src_rect; in SrcSplitConfig() 488 const LayerRect &src_rect, const LayerRect &dst_rect, in DisplaySplitConfig() argument 505 crop_left = src_rect; in DisplaySplitConfig() 553 LayerRect src_rect = layer.src_rect; in Config() local 556 error = ValidateDimensions(src_rect, dst_rect); in Config() 562 error = ValidateScaling(src_rect, dst_rect, false /*rotated90 */, layout, in Config() 569 error = SrcSplitConfig(display_resource_ctx, src_rect, dst_rect, layer_config); in Config() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/ |
D | resource_default.cpp | 464 const LayerRect &src_rect, const LayerRect &dst_rect, in SrcSplitConfig() argument 468 float src_width = src_rect.right - src_rect.left; in SrcSplitConfig() 473 SplitRect(src_rect, dst_rect, &left_pipe->src_roi, &left_pipe->dst_roi, &right_pipe->src_roi, in SrcSplitConfig() 478 left_pipe->src_roi = src_rect; in SrcSplitConfig() 488 const LayerRect &src_rect, const LayerRect &dst_rect, in DisplaySplitConfig() argument 505 crop_left = src_rect; in DisplaySplitConfig() 553 LayerRect src_rect = layer.src_rect; in Config() local 556 error = ValidateDimensions(src_rect, dst_rect); in Config() 562 error = ValidateScaling(src_rect, dst_rect, false /*rotated90 */, layout, in Config() 569 error = SrcSplitConfig(display_resource_ctx, src_rect, dst_rect, layer_config); in Config() [all …]
|
/hardware/qcom/sdm845/display/sdm/libs/core/ |
D | resource_default.cpp | 464 const LayerRect &src_rect, const LayerRect &dst_rect, in SrcSplitConfig() argument 468 float src_width = src_rect.right - src_rect.left; in SrcSplitConfig() 474 SplitRect(src_rect, dst_rect, &left_pipe->src_roi, &left_pipe->dst_roi, &right_pipe->src_roi, in SrcSplitConfig() 479 left_pipe->src_roi = src_rect; in SrcSplitConfig() 489 const LayerRect &src_rect, const LayerRect &dst_rect, in DisplaySplitConfig() argument 506 crop_left = src_rect; in DisplaySplitConfig() 554 LayerRect src_rect = layer.src_rect; in Config() local 557 error = ValidateDimensions(src_rect, dst_rect); in Config() 563 error = ValidateScaling(src_rect, dst_rect, false /*rotated90 */, layout, in Config() 570 error = SrcSplitConfig(display_resource_ctx, src_rect, dst_rect, layer_config); in Config() [all …]
|