Home
last modified time | relevance | path

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

12345678

/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/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/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/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()
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/sdm845/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()
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/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()
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/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/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()
Dcopybit.cpp124 static bool validateCopybitRect(struct copybit_rect_t *rect) { in validateCopybitRect() argument
125 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/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/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/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/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/interfaces/camera/device/3.4/default/
DExternalCameraUtils.cpp116 int AllocatedFrame::getCroppedLayout(const IMapper::Rect& rect, YCbCrLayout* out) { in getCroppedLayout() argument
123 if ((rect.left + rect.width) > static_cast<int>(mWidth) || in getCroppedLayout()
124 (rect.top + rect.height) > static_cast<int>(mHeight) || in getCroppedLayout()
125 (rect.left % 2) || (rect.top % 2) || (rect.width % 2) || (rect.height % 2)) { in getCroppedLayout()
127 rect.left, rect.top, rect.width, rect.height); in getCroppedLayout()
131 out->y = mData.data() + mWidth * rect.top + rect.left; in getCroppedLayout()
135 out->cb = cbStart + mWidth * rect.top / 4 + rect.left / 2; in getCroppedLayout()
136 out->cr = crStart + mWidth * rect.top / 4 + rect.left / 2; in getCroppedLayout()
/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/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

12345678