Home
last modified time | relevance | path

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

1234567891011

/hardware/google/gchips/gralloc4/src/hidl_common/
DMapper.h49 GrallocRect(Rect rect) { in GrallocRect() argument
50 left = rect.left; in GrallocRect()
51 top = rect.top; in GrallocRect()
52 right = rect.right; in GrallocRect()
53 bottom = rect.bottom; in GrallocRect()
56 GrallocRect(IMapper::Rect rect) { in GrallocRect() argument
57 left = rect.left; in GrallocRect()
58 top = rect.top; in GrallocRect()
59 right = rect.left + rect.width; in GrallocRect()
60 bottom = rect.top + rect.height; in GrallocRect()
[all …]
/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()
/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()
/hardware/qcom/sm7250/display/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()
589 struct copybit_rect_t *rect) in clear_copybit() argument
617 if (rect->l < 0 || (uint32_t)(rect->r - rect->l) > req->dst.width || in clear_copybit()
618 rect->t < 0 || (uint32_t)(rect->b - rect->t) > req->dst.height) { in clear_copybit()
620 __FUNCTION__, rect->l, rect->t, rect->r, rect->b); in clear_copybit()
624 req->dst_rect.x = rect->l; in clear_copybit()
625 req->dst_rect.y = rect->t; in clear_copybit()
626 req->dst_rect.w = rect->r - rect->l; in clear_copybit()
627 req->dst_rect.h = rect->b - rect->t; in clear_copybit()
[all …]
/hardware/qcom/display/msm8909w_3100/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()
597 struct copybit_rect_t *rect) in clear_copybit() argument
625 if (rect->l < 0 || (uint32_t)(rect->r - rect->l) > req->dst.width || in clear_copybit()
626 rect->t < 0 || (uint32_t)(rect->b - rect->t) > req->dst.height) { in clear_copybit()
628 __FUNCTION__, rect->l, rect->t, rect->r, rect->b); in clear_copybit()
632 req->dst_rect.x = rect->l; in clear_copybit()
633 req->dst_rect.y = rect->t; in clear_copybit()
634 req->dst_rect.w = rect->r - rect->l; in clear_copybit()
635 req->dst_rect.h = rect->b - rect->t; in clear_copybit()
[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()
/hardware/qcom/sm8150/display/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/msm8998/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/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/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()
/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/google/graphics/common/libacryl/
Dacrylic_internal.h44 static inline int32_t get_width(hwc_rect_t &rect) in get_width() argument
46 return rect.right - rect.left; in get_width()
49 static inline int32_t get_height(hwc_rect_t &rect) in get_height() argument
51 return rect.bottom - rect.top; in get_height()
97 static inline bool operator>(hw2d_rect_t rect, hw2d_coord_t xy)
99 int32_t len = static_cast<int32_t>(rect.pos.hori) + rect.size.hori;
103 len = static_cast<int32_t>(rect.pos.vert) + rect.size.vert;
110 static inline bool area_is_zero(hw2d_rect_t rect) in area_is_zero() argument
112 return (rect.size.hori == 0) && (rect.size.vert == 0); in area_is_zero()
/hardware/qcom/display/msm8996/sdm/libs/utils/
Drect.cpp39 bool IsValid(const LayerRect &rect) { in IsValid() argument
40 return ((rect.bottom > rect.top) && (rect.right > rect.left)); in IsValid()
55 void Normalize(const uint32_t &align_x, const uint32_t &align_y, LayerRect *rect) { in Normalize() argument
56 rect->left = ROUND_UP_ALIGN_UP(rect->left, align_x); in Normalize()
57 rect->right = ROUND_UP_ALIGN_DOWN(rect->right, align_x); in Normalize()
58 rect->top = ROUND_UP_ALIGN_UP(rect->top, align_y); in Normalize()
59 rect->bottom = ROUND_UP_ALIGN_DOWN(rect->bottom, align_y); in Normalize()
81 LayerRect Reposition(const LayerRect &rect, const int &x_offset, const int &y_offset) { in Reposition() argument
84 if (!IsValid(rect)) { in Reposition()
88 res.left = rect.left + FLOAT(x_offset); in Reposition()
[all …]
/hardware/qcom/display/msm8996/sdm/include/core/
Dlayer_stack.h213 bool operator==(const LayerRect& rect) const {
214 return left == rect.left && right == rect.right && top == rect.top && bottom == rect.bottom;
217 bool operator!=(const LayerRect& rect) const {
218 return !operator==(rect);
227 LayerRect *rect = NULL; //!< Pointer to first element of array. member
/hardware/qcom/display/msm8998/sdm/libs/utils/
Drect.cpp39 bool IsValid(const LayerRect &rect) { in IsValid() argument
40 return ((rect.bottom > rect.top) && (rect.right > rect.left)); in IsValid()
55 void Normalize(const uint32_t &align_x, const uint32_t &align_y, LayerRect *rect) { in Normalize() argument
56 rect->left = ROUND_UP_ALIGN_UP(rect->left, align_x); in Normalize()
57 rect->right = ROUND_UP_ALIGN_DOWN(rect->right, align_x); in Normalize()
58 rect->top = ROUND_UP_ALIGN_UP(rect->top, align_y); in Normalize()
59 rect->bottom = ROUND_UP_ALIGN_DOWN(rect->bottom, align_y); in Normalize()
81 LayerRect Reposition(const LayerRect &rect, const int &x_offset, const int &y_offset) { in Reposition() argument
84 if (!IsValid(rect)) { in Reposition()
88 res.left = rect.left + FLOAT(x_offset); in Reposition()
[all …]
/hardware/qcom/display/msm8909/sdm/libs/utils/
Drect.cpp39 bool IsValid(const LayerRect &rect) { in IsValid() argument
40 return ((rect.bottom > rect.top) && (rect.right > rect.left)); in IsValid()
60 void Normalize(const uint32_t &align_x, const uint32_t &align_y, LayerRect *rect) { in Normalize() argument
61 rect->left = ROUND_UP_ALIGN_UP(rect->left, align_x); in Normalize()
62 rect->right = ROUND_UP_ALIGN_DOWN(rect->right, align_x); in Normalize()
63 rect->top = ROUND_UP_ALIGN_UP(rect->top, align_y); in Normalize()
64 rect->bottom = ROUND_UP_ALIGN_DOWN(rect->bottom, align_y); in Normalize()
86 LayerRect Reposition(const LayerRect &rect, const int &x_offset, const int &y_offset) { in Reposition() argument
89 if (!IsValid(rect)) { in Reposition()
93 res.left = rect.left + FLOAT(x_offset); in Reposition()
[all …]
/hardware/qcom/display/msm8909w_3100/sdm/libs/utils/
Drect.cpp39 bool IsValid(const LayerRect &rect) { in IsValid() argument
40 return ((rect.bottom > rect.top) && (rect.right > rect.left)); in IsValid()
55 void Normalize(const uint32_t &align_x, const uint32_t &align_y, LayerRect *rect) { in Normalize() argument
56 rect->left = ROUND_UP_ALIGN_UP(rect->left, align_x); in Normalize()
57 rect->right = ROUND_UP_ALIGN_DOWN(rect->right, align_x); in Normalize()
58 rect->top = ROUND_UP_ALIGN_UP(rect->top, align_y); in Normalize()
59 rect->bottom = ROUND_UP_ALIGN_DOWN(rect->bottom, align_y); in Normalize()
81 LayerRect Reposition(const LayerRect &rect, const int &x_offset, const int &y_offset) { in Reposition() argument
84 if (!IsValid(rect)) { in Reposition()
88 res.left = rect.left + FLOAT(x_offset); in Reposition()
[all …]
/hardware/qcom/display/msm8998/sdm/include/core/
Dlayer_stack.h276 bool operator==(const LayerRect& rect) const {
277 return left == rect.left && right == rect.right && top == rect.top && bottom == rect.bottom;
280 bool operator!=(const LayerRect& rect) const {
281 return !operator==(rect);
290 LayerRect *rect = NULL; //!< Pointer to first element of array. member
/hardware/qcom/display/msm8909w_3100/sdm/include/core/
Dlayer_stack.h276 bool operator==(const LayerRect& rect) const {
277 return left == rect.left && right == rect.right && top == rect.top && bottom == rect.bottom;
280 bool operator!=(const LayerRect& rect) const {
281 return !operator==(rect);
290 LayerRect *rect = NULL; //!< Pointer to first element of array. member
/hardware/qcom/display/msm8909/sdm/include/core/
Dlayer_stack.h276 bool operator==(const LayerRect& rect) const {
277 return left == rect.left && right == rect.right && top == rect.top && bottom == rect.bottom;
280 bool operator!=(const LayerRect& rect) const {
281 return !operator==(rect);
290 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()
/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()

1234567891011