Home
last modified time | relevance | path

Searched refs:src_rect (Results 1 – 25 of 122) sorted by relevance

12345

/hardware/qcom/display/msm8960/libcopybit/
Dcopybit.cpp174 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/msm8998/libcopybit/
Dcopybit.cpp192 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/
Dcopybit.cpp178 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/msm8909/libcopybit/
Dcopybit.cpp187 e->src_rect.w = (clip.b - clip.t); in set_rects()
188 e->src_rect.h = (clip.r - clip.l); in set_rects()
194 e->src_rect.w = (clip.r - clip.l); in set_rects()
195 e->src_rect.h = (clip.b - clip.t); in set_rects()
200 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects()
201 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects()
203 e->src_rect.x = delta_x + src->l; in set_rects()
204 e->src_rect.y = delta_y + src->t; in set_rects()
208 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects()
210 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/
Dcopybit.cpp181 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/msm8084/libcopybit/
Dcopybit.cpp178 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/
Dcopybit.cpp190 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/liboverlay/
DoverlayMdp.cpp135 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 …]
/hardware/qcom/display/msm8960/liboverlay/
DoverlayMdpRot.cpp54 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()
/hardware/intel/common/libva/test/common/
Dva_display_x11.c108 const VARectangle *src_rect, in va_put_surface_x11() argument
118 if (!validate_rect(src_rect) || !validate_rect(dst_rect)) in va_put_surface_x11()
126 src_rect->x, src_rect->y, in va_put_surface_x11()
127 src_rect->width, src_rect->height, in va_put_surface_x11()
Dva_display_android.cpp83 const VARectangle *src_rect, in va_put_surface_android() argument
91 src_rect->x, src_rect->y, in va_put_surface_android()
92 src_rect->width, src_rect->height, in va_put_surface_android()
/hardware/qcom/display/msm8226/liboverlay/
DoverlayMdp.cpp150 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 …]
DoverlayMdssRot.cpp100 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()
DoverlayMdp.h242 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/
DoverlayMdssRot.cpp122 mRotInfo.src_rect.x = crop.x; in setCrop()
123 mRotInfo.src_rect.y = crop.y; in setCrop()
124 mRotInfo.src_rect.w = crop.w; in setCrop()
125 mRotInfo.src_rect.h = crop.h; in setCrop()
154 Dim adjCrop(mRotInfo.src_rect.x,mRotInfo.src_rect.y, in commit()
155 mRotInfo.src_rect.w,mRotInfo.src_rect.h); in commit()
160 mRotInfo.src_rect.x = adjCrop.x; in commit()
161 mRotInfo.src_rect.y = adjCrop.y; in commit()
162 mRotInfo.src_rect.w = adjCrop.w; in commit()
163 mRotInfo.src_rect.h = adjCrop.h; in commit()
[all …]
DoverlayMdp.cpp150 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 …]
DoverlayMdp.h236 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/msm8909/liboverlay/
DoverlayMdssRot.cpp122 mRotInfo.src_rect.x = crop.x; in setCrop()
123 mRotInfo.src_rect.y = crop.y; in setCrop()
124 mRotInfo.src_rect.w = crop.w; in setCrop()
125 mRotInfo.src_rect.h = crop.h; in setCrop()
154 Dim adjCrop(mRotInfo.src_rect.x,mRotInfo.src_rect.y, in commit()
155 mRotInfo.src_rect.w,mRotInfo.src_rect.h); in commit()
160 mRotInfo.src_rect.x = adjCrop.x; in commit()
161 mRotInfo.src_rect.y = adjCrop.y; in commit()
162 mRotInfo.src_rect.w = adjCrop.w; in commit()
163 mRotInfo.src_rect.h = adjCrop.h; in commit()
[all …]
DoverlayMdp.cpp145 utils::getDecimationFactor(mOVInfo.src_rect.w, mOVInfo.src_rect.h, in doDownscale()
157 utils::normalizeCrop(mOVInfo.src_rect.x, mOVInfo.src_rect.w); in set()
158 utils::normalizeCrop(mOVInfo.src_rect.y, mOVInfo.src_rect.h); in set()
165 (mOVInfo.src_rect.h % 4)) in set()
166 mOVInfo.src_rect.h = utils::aligndown(mOVInfo.src_rect.h, 4); in set()
169 (mOVInfo.src_rect.w % 4)) in set()
170 mOVInfo.src_rect.w = utils::aligndown(mOVInfo.src_rect.w, 4); in set()
177 if (mOVInfo.src_rect.w - mOVInfo.dst_rect.w == 1) in set()
178 mOVInfo.src_rect.w -= 1; in set()
179 if (mOVInfo.src_rect.h - mOVInfo.dst_rect.h == 1) in set()
[all …]
DoverlayMdp.h236 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/intel/common/libmix/mix_video/src/
Dmixvideorenderparams.c44 memset(&(self->src_rect), 0, sizeof(MixRect)); in mix_videorenderparams_init()
177 this_target->src_rect = this_src->src_rect; in mix_videorenderparams_copy()
221 this_second->display)) && mix_rect_equal(this_first->src_rect, in mix_videorenderparams_equal()
222 this_second->src_rect) && mix_rect_equal(this_first->dst_rect, in mix_videorenderparams_equal()
283 MixRect src_rect) { in mix_videorenderparams_set_src_rect() argument
287 obj->src_rect = src_rect; in mix_videorenderparams_set_src_rect()
293 MixRect * src_rect) { in mix_videorenderparams_get_src_rect() argument
295 MIX_VIDEORENDERPARAMS_GETTER_CHECK_INPUT (obj, src_rect); in mix_videorenderparams_get_src_rect()
297 *src_rect = obj->src_rect; in mix_videorenderparams_get_src_rect()
/hardware/qcom/display/msm8998/sdm/libs/core/
Dresource_default.cpp464 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/msm8996/sdm/libs/core/
Dresource_default.cpp427 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/intel/common/libva/test/decode/
Dmpeg2vldemo.cpp257 VARectangle src_rect, dst_rect; in main() local
259 src_rect.x = 0; in main()
260 src_rect.y = 0; in main()
261 src_rect.width = CLIP_WIDTH; in main()
262 src_rect.height = CLIP_HEIGHT; in main()
269 va_status = va_put_surface(va_dpy, surface_id, &src_rect, &dst_rect); in main()
/hardware/intel/common/libva/test/putsurface/
Dputsurface_wayland.c50 const VARectangle *src_rect,
84 VARectangle src_rect, dst_rect; in vaPutSurface() local
86 src_rect.x = src_x; in vaPutSurface()
87 src_rect.y = src_y; in vaPutSurface()
88 src_rect.width = src_w; in vaPutSurface()
89 src_rect.height = src_h; in vaPutSurface()
95 return va_put_surface(dpy, wl_drawable, surface, &src_rect, &dst_rect, in vaPutSurface()
133 const VARectangle *src_rect, in va_put_surface() argument

12345