Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 25 of 63) sorted by relevance

123

/hardware/qcom/display/msm8960/libcopybit/
Dcopybit_priv.h32 copybit_iterator(const copybit_rect_t& rect) { in copybit_iterator()
33 mRect = rect; in copybit_iterator()
38 static int iterate(copybit_region_t const * self, copybit_rect_t* rect) { in iterate()
39 if (!self || !rect) { in iterate()
45 rect->l = me->mRect.l; in iterate()
46 rect->t = me->mRect.t; in iterate()
47 rect->r = me->mRect.r; in iterate()
48 rect->b = me->mRect.b; in iterate()
Dcopybit.h158 int (*next)(struct copybit_region_t const *region, struct copybit_rect_t *rect);
255 struct copybit_rect_t *rect);
/hardware/qcom/display/msm8226/libcopybit/
Dcopybit_priv.h32 copybit_iterator(const copybit_rect_t& rect) { in copybit_iterator()
33 mRect = rect; in copybit_iterator()
38 static int iterate(copybit_region_t const * self, copybit_rect_t* rect) { in iterate()
39 if (!self || !rect) { in iterate()
45 rect->l = me->mRect.l; in iterate()
46 rect->t = me->mRect.t; in iterate()
47 rect->r = me->mRect.r; in iterate()
48 rect->b = me->mRect.b; in iterate()
Dcopybit.cpp560 struct copybit_rect_t *rect) in clear_copybit() argument
589 if (rect->l < 0 || (uint32_t)(rect->r - rect->l) > req->dst.width || in clear_copybit()
590 rect->t < 0 || (uint32_t)(rect->b - rect->t) > req->dst.height) { in clear_copybit()
592 __FUNCTION__, rect->l, rect->t, rect->r, rect->b); in clear_copybit()
596 req->dst_rect.x = rect->l; in clear_copybit()
597 req->dst_rect.y = rect->t; in clear_copybit()
598 req->dst_rect.w = rect->r - rect->l; in clear_copybit()
599 req->dst_rect.h = rect->b - rect->t; in clear_copybit()
622 struct copybit_rect_t const *rect, in fill_color() argument
636 if (rect->l < 0 || (uint32_t)(rect->r - rect->l) > dst->w || in fill_color()
[all …]
Dcopybit.h159 int (*next)(struct copybit_region_t const *region, struct copybit_rect_t *rect);
257 struct copybit_rect_t const *rect,
283 struct copybit_rect_t *rect);
/hardware/qcom/display/msm8974/libcopybit/
Dcopybit_priv.h32 copybit_iterator(const copybit_rect_t& rect) { in copybit_iterator()
33 mRect = rect; in copybit_iterator()
38 static int iterate(copybit_region_t const * self, copybit_rect_t* rect) { in iterate()
39 if (!self || !rect) { in iterate()
45 rect->l = me->mRect.l; in iterate()
46 rect->t = me->mRect.t; in iterate()
47 rect->r = me->mRect.r; in iterate()
48 rect->b = me->mRect.b; in iterate()
Dcopybit.h159 int (*next)(struct copybit_region_t const *region, struct copybit_rect_t *rect);
268 struct copybit_rect_t *rect);
/hardware/qcom/display/msm8084/libcopybit/
Dcopybit_priv.h32 copybit_iterator(const copybit_rect_t& rect) { in copybit_iterator()
33 mRect = rect; in copybit_iterator()
38 static int iterate(copybit_region_t const * self, copybit_rect_t* rect) { in iterate()
39 if (!self || !rect) { in iterate()
45 rect->l = me->mRect.l; in iterate()
46 rect->t = me->mRect.t; in iterate()
47 rect->r = me->mRect.r; in iterate()
48 rect->b = me->mRect.b; in iterate()
Dcopybit.cpp562 struct copybit_rect_t *rect) in clear_copybit() argument
591 if (rect->l < 0 || (uint32_t)(rect->r - rect->l) > req->dst.width || in clear_copybit()
592 rect->t < 0 || (uint32_t)(rect->b - rect->t) > req->dst.height) { in clear_copybit()
594 __FUNCTION__, rect->l, rect->t, rect->r, rect->b); in clear_copybit()
598 req->dst_rect.x = rect->l; in clear_copybit()
599 req->dst_rect.y = rect->t; in clear_copybit()
600 req->dst_rect.w = rect->r - rect->l; in clear_copybit()
601 req->dst_rect.h = rect->b - rect->t; in clear_copybit()
624 struct copybit_rect_t const *rect, in fill_color() argument
638 if (rect->l < 0 || (uint32_t)(rect->r - rect->l) > dst->w || in fill_color()
[all …]
Dcopybit.h159 int (*next)(struct copybit_region_t const *region, struct copybit_rect_t *rect);
257 struct copybit_rect_t const *rect,
283 struct copybit_rect_t *rect);
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/
DOMXFD.cpp401 faces[i].rect[trans_left] = tmp; in encodeFaceCoordinates()
406 faces[i].rect[trans_top] = tmp; in encodeFaceCoordinates()
411 faces[i].rect[trans_right] = faces[i].rect[trans_left] + tmp; in encodeFaceCoordinates()
416 faces[i].rect[trans_bot] = faces[i].rect[trans_top] + tmp; in encodeFaceCoordinates()
434 int centerX = (faces[i].rect[trans_left] + faces[i].rect[trans_right] ) / 2; in encodeFaceCoordinates()
435 int centerY = (faces[i].rect[trans_top] + faces[i].rect[trans_bot] ) / 2; in encodeFaceCoordinates()
437 int sizeX = (faces[i].rect[trans_right] - faces[i].rect[trans_left] ) ; in encodeFaceCoordinates()
438 int sizeY = (faces[i].rect[trans_bot] - faces[i].rect[trans_top] ) ; in encodeFaceCoordinates()
442 int tempCenterX = (faceDetectionLastOutput[j].rect[trans_left] + in encodeFaceCoordinates()
443 faceDetectionLastOutput[j].rect[trans_right] ) / 2; in encodeFaceCoordinates()
[all …]
/hardware/intel/img/psb_video/src/x11/
Dpsb_coverlay.c104 pCurrent->rect = *pRect; in psb_x11_createClipBoxNode()
138 if (psFirst->rect.i32Left < 0) in psb_x11_substractRects()
139 psFirst->rect.i32Left = 0; in psb_x11_substractRects()
140 else if (psFirst->rect.i32Left > display_width) in psb_x11_substractRects()
141 psFirst->rect.i32Left = display_width; in psb_x11_substractRects()
143 if (psFirst->rect.i32Right < 0) in psb_x11_substractRects()
144 psFirst->rect.i32Right = 0; in psb_x11_substractRects()
145 else if (psFirst->rect.i32Right > display_width) in psb_x11_substractRects()
146 psFirst->rect.i32Right = display_width; in psb_x11_substractRects()
148 if (psFirst->rect.i32Top < 0) in psb_x11_substractRects()
[all …]
/hardware/ti/omap4-aah/camera/OMXCameraAdapter/
DOMXFD.cpp408 faces[i].rect[trans_left] = tmp; in encodeFaceCoordinates()
413 faces[i].rect[trans_top] = tmp; in encodeFaceCoordinates()
418 faces[i].rect[trans_right] = faces[i].rect[trans_left] + tmp; in encodeFaceCoordinates()
423 faces[i].rect[trans_bot] = faces[i].rect[trans_top] + tmp; in encodeFaceCoordinates()
442 int centerX = (faces[i].rect[trans_left] + faces[i].rect[trans_right] ) / 2; in encodeFaceCoordinates()
443 int centerY = (faces[i].rect[trans_top] + faces[i].rect[trans_bot] ) / 2; in encodeFaceCoordinates()
445 int sizeX = (faces[i].rect[trans_right] - faces[i].rect[trans_left] ) ; in encodeFaceCoordinates()
446 int sizeY = (faces[i].rect[trans_bot] - faces[i].rect[trans_top] ) ; in encodeFaceCoordinates()
450 int tempCenterX = (faceDetectionLastOutput[j].rect[trans_left] + in encodeFaceCoordinates()
451 faceDetectionLastOutput[j].rect[trans_right] ) / 2; in encodeFaceCoordinates()
[all …]
/hardware/qcom/display/msm8226/libqdutils/
Dqd_utils.cpp98 int srcHeight, hwc_rect_t& rect) { in getAspectRatioPosition() argument
118 rect.left = x; in getAspectRatioPosition()
119 rect.top = y; in getAspectRatioPosition()
120 rect.right = srcWidth + rect.left; in getAspectRatioPosition()
121 rect.bottom = srcHeight + rect.top; in getAspectRatioPosition()
Ddisplay_config.cpp95 int getDisplayVisibleRegion(int dpy, hwc_rect_t &rect) { in getDisplayVisibleRegion() argument
105 rect.left = outParcel.readInt32(); in getDisplayVisibleRegion()
106 rect.top = outParcel.readInt32(); in getDisplayVisibleRegion()
107 rect.right = outParcel.readInt32(); in getDisplayVisibleRegion()
108 rect.bottom = outParcel.readInt32(); in getDisplayVisibleRegion()
/hardware/intel/common/libva/test/common/
Dva_display_x11.c95 validate_rect(const VARectangle *rect) in validate_rect() argument
97 return (rect && in validate_rect()
98 rect->x >= 0 && in validate_rect()
99 rect->y >= 0 && in validate_rect()
100 rect->width > 0 && in validate_rect()
101 rect->height > 0); in validate_rect()
/hardware/qcom/display/msm8084/libqdutils/
Ddisplay_config.cpp95 int getDisplayVisibleRegion(int dpy, hwc_rect_t &rect) { in getDisplayVisibleRegion() argument
105 rect.left = outParcel.readInt32(); in getDisplayVisibleRegion()
106 rect.top = outParcel.readInt32(); in getDisplayVisibleRegion()
107 rect.right = outParcel.readInt32(); in getDisplayVisibleRegion()
108 rect.bottom = outParcel.readInt32(); in getDisplayVisibleRegion()
/hardware/ti/omap4-aah/hwc/
Drgz_2d.c64 #define WIDTH(rect) ((rect).right - (rect).left) argument
65 #define HEIGHT(rect) ((rect).bottom - (rect).top) argument
202 blit_rect_t *rect; in svgout_hregion() local
203 (void)get_top_rect(hregion, b, &rect); in svgout_hregion()
205 if (!svgout_intersects_display(rect, dispw, disph)) in svgout_hregion()
207 svgout_rect(rect, colors[b % 7], NULL); in svgout_hregion()
493 static void rgz_out_clrdst(rgz_out_params_t *params, blit_rect_t *rect) in rgz_out_clrdst() argument
517 if (rect) { in rgz_out_clrdst()
518 clear_rect.left = rect->left; in rgz_out_clrdst()
519 clear_rect.top = rect->top; in rgz_out_clrdst()
[all …]
/hardware/ti/omap4-aah/domx/omx_proxy_component/omx_video_dec/src/
Domx_proxy_videodec.c680 OMX_CONFIG_RECTTYPE rect; in PROXY_VIDDEC_FillThisBuffer() local
681 rect.nSize = sizeof(rect); in PROXY_VIDDEC_FillThisBuffer()
682 rect.nVersion.s.nVersionMajor = OMX_VER_MAJOR; in PROXY_VIDDEC_FillThisBuffer()
683 rect.nVersion.s.nVersionMinor = OMX_VER_MINOR; in PROXY_VIDDEC_FillThisBuffer()
684 rect.nVersion.s.nRevision = 0x0; in PROXY_VIDDEC_FillThisBuffer()
685 rect.nVersion.s.nStep = 0x0; in PROXY_VIDDEC_FillThisBuffer()
686 rect.nPortIndex = OMX_VIDEODECODER_OUTPUT_PORT; in PROXY_VIDDEC_FillThisBuffer()
688 eError = PROXY_GetConfig(hComponent, OMX_IndexConfigCommonOutputCrop, &rect); in PROXY_VIDDEC_FillThisBuffer()
692 pCompPrv->debugframeInfo.frame_width = rect.nWidth; in PROXY_VIDDEC_FillThisBuffer()
693 pCompPrv->debugframeInfo.frame_height = rect.nHeight; in PROXY_VIDDEC_FillThisBuffer()
[all …]
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_copybit.cpp45 static int iterate(copybit_region_t const * self, copybit_rect_t* rect){ in iterate()
46 if (!self || !rect) { in iterate()
54 rect->l = me->mRegion.rects[me->r.current].left; in iterate()
55 rect->t = me->mRegion.rects[me->r.current].top; in iterate()
56 rect->r = me->mRegion.rects[me->r.current].right; in iterate()
57 rect->b = me->mRegion.rects[me->r.current].bottom; in iterate()
205 int CopyBit::clear (private_handle_t* hnd, hwc_rect_t& rect) in clear() argument
208 copybit_rect_t clear_rect = {rect.left, rect.top, in clear()
209 rect.right, in clear()
210 rect.bottom}; in clear()
/hardware/qcom/display/msm8974/libhwcomposer/
Dhwc_copybit.cpp46 static int iterate(copybit_region_t const * self, copybit_rect_t* rect){ in iterate()
47 if (!self || !rect) { in iterate()
55 rect->l = me->mRegion.rects[me->r.current].left; in iterate()
56 rect->t = me->mRegion.rects[me->r.current].top; in iterate()
57 rect->r = me->mRegion.rects[me->r.current].right; in iterate()
58 rect->b = me->mRegion.rects[me->r.current].bottom; in iterate()
225 int CopyBit::clear (private_handle_t* hnd, hwc_rect_t& rect) in clear() argument
228 copybit_rect_t clear_rect = {rect.left, rect.top, in clear()
229 rect.right, in clear()
230 rect.bottom}; in clear()
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_utils.cpp371 void getActionSafePosition(hwc_context_t *ctx, int dpy, hwc_rect_t& rect) { in getActionSafePosition() argument
373 int x = rect.left, y = rect.top; in getActionSafePosition()
374 int w = rect.right - rect.left; in getActionSafePosition()
375 int h = rect.bottom - rect.top; in getActionSafePosition()
427 rect.left = x; in getActionSafePosition()
428 rect.top = y; in getActionSafePosition()
429 rect.right = w + rect.left; in getActionSafePosition()
430 rect.bottom = h + rect.top; in getActionSafePosition()
437 int srcHeight, hwc_rect_t& rect) { in getAspectRatioPosition() argument
457 rect.left = x; in getAspectRatioPosition()
[all …]
Dhwc_copybit.cpp49 static int iterate(copybit_region_t const * self, copybit_rect_t* rect){ in iterate()
50 if (!self || !rect) { in iterate()
58 rect->l = me->mRegion.rects[me->r.current].left; in iterate()
59 rect->t = me->mRegion.rects[me->r.current].top; in iterate()
60 rect->r = me->mRegion.rects[me->r.current].right; in iterate()
61 rect->b = me->mRegion.rects[me->r.current].bottom; in iterate()
247 int CopyBit::clear (private_handle_t* hnd, hwc_rect_t& rect) in clear() argument
250 copybit_rect_t clear_rect = {rect.left, rect.top, in clear()
251 rect.right, in clear()
252 rect.bottom}; in clear()
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_copybit.cpp49 static int iterate(copybit_region_t const * self, copybit_rect_t* rect){ in iterate()
50 if (!self || !rect) { in iterate()
58 rect->l = me->mRegion.rects[me->r.current].left; in iterate()
59 rect->t = me->mRegion.rects[me->r.current].top; in iterate()
60 rect->r = me->mRegion.rects[me->r.current].right; in iterate()
61 rect->b = me->mRegion.rects[me->r.current].bottom; in iterate()
247 int CopyBit::clear (private_handle_t* hnd, hwc_rect_t& rect) in clear() argument
250 copybit_rect_t clear_rect = {rect.left, rect.top, in clear()
251 rect.right, in clear()
252 rect.bottom}; in clear()
Dhwc_utils.cpp360 void getActionSafePosition(hwc_context_t *ctx, int dpy, hwc_rect_t& rect) { in getActionSafePosition() argument
362 int x = rect.left, y = rect.top; in getActionSafePosition()
363 int w = rect.right - rect.left; in getActionSafePosition()
364 int h = rect.bottom - rect.top; in getActionSafePosition()
416 rect.left = x; in getActionSafePosition()
417 rect.top = y; in getActionSafePosition()
418 rect.right = w + rect.left; in getActionSafePosition()
419 rect.bottom = h + rect.top; in getActionSafePosition()
445 hwc_rect_t rect = {0, 0, (int)fbWidth, (int)fbHeight}; in getAspectRatioPosition() local
461 (int)actualHeight, rect); in getAspectRatioPosition()
[all …]

123