Home
last modified time | relevance | path

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

123

/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/msm8974/libcopybit/
Dcopybit.cpp177 e->src_rect.w = (clip.b - clip.t); in set_rects()
178 e->src_rect.h = (clip.r - clip.l); in set_rects()
184 e->src_rect.w = (clip.r - clip.l); in set_rects()
185 e->src_rect.h = (clip.b - clip.t); in set_rects()
190 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects()
191 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects()
193 e->src_rect.x = delta_x + src->l; in set_rects()
194 e->src_rect.y = delta_y + src->t; in set_rects()
198 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects()
200 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.cpp180 e->src_rect.w = (clip.b - clip.t); in set_rects()
181 e->src_rect.h = (clip.r - clip.l); in set_rects()
187 e->src_rect.w = (clip.r - clip.l); in set_rects()
188 e->src_rect.h = (clip.b - clip.t); in set_rects()
193 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects()
194 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects()
196 e->src_rect.x = delta_x + src->l; in set_rects()
197 e->src_rect.y = delta_y + src->t; in set_rects()
201 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects()
203 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/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 …]
DoverlayMdp.h272 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()
DoverlayMdpRot.cpp53 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()
DoverlayMdssRot.cpp86 mRotInfo.src_rect.x = crop.x; in setCrop()
87 mRotInfo.src_rect.y = crop.y; in setCrop()
88 mRotInfo.src_rect.w = crop.w; in setCrop()
89 mRotInfo.src_rect.h = crop.h; in setCrop()
/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()
DoverlayMdp.h310 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()
DoverlayMdp.cpp136 mOVInfo.src_rect.x >>= mDownscale; in doDownscale()
137 mOVInfo.src_rect.y >>= mDownscale; in doDownscale()
138 mOVInfo.src_rect.w >>= mDownscale; in doDownscale()
139 mOVInfo.src_rect.h >>= mDownscale; in doDownscale()
148 normalizeCrop(mOVInfo.src_rect.x, mOVInfo.src_rect.w); in set()
149 normalizeCrop(mOVInfo.src_rect.y, mOVInfo.src_rect.h); in set()
/hardware/qcom/display/msm8974/liboverlay/
DoverlayMdp.cpp126 mOVInfo.src_rect.x >>= mDownscale; in doDownscale()
127 mOVInfo.src_rect.y >>= mDownscale; in doDownscale()
128 mOVInfo.src_rect.w >>= mDownscale; in doDownscale()
129 mOVInfo.src_rect.h >>= mDownscale; in doDownscale()
131 utils::getDecimationFactor(mOVInfo.src_rect.w, mOVInfo.src_rect.h, in doDownscale()
143 utils::normalizeCrop(mOVInfo.src_rect.x, mOVInfo.src_rect.w); in set()
144 utils::normalizeCrop(mOVInfo.src_rect.y, mOVInfo.src_rect.h); in set()
151 (mOVInfo.src_rect.h % 4)) in set()
152 mOVInfo.src_rect.h = utils::aligndown(mOVInfo.src_rect.h, 4); in set()
157 if (mOVInfo.src_rect.w - mOVInfo.dst_rect.w == 1) in set()
[all …]
DoverlayMdp.h311 return utils::Dim( mOVInfo.src_rect.x, in getSrcRectDim()
312 mOVInfo.src_rect.y, in getSrcRectDim()
313 mOVInfo.src_rect.w, in getSrcRectDim()
314 mOVInfo.src_rect.h); in getSrcRectDim()
318 mOVInfo.src_rect.x = d.x; in setSrcRectDim()
319 mOVInfo.src_rect.y = d.y; in setSrcRectDim()
320 mOVInfo.src_rect.w = d.w; in setSrcRectDim()
321 mOVInfo.src_rect.h = d.h; in setSrcRectDim()
DoverlayMdpRot.cpp53 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()
DoverlayMdssRot.cpp85 mRotInfo.src_rect.x = crop.x; in setCrop()
86 mRotInfo.src_rect.y = crop.y; in setCrop()
87 mRotInfo.src_rect.w = crop.w; in setCrop()
88 mRotInfo.src_rect.h = crop.h; in setCrop()
/hardware/qcom/display/msm8226/liboverlay/
DoverlayMdp.cpp140 mOVInfo.src_rect.x >>= mDownscale; in doDownscale()
141 mOVInfo.src_rect.y >>= mDownscale; in doDownscale()
142 mOVInfo.src_rect.w >>= mDownscale; in doDownscale()
143 mOVInfo.src_rect.h >>= mDownscale; in doDownscale()
149 if(mOVInfo.src_rect.w > 2048) { in doDownscale()
160 utils::getDecimationFactor(mOVInfo.src_rect.w, mOVInfo.src_rect.h, in doDownscale()
180 utils::normalizeCrop(mOVInfo.src_rect.x, mOVInfo.src_rect.w); in set()
181 utils::normalizeCrop(mOVInfo.src_rect.y, mOVInfo.src_rect.h); in set()
188 (mOVInfo.src_rect.h % 4)) in set()
189 mOVInfo.src_rect.h = utils::aligndown(mOVInfo.src_rect.h, 4); in set()
[all …]
DoverlayMdp.h270 return utils::Dim( mOVInfo.src_rect.x, in getSrcRectDim()
271 mOVInfo.src_rect.y, in getSrcRectDim()
272 mOVInfo.src_rect.w, in getSrcRectDim()
273 mOVInfo.src_rect.h); in getSrcRectDim()
277 mOVInfo.src_rect.x = d.x; in setSrcRectDim()
278 mOVInfo.src_rect.y = d.y; in setSrcRectDim()
279 mOVInfo.src_rect.w = d.w; in setSrcRectDim()
280 mOVInfo.src_rect.h = d.h; in setSrcRectDim()
DoverlayMdpRot.cpp53 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()
DoverlayMdssRot.cpp84 mRotInfo.src_rect.x = crop.x; in setCrop()
85 mRotInfo.src_rect.y = crop.y; in setCrop()
86 mRotInfo.src_rect.w = crop.w; in setCrop()
87 mRotInfo.src_rect.h = crop.h; in setCrop()
/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()
Dva_display.h39 const VARectangle *src_rect,
56 const VARectangle *src_rect,
Dva_display.c156 const VARectangle *src_rect, in va_put_surface() argument
164 return g_display_hooks->put_surface(va_dpy, surface, src_rect, dst_rect); in va_put_surface()
/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

123