Home
last modified time | relevance | path

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

1234

/hardware/qcom/display/msm8909/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.cpp126 static bool validateCopybitRect(struct copybit_rect_t *rect) { in validateCopybitRect() argument
127 return ((rect->b > rect->t) && (rect->r > rect->l)) ; in validateCopybitRect()
590 struct copybit_rect_t *rect) in clear_copybit() argument
618 if (rect->l < 0 || (uint32_t)(rect->r - rect->l) > req->dst.width || in clear_copybit()
619 rect->t < 0 || (uint32_t)(rect->b - rect->t) > req->dst.height) { in clear_copybit()
621 __FUNCTION__, rect->l, rect->t, rect->r, rect->b); in clear_copybit()
625 req->dst_rect.x = rect->l; in clear_copybit()
626 req->dst_rect.y = rect->t; in clear_copybit()
627 req->dst_rect.w = rect->r - rect->l; in clear_copybit()
628 req->dst_rect.h = rect->b - rect->t; in clear_copybit()
[all …]
/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.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 …]
/hardware/qcom/display/msm8994/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.cpp575 struct copybit_rect_t *rect) in clear_copybit() argument
603 if (rect->l < 0 || (uint32_t)(rect->r - rect->l) > req->dst.width || in clear_copybit()
604 rect->t < 0 || (uint32_t)(rect->b - rect->t) > req->dst.height) { in clear_copybit()
606 __FUNCTION__, rect->l, rect->t, rect->r, rect->b); in clear_copybit()
610 req->dst_rect.x = rect->l; in clear_copybit()
611 req->dst_rect.y = rect->t; in clear_copybit()
612 req->dst_rect.w = rect->r - rect->l; in clear_copybit()
613 req->dst_rect.h = rect->b - rect->t; in clear_copybit()
636 struct copybit_rect_t const *rect, in fill_color() argument
650 if (rect->l < 0 || (uint32_t)(rect->r - rect->l) > dst->w || in fill_color()
[all …]
/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 …]
/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()
/hardware/qcom/display/msm8996/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.cpp126 static bool validateCopybitRect(struct copybit_rect_t *rect) { in validateCopybitRect() argument
127 return ((rect->b > rect->t) && (rect->r > rect->l)) ; in validateCopybitRect()
595 struct copybit_rect_t *rect) in clear_copybit() argument
623 if (rect->l < 0 || (uint32_t)(rect->r - rect->l) > req->dst.width || in clear_copybit()
624 rect->t < 0 || (uint32_t)(rect->b - rect->t) > req->dst.height) { in clear_copybit()
626 __FUNCTION__, rect->l, rect->t, rect->r, rect->b); in clear_copybit()
630 req->dst_rect.x = rect->l; in clear_copybit()
631 req->dst_rect.y = rect->t; in clear_copybit()
632 req->dst_rect.w = rect->r - rect->l; in clear_copybit()
633 req->dst_rect.h = rect->b - rect->t; in clear_copybit()
[all …]
/hardware/qcom/display/msm8996/sdm/libs/utils/
Drect.cpp38 bool IsValid(const LayerRect &rect) { in IsValid() argument
39 return ((rect.bottom > rect.top) && (rect.right > rect.left)); in IsValid()
54 void Normalize(const uint32_t &align_x, const uint32_t &align_y, LayerRect *rect) { in Normalize() argument
55 rect->left = ROUND_UP_ALIGN_UP(rect->left, align_x); in Normalize()
56 rect->right = ROUND_UP_ALIGN_DOWN(rect->right, align_x); in Normalize()
57 rect->top = ROUND_UP_ALIGN_UP(rect->top, align_y); in Normalize()
58 rect->bottom = ROUND_UP_ALIGN_DOWN(rect->bottom, align_y); in Normalize()
80 LayerRect Reposition(const LayerRect &rect, const int &x_offset, const int &y_offset) { in Reposition() argument
83 if (!IsValid(rect)) { in Reposition()
87 res.left = rect.left + FLOAT(x_offset); in Reposition()
[all …]
/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/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/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/qcom/display/msm8996/sdm/include/core/
Dlayer_stack.h227 bool operator==(const LayerRect& rect) const {
228 return left == rect.left && right == rect.right && top == rect.top && bottom == rect.bottom;
231 bool operator!=(const LayerRect& rect) const {
232 return !operator==(rect);
241 LayerRect *rect = NULL; //!< Pointer to first element of array. member
/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/qcom/display/msm8994/libqdutils/
Dqd_utils.cpp97 int srcHeight, hwc_rect_t& rect) { in getAspectRatioPosition() argument
117 rect.left = x; in getAspectRatioPosition()
118 rect.top = y; in getAspectRatioPosition()
119 rect.right = srcWidth + rect.left; in getAspectRatioPosition()
120 rect.bottom = srcHeight + rect.top; in getAspectRatioPosition()
/hardware/qcom/display/msm8909/libqdutils/
Dqd_utils.cpp97 int srcHeight, hwc_rect_t& rect) { in getAspectRatioPosition() argument
117 rect.left = x; in getAspectRatioPosition()
118 rect.top = y; in getAspectRatioPosition()
119 rect.right = srcWidth + rect.left; in getAspectRatioPosition()
120 rect.bottom = srcHeight + rect.top; in getAspectRatioPosition()
/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/libhardware/include/hardware/
Dvehicle_camera.h131 int (*get_camera_crop)(struct vehicle_camera_device_t *device, android_native_rect_t *rect);
142 … int (*set_camera_crop)(struct vehicle_camera_device_t *device, const android_native_rect_t *rect);
152 int (*get_camera_position)(struct vehicle_camera_device_t *device, android_native_rect_t *rect);
164 … (*set_camera_position)(struct vehicle_camera_device_t *device, const android_native_rect_t *rect);
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dblit_engine_c2d.cpp74 BlitEngineC2d::RegionIterator::RegionIterator(LayerRectArray rect) { in RegionIterator() argument
75 rect_array = rect; in RegionIterator()
76 r.end = INT(rect.count); in RegionIterator()
81 int BlitEngineC2d::RegionIterator::iterate(copybit_region_t const *self, copybit_rect_t *rect) { in iterate() argument
82 if (!self || !rect) { in iterate()
89 rect->l = INT(me->rect_array.rect[me->r.current].left); in iterate()
90 rect->t = INT(me->rect_array.rect[me->r.current].top); in iterate()
91 rect->r = INT(me->rect_array.rect[me->r.current].right); in iterate()
92 rect->b = INT(me->rect_array.rect[me->r.current].bottom); in iterate()
188 int BlitEngineC2d::ClearTargetBuffer(private_handle_t* hnd, const LayerRect& rect) { in ClearTargetBuffer() argument
[all …]
Dhwc_color_manager.cpp288 INT(solid_fill_params_.rect.x), in CreateSolidFillLayers()
289 INT(solid_fill_params_.rect.y), in CreateSolidFillLayers()
290 solid_fill_params_.rect.x + INT(solid_fill_params_.rect.width), in CreateSolidFillLayers()
291 solid_fill_params_.rect.y + INT(solid_fill_params_.rect.height), in CreateSolidFillLayers()
296 layer.sourceCropf.left = solid_fill_params_.rect.x; in CreateSolidFillLayers()
297 layer.sourceCropf.top = solid_fill_params_.rect.y; in CreateSolidFillLayers()
298 layer.sourceCropf.right = UINT32(solid_fill_params_.rect.x) + solid_fill_params_.rect.width; in CreateSolidFillLayers()
299 layer.sourceCropf.bottom = UINT32(solid_fill_params_.rect.y) + solid_fill_params_.rect.height; in CreateSolidFillLayers()
/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()

1234