Home
last modified time | relevance | path

Searched refs:rhs (Results 1 – 25 of 32) sorted by relevance

12

/lvgl-latest/src/libs/thorvg/
DtvgRender.cpp52 void RenderRegion::intersect(const RenderRegion& rhs) in intersect() argument
56 auto x2 = rhs.x + rhs.w; in intersect()
57 auto y2 = rhs.y + rhs.h; in intersect()
59 x = (x > rhs.x) ? x : rhs.x; in intersect()
60 y = (y > rhs.y) ? y : rhs.y; in intersect()
69 void RenderRegion::add(const RenderRegion& rhs) in add() argument
71 if (rhs.x < x) { in add()
72 w += (x - rhs.x); in add()
73 x = rhs.x; in add()
75 if (rhs.y < y) { in add()
[all …]
DtvgLottieCommon.h83 static inline RGB24 operator-(const RGB24& lhs, const RGB24& rhs)
85 return {lhs.rgb[0] - rhs.rgb[0], lhs.rgb[1] - rhs.rgb[1], lhs.rgb[2] - rhs.rgb[2]};
89 static inline RGB24 operator+(const RGB24& lhs, const RGB24& rhs)
91 return {lhs.rgb[0] + rhs.rgb[0], lhs.rgb[1] + rhs.rgb[1], lhs.rgb[2] + rhs.rgb[2]};
95 static inline RGB24 operator*(const RGB24& lhs, float rhs)
97 …n {(int32_t)nearbyintf(lhs.rgb[0] * rhs), (int32_t)nearbyintf(lhs.rgb[1] * rhs), (int32_t)nearbyin…
DtvgMath.h88 Matrix operator*(const Matrix& lhs, const Matrix& rhs);
89 bool operator==(const Matrix& lhs, const Matrix& rhs);
154 static inline bool operator!=(const Matrix& lhs, const Matrix& rhs)
156 return !(lhs == rhs);
160 static inline void operator*=(Matrix& lhs, const Matrix& rhs)
162 lhs = lhs * rhs;
180 static inline float cross(const Point& lhs, const Point& rhs) in cross() argument
182 return lhs.x * rhs.y - rhs.x * lhs.y; in cross()
210 static inline bool operator==(const Point& lhs, const Point& rhs)
212 return tvg::equal(lhs.x, rhs.x) && tvg::equal(lhs.y, rhs.y);
[all …]
DtvgRender.h72 RenderSurface(const RenderSurface* rhs) in RenderSurface()
74 data = rhs->data; in RenderSurface()
75 stride = rhs->stride; in RenderSurface()
76 w = rhs->w; in RenderSurface()
77 h = rhs->h; in RenderSurface()
78 cs = rhs->cs; in RenderSurface()
79 channelSize = rhs->channelSize; in RenderSurface()
80 premultiplied = rhs->premultiplied; in RenderSurface()
96 void intersect(const RenderRegion& rhs);
97 void add(const RenderRegion& rhs);
[all …]
DtvgArray.h50 Array(const Array& rhs) in Array()
53 *this = rhs; in Array()
65 void push(const Array<T>& rhs) in push()
67 if (rhs.count == 0) return; in push()
68 grow(rhs.count); in push()
69 memcpy(data + count, rhs.data, rhs.count * sizeof(T)); in push()
70 count += rhs.count; in push()
165 void operator=(const Array& rhs)
167 reserve(rhs.count);
168 if (rhs.count > 0) memcpy(data, rhs.data, sizeof(T) * rhs.count);
[all …]
DtvgMath.cpp169 Matrix operator*(const Matrix& lhs, const Matrix& rhs) in operator *() argument
173 m.e11 = lhs.e11 * rhs.e11 + lhs.e12 * rhs.e21 + lhs.e13 * rhs.e31; in operator *()
174 m.e12 = lhs.e11 * rhs.e12 + lhs.e12 * rhs.e22 + lhs.e13 * rhs.e32; in operator *()
175 m.e13 = lhs.e11 * rhs.e13 + lhs.e12 * rhs.e23 + lhs.e13 * rhs.e33; in operator *()
177 m.e21 = lhs.e21 * rhs.e11 + lhs.e22 * rhs.e21 + lhs.e23 * rhs.e31; in operator *()
178 m.e22 = lhs.e21 * rhs.e12 + lhs.e22 * rhs.e22 + lhs.e23 * rhs.e32; in operator *()
179 m.e23 = lhs.e21 * rhs.e13 + lhs.e22 * rhs.e23 + lhs.e23 * rhs.e33; in operator *()
181 m.e31 = lhs.e31 * rhs.e11 + lhs.e32 * rhs.e21 + lhs.e33 * rhs.e31; in operator *()
182 m.e32 = lhs.e31 * rhs.e12 + lhs.e32 * rhs.e22 + lhs.e33 * rhs.e32; in operator *()
183 m.e33 = lhs.e31 * rhs.e13 + lhs.e32 * rhs.e23 + lhs.e33 * rhs.e33; in operator *()
[all …]
DtvgLottieBuilder.h82 RenderContext(const RenderContext& rhs, Shape* propagator, bool mergeable = false)
84 if (mergeable) merging = rhs.merging;
87 this->repeaters = rhs.repeaters;
88 if (rhs.roundness) this->roundness = new LottieRoundnessModifier(rhs.roundness->r);
89 …if (rhs.offsetPath) this->offsetPath = new LottieOffsetModifier(rhs.offsetPath->offset, rhs.offset…
DtvgSwCommon.h52 SwPoint& operator+=(const SwPoint& rhs)
54 x += rhs.x;
55 y += rhs.y;
59 SwPoint operator+(const SwPoint& rhs) const
61 return {x + rhs.x, y + rhs.y};
64 SwPoint operator-(const SwPoint& rhs) const
66 return {x - rhs.x, y - rhs.y};
69 bool operator==(const SwPoint& rhs) const
71 return (x == rhs.x && y == rhs.y);
74 bool operator!=(const SwPoint& rhs) const
[all …]
DtvgStr.cpp225 char* strAppend(char* lhs, const char* rhs, size_t n) in strAppend() argument
227 if (!rhs) return lhs; in strAppend()
228 if (!lhs) return strDuplicate(rhs, n); in strAppend()
230 return strncat(lhs, rhs, n); in strAppend()
/lvgl-latest/src/libs/thorvg/rapidjson/internal/
Dstack.h45 Stack(Stack&& rhs) in Stack() argument
46 : allocator_(rhs.allocator_), in Stack()
47 ownAllocator_(rhs.ownAllocator_), in Stack()
48 stack_(rhs.stack_), in Stack()
49 stackTop_(rhs.stackTop_), in Stack()
50 stackEnd_(rhs.stackEnd_), in Stack()
51 initialCapacity_(rhs.initialCapacity_) in Stack()
53 rhs.allocator_ = 0; in Stack()
54 rhs.ownAllocator_ = 0; in Stack()
55 rhs.stack_ = 0; in Stack()
[all …]
Dbiginteger.h36 BigInteger(const BigInteger& rhs) : count_(rhs.count_) { in BigInteger() argument
37 std::memcpy(digits_, rhs.digits_, count_ * sizeof(Type)); in BigInteger()
60 BigInteger& operator=(const BigInteger &rhs)
62 if (this != &rhs) {
63 count_ = rhs.count_;
64 std::memcpy(digits_, rhs.digits_, count_ * sizeof(Type));
159 bool operator==(const BigInteger& rhs) const {
160 … return count_ == rhs.count_ && std::memcmp(digits_, rhs.digits_, count_ * sizeof(Type)) == 0;
163 bool operator==(const Type rhs) const {
164 return count_ == 1 && digits_[0] == rhs;
[all …]
Ddiyfp.h71 DiyFp operator-(const DiyFp& rhs) const {
72 return DiyFp(f - rhs.f, e);
75 DiyFp operator*(const DiyFp& rhs) const {
78 uint64_t l = _umul128(f, rhs.f, &h);
81 return DiyFp(h, e + rhs.e + 64);
84 uint128 p = static_cast<uint128>(f) * static_cast<uint128>(rhs.f);
89 return DiyFp(h, e + rhs.e + 64);
94 const uint64_t c = rhs.f >> 32;
95 const uint64_t d = rhs.f & M32;
102 return DiyFp(ac + (ad >> 32) + (bc >> 32) + (tmp >> 32), e + rhs.e + 64);
/lvgl-latest/src/libs/thorvg/rapidjson/
Dallocators.h216 MemoryPoolAllocator(const MemoryPoolAllocator& rhs) RAPIDJSON_NOEXCEPT : in MemoryPoolAllocator() argument
217 chunk_capacity_(rhs.chunk_capacity_), in MemoryPoolAllocator()
218 baseAllocator_(rhs.baseAllocator_), in MemoryPoolAllocator()
219 shared_(rhs.shared_) in MemoryPoolAllocator()
224 MemoryPoolAllocator& operator=(const MemoryPoolAllocator& rhs) RAPIDJSON_NOEXCEPT
226 RAPIDJSON_NOEXCEPT_ASSERT(rhs.shared_->refcount > 0);
227 ++rhs.shared_->refcount;
229 baseAllocator_ = rhs.baseAllocator_;
230 chunk_capacity_ = rhs.chunk_capacity_;
231 shared_ = rhs.shared_;
[all …]
Duri.h65 …GenericUri(const GenericUri& rhs) : uri_(), base_(), scheme_(), auth_(), path_(), query_(), frag_(… in GenericUri() argument
66 *this = rhs; in GenericUri()
70 …GenericUri(const GenericUri& rhs, Allocator* allocator) : uri_(), base_(), scheme_(), auth_(), pat… in GenericUri() argument
71 *this = rhs; in GenericUri()
81 GenericUri& operator=(const GenericUri& rhs) {
82 if (this != &rhs) {
85 Allocate(rhs.GetStringLength());
86 auth_ = CopyPart(scheme_, rhs.scheme_, rhs.GetSchemeStringLength());
87 path_ = CopyPart(auth_, rhs.auth_, rhs.GetAuthStringLength());
88 query_ = CopyPart(path_, rhs.path_, rhs.GetPathStringLength());
[all …]
Ddocument.h127 GenericMember(GenericMember&& rhs) RAPIDJSON_NOEXCEPT in GenericMember() argument
128 : name(std::move(rhs.name)), in GenericMember()
129 value(std::move(rhs.value)) in GenericMember()
134 GenericMember& operator=(GenericMember&& rhs) RAPIDJSON_NOEXCEPT {
135 return *this = static_cast<GenericMember&>(rhs);
142 GenericMember& operator=(GenericMember& rhs) RAPIDJSON_NOEXCEPT {
143 if (RAPIDJSON_LIKELY(this != &rhs)) {
144 name = rhs.name;
145 value = rhs.value;
158 GenericMember(const GenericMember& rhs);
[all …]
Dstringbuffer.h48 GenericStringBuffer(GenericStringBuffer&& rhs) : stack_(std::move(rhs.stack_)) {} in GenericStringBuffer() argument
49 GenericStringBuffer& operator=(GenericStringBuffer&& rhs) {
50 if (&rhs != this)
51 stack_ = std::move(rhs.stack_);
Dpointer.h157 …GenericPointer(const GenericPointer& rhs) : allocator_(), ownAllocator_(), nameBuffer_(), tokens_(… in GenericPointer() argument
158 *this = rhs; in GenericPointer()
162 …GenericPointer(const GenericPointer& rhs, Allocator* allocator) : allocator_(allocator), ownAlloca… in GenericPointer() argument
163 *this = rhs; in GenericPointer()
174 GenericPointer& operator=(const GenericPointer& rhs) {
175 if (this != &rhs) {
180 tokenCount_ = rhs.tokenCount_;
181 parseErrorOffset_ = rhs.parseErrorOffset_;
182 parseErrorCode_ = rhs.parseErrorCode_;
184 if (rhs.nameBuffer_)
[all …]
/lvgl-latest/src/draw/vg_lite/
Dlv_vg_lite_stroke.c70 …tic lv_cache_compare_res_t stroke_compare_cb(const stroke_item_t * lhs, const stroke_item_t * rhs);
293 …c lv_cache_compare_res_t dash_pattern_compare(const stroke_item_t * lhs, const stroke_item_t * rhs) in dash_pattern_compare() argument
299 const lv_array_t * rhs_dash_pattern = rhs->dash_pattern_type == DASH_PATTERN_TYPE_LV ? in dash_pattern_compare()
300 &rhs->lv.dash_pattern : in dash_pattern_compare()
301 &rhs->vg.dash_pattern; in dash_pattern_compare()
331 static lv_cache_compare_res_t path_compare(const stroke_item_t * lhs, const stroke_item_t * rhs) in path_compare() argument
337 const vg_lite_path_t * rhs_path = rhs->vg.path ? in path_compare()
338 lv_vg_lite_path_get_path(rhs->vg.path) : in path_compare()
339 lv_vg_lite_path_get_path(rhs->lv.path); in path_compare()
356 …atic lv_cache_compare_res_t stroke_compare_cb(const stroke_item_t * lhs, const stroke_item_t * rhs) in stroke_compare_cb() argument
[all …]
Dlv_vg_lite_grad.c60 static lv_cache_compare_res_t grad_compare_cb(const grad_item_t * lhs, const grad_item_t * rhs);
615 static lv_cache_compare_res_t grad_compare_cb(const grad_item_t * lhs, const grad_item_t * rhs) in grad_compare_cb() argument
618 if(lhs->type != rhs->type) { in grad_compare_cb()
619 return lhs->type > rhs->type ? 1 : -1; in grad_compare_cb()
623 if(lhs->lv.spread != rhs->lv.spread) { in grad_compare_cb()
624 return lhs->lv.spread > rhs->lv.spread ? 1 : -1; in grad_compare_cb()
634 if(!math_equal(lhs->lv.x1, rhs->lv.x1)) { in grad_compare_cb()
635 return lhs->lv.x1 > rhs->lv.x1 ? 1 : -1; in grad_compare_cb()
638 if(!math_equal(lhs->lv.y1, rhs->lv.y1)) { in grad_compare_cb()
639 return lhs->lv.y1 > rhs->lv.y1 ? 1 : -1; in grad_compare_cb()
[all …]
/lvgl-latest/tests/src/test_cases/cache/
Dtest_cache.c25 static lv_cache_compare_res_t compare_cb(const test_data * lhs, const test_data * rhs) in compare_cb() argument
27 if(lhs->key1 != rhs->key1) { in compare_cb()
28 return lhs->key1 > rhs->key1 ? 1 : -1; in compare_cb()
30 if(lhs->key2 != rhs->key2) { in compare_cb()
31 return lhs->key2 > rhs->key2 ? 1 : -1; in compare_cb()
/lvgl-latest/src/libs/freetype/
Dlv_freetype_image.c44 const lv_freetype_image_cache_data_t * rhs);
202 const lv_freetype_image_cache_data_t * rhs) in freetype_image_compare_cb() argument
204 if(lhs->glyph_index != rhs->glyph_index) { in freetype_image_compare_cb()
205 return lhs->glyph_index > rhs->glyph_index ? 1 : -1; in freetype_image_compare_cb()
207 if(lhs->size != rhs->size) { in freetype_image_compare_cb()
208 return lhs->size > rhs->size ? 1 : -1; in freetype_image_compare_cb()
Dlv_freetype_glyph.c41 const lv_freetype_glyph_cache_data_t * rhs);
216 const lv_freetype_glyph_cache_data_t * rhs) in freetype_glyph_compare_cb() argument
218 if(lhs->unicode != rhs->unicode) { in freetype_glyph_compare_cb()
219 return lhs->unicode > rhs->unicode ? 1 : -1; in freetype_glyph_compare_cb()
221 if(lhs->size != rhs->size) { in freetype_glyph_compare_cb()
222 return lhs->size > rhs->size ? 1 : -1; in freetype_glyph_compare_cb()
Dlv_freetype.c52 const lv_freetype_cache_node_t * rhs);
401 const lv_freetype_cache_node_t * rhs) in cache_node_cache_compare_cb() argument
403 if(lhs->render_mode != rhs->render_mode) { in cache_node_cache_compare_cb()
404 return lhs->render_mode > rhs->render_mode ? 1 : -1; in cache_node_cache_compare_cb()
406 if(lhs->style != rhs->style) { in cache_node_cache_compare_cb()
407 return lhs->style > rhs->style ? 1 : -1; in cache_node_cache_compare_cb()
410 int32_t cmp_res = lv_strcmp(lhs->pathname, rhs->pathname); in cache_node_cache_compare_cb()
/lvgl-latest/src/misc/cache/
Dlv_image_header_cache.c34 … const lv_image_header_cache_data_t * rhs);
140 const lv_image_header_cache_data_t * rhs) in image_header_cache_compare_cb() argument
142 return image_cache_common_compare(lhs->src, lhs->src_type, rhs->src, rhs->src_type); in image_header_cache_compare_cb()
Dlv_image_cache.c36 const lv_image_cache_data_t * rhs);
145 const lv_image_cache_data_t * rhs) in image_cache_compare_cb() argument
147 return image_cache_common_compare(lhs->src, lhs->src_type, rhs->src, rhs->src_type); in image_cache_compare_cb()

12