Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 105) sorted by relevance

12345

/lvgl-latest/tests/micropy_test/
Dmicropy.py295b'\xFF\xD8\xFF\xE0\x00\x10\x4A\x46\x49\x46\x00\x01\x01\x01\x00\x78\x00\x78\x00\x00\xFF\xE1\x00\x22…
296b'\x08\x07\x08\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C\x0C…
297b'\x62\x72\x82\x09\x0A\x16\x17\x18\x19\x1A\x25\x26\x27\x28\x29\x2A\x34\x35\x36\x37\x38\x39\x3A\x43…
298b'\x0B\xFF\xC4\x00\xB5\x11\x00\x02\x01\x02\x04\x04\x03\x04\x07\x05\x04\x04\x00\x01\x02\x77\x00\x01…
299b'\xD5\xD6\xD7\xD8\xD9\xDA\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA…
300b'\x6E\xAF\xED\x16\xFE\xC6\x7B\x5B\xD8\x6F\xAC\xEF\xED\xD9\x99\x44\xB0\xCF\x0B\x34\x72\x2E\xE5\x65…
301b'\x54\x45\x1A\x40\xE2\x5D\xA2\x4D\xBE\x60\x8C\xC8\x16\x43\x18\x60\x85\xC6\xEC\x64\x92\x7A\x39\x51…
302b'\x87\x8B\xBC\x23\x67\xFD\xB2\x9F\x68\xB2\x4B\xC8\xEE\x2D\x60\x60\xF7\x29\xB1\xC1\x19\xF2\x04\x8C…
303b'\xE3\xEB\x39\x9A\xCF\x53\xD4\xE6\x81\x6E\x84\x57\x2A\x9B\xE4\x82\x04\x66\x58\x94\x42\x33\xE6\xCD…
304b'\xFE\xCE\x1F\x0F\xFC\x45\xAC\x4B\x14\xDA\xBF\x88\x3C\x37\xA7\x6A\x57\xD2\x45\x1F\x94\x92\x4F\x35…
[all …]
D__init__.py62 CTRL_C = b'\x03' # 2 times to exit any running code
63 CTRL_D = b'\x04' # exit paste mode committing and running what has been pasted
64 CTRL_E = b'\x05' # enter paste mode
66 PASTE_PROMPT = b'==='
67 REPL_PROMPT = b'>>>'
98 micropy_data = b''
99 error_data = b''
121 if b'\nERROR END\n' in micropy_data:
122 error_data = micropy_data.split(b'\nERROR START\n')[-1].split(b'\nERROR END\n')[0]
123 micropy_data = b''
[all …]
/lvgl-latest/src/libs/bmp/
Dlv_bmp.c159 bmp_dsc_t b; in decoder_open() local
160 lv_memset(&b, 0x00, sizeof(b)); in decoder_open()
162 lv_fs_res_t res = lv_fs_open(&b.f, dsc->src, LV_FS_MODE_RD); in decoder_open()
166 lv_fs_read(&b.f, header, 54, NULL); in decoder_open()
169 lv_fs_close(&b.f); in decoder_open()
173 lv_memcpy(&b.px_offset, header + 10, 4); in decoder_open()
174 lv_memcpy(&b.px_width, header + 18, 4); in decoder_open()
175 lv_memcpy(&b.px_height, header + 22, 4); in decoder_open()
176 lv_memcpy(&b.bpp, header + 28, 2); in decoder_open()
177 b.row_size_bytes = ((b.bpp * b.px_width + 31) / 32) * 4; in decoder_open()
[all …]
/lvgl-latest/src/misc/
Dlv_math.h159 #define LV_MIN(a, b) ((a) < (b) ? (a) : (b)) argument
160 #define LV_MIN3(a, b, c) (LV_MIN(LV_MIN(a,b), c)) argument
161 #define LV_MIN4(a, b, c, d) (LV_MIN(LV_MIN(a,b), LV_MIN(c,d))) argument
163 #define LV_MAX(a, b) ((a) > (b) ? (a) : (b)) argument
164 #define LV_MAX3(a, b, c) (LV_MAX(LV_MAX(a,b), c)) argument
165 #define LV_MAX4(a, b, c, d) (LV_MAX(LV_MAX(a,b), LV_MAX(c,d))) argument
Dlv_color.c143 uint8_t r, g, b; in lv_color_hsv_to_rgb() local
162 b = p; in lv_color_hsv_to_rgb()
167 b = p; in lv_color_hsv_to_rgb()
172 b = t; in lv_color_hsv_to_rgb()
177 b = v; in lv_color_hsv_to_rgb()
182 b = v; in lv_color_hsv_to_rgb()
187 b = q; in lv_color_hsv_to_rgb()
191 lv_color_t result = lv_color_make(r, g, b); in lv_color_hsv_to_rgb()
199 uint16_t b = ((uint32_t)b8 << 10) / 255; in lv_color_rgb_to_hsv() local
201 uint16_t rgbMin = r < g ? (r < b ? r : b) : (g < b ? g : b); in lv_color_rgb_to_hsv()
[all …]
/lvgl-latest/src/libs/thorvg/
DtvgSvgLoaderCommon.h86 constexpr bool operator &(SvgFillFlags a, SvgFillFlags b)
88 return int(a) & int(b);
91 constexpr SvgFillFlags operator |(SvgFillFlags a, SvgFillFlags b)
93 return SvgFillFlags(int(a) | int(b));
110 constexpr bool operator &(SvgStrokeFlags a, SvgStrokeFlags b)
112 return int(a) & int(b);
115 constexpr SvgStrokeFlags operator |(SvgStrokeFlags a, SvgStrokeFlags b)
117 return SvgStrokeFlags(int(a) | int(b));
150 constexpr bool operator &(SvgStyleFlags a, SvgStyleFlags b)
152 return int(a) & int(b);
[all …]
DtvgSwMath.cpp101 int64_t mathMultiply(int64_t a, int64_t b) in mathMultiply() argument
110 if (b < 0) { in mathMultiply()
111 b = -b; in mathMultiply()
114 int64_t c = (a * b + 0x8000L) >> 16; in mathMultiply()
119 int64_t mathDivide(int64_t a, int64_t b) in mathDivide() argument
128 if (b < 0) { in mathDivide()
129 b = -b; in mathDivide()
132 int64_t q = b > 0 ? ((a << 16) + (b >> 1)) / b : 0x7FFFFFFFL; in mathDivide()
137 int64_t mathMulDiv(int64_t a, int64_t b, int64_t c) in mathMulDiv() argument
146 if (b < 0) { in mathMulDiv()
[all …]
DtvgSvgUtil.cpp54 char a, b; in svgUtilURLDecode() local
58 ((a = src[1]) && (b = src[2])) && in svgUtilURLDecode()
59 (isxdigit(a) && isxdigit(b))) { in svgUtilURLDecode()
60 decoded[idx++] = (_hexCharToDec(a) << 4) + _hexCharToDec(b); in svgUtilURLDecode()
DtvgSwFill.cpp49 static void _calculateCoefficients(const SwFill* fill, uint32_t x, uint32_t y, float& b, float& del… in _calculateCoefficients() argument
56 b = (radial->dr * radial->fr + rx * radial->dx + ry * radial->dy) * radial->invA; in _calculateCoefficients()
63 det = b * b + (rr - radial->fr * radial->fr) * radial->invA; in _calculateCoefficients()
64 deltaDet = 2.0f * b * deltaB + deltaB * deltaB + deltaRr + deltaDeltaRr * 0.5f; in _calculateCoefficients()
149 auto b = pColors->b; in _updateColorTable() local
150 auto rgba = surface->join(r, g, b, a); in _updateColorTable()
181 auto rgba2 = surface->join(next->r, next->g, next->b, a2); in _updateColorTable()
395 float b, deltaB, det, deltaDet, deltaDeltaDet; in fillRadial() local
396 _calculateCoefficients(fill, x, y, b, deltaB, det, deltaDet, deltaDeltaDet); in fillRadial()
400 *dst = opBlendNormal(_pixel(fill, sqrtf(det) - b), *dst, alpha(cmp)); in fillRadial()
[all …]
DtvgCompressor.cpp175 for (int b = 0; b < bitCount; ++b) { in appendBitsU64() local
176 const uint64_t mask = uint64_t(1) << b; in appendBitsU64()
235 for (int b = 0; b < bitCount; ++b) { in readBitsU64() local
240 const uint64_t mask = uint64_t(1) << b; in readBitsU64()
DtvgSwRaster.cpp139 static inline uint32_t _abgrJoin(uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _abgrJoin() argument
141 return (a << 24 | b << 16 | g << 8 | r); in _abgrJoin()
145 static inline uint32_t _argbJoin(uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _argbJoin() argument
147 return (a << 24 | r << 16 | g << 8 | b); in _argbJoin()
330 …wSurface* surface, const SwBBox& region, SwMask maskOp, uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _rasterCompositeMaskedRect() argument
349 …wSurface* surface, const SwBBox& region, SwMask maskOp, uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _rasterDirectMaskedRect() argument
370 …terMaskedRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _rasterMaskedRect() argument
378 …(surface->compositor->method)) return _rasterDirectMaskedRect(surface, region, maskOp, r, g, b, a); in _rasterMaskedRect()
379 else return _rasterCompositeMaskedRect(surface, region, maskOp, r, g, b, a); in _rasterMaskedRect()
384 …terMattedRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _rasterMattedRect() argument
[all …]
/lvgl-latest/src/libs/expat/
Dsiphash.h114 #define SIP_ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) argument
235 uint64_t b = (H->c + left) << 56; in sip24_final() local
239 b |= (uint64_t)H->buf[6] << 48; in sip24_final()
242 b |= (uint64_t)H->buf[5] << 40; in sip24_final()
245 b |= (uint64_t)H->buf[4] << 32; in sip24_final()
248 b |= (uint64_t)H->buf[3] << 24; in sip24_final()
251 b |= (uint64_t)H->buf[2] << 16; in sip24_final()
254 b |= (uint64_t)H->buf[1] << 8; in sip24_final()
257 b |= (uint64_t)H->buf[0] << 0; in sip24_final()
263 H->v3 ^= b; in sip24_final()
[all …]
/lvgl-latest/libs/nema_gfx/include/
Dnema_math.h153 #define nema_min2(a,b) (((a)<(b))?( a):(b)) argument
162 #define nema_max2(a,b) (((a)>(b))?( a):(b)) argument
/lvgl-latest/scripts/
DLVGLImage.py41 def color_pre_multiply(r, g, b, a, background): argument
47 (b * a + (255 - a) * bb) >> 8, a)
267 for r, g, b in zip(R, G, B):
268 ret += [r, g, b]
298 for r, g, b, a in zip(R, G, B, A):
299 ret += [r, g, b, a]
459 raw_data: bytes = b''):
472 pad = b'\x00' * 0
474 pad = b'\x00' * (self.blk_size - self.raw_data_len % self.blk_size)
497 data: bytes = b'') -> None:
[all …]
Dfiletohex.py9 b = bytearray() variable
16 b.extend(map(ord, s))
18 print(textwrap.fill(', '.join([hex(a) for a in b]), 96))
Dinstall-prerequisites.bat2 if %errorlevel% neq 0 exit /b %errorlevel%
4 if %errorlevel% neq 0 exit /b %errorlevel%
/lvgl-latest/src/libs/thorvg/rapidjson/internal/
Dswap.h33 inline void Swap(T& a, T& b) RAPIDJSON_NOEXCEPT { in Swap() argument
35 a = b; in Swap()
36 b = tmp; in Swap()
Dbiginteger.h194 const BigInteger *a, *b; // Makes a > b in Difference() local
196 if (cmp < 0) { a = &rhs; b = this; ret = true; } in Difference()
197 else { a = this; b = &rhs; ret = false; } in Difference()
202 if (i < b->count_) in Difference()
203 d -= b->digits_[i]; in Difference()
256 static uint64_t MulAdd64(uint64_t a, uint64_t b, uint64_t k, uint64_t* outHigh) { in MulAdd64() argument
258 uint64_t low = _umul128(a, b, outHigh) + k; in MulAdd64()
264 uint128 p = static_cast<uint128>(a) * static_cast<uint128>(b); in MulAdd64()
269 const uint64_t a0 = a & 0xFFFFFFFF, a1 = a >> 32, b0 = b & 0xFFFFFFFF, b1 = b >> 32; in MulAdd64()
Ditoa.h58 const uint32_t b = value / 10000; in u32toa() local
61 const uint32_t d1 = (b / 100) << 1; in u32toa()
62 const uint32_t d2 = (b % 100) << 1; in u32toa()
94 const uint32_t b = value / 10000; // 0 to 9999 in u32toa() local
97 const uint32_t d1 = (b / 100) << 1; in u32toa()
98 const uint32_t d2 = (b % 100) << 1; in u32toa()
155 const uint32_t b = v / 10000; in u64toa() local
158 const uint32_t d1 = (b / 100) << 1; in u64toa()
159 const uint32_t d2 = (b % 100) << 1; in u64toa()
/lvgl-latest/tests/src/test_cases/
Dtest_array.c83 lv_array_t a, b; in test_array_concat() local
85 lv_array_init(&b, 4, sizeof(int32_t)); in test_array_concat()
88 lv_array_push_back(&b, &i); in test_array_concat()
91 TEST_ASSERT_TRUE(lv_array_concat(&a, &b) == LV_RESULT_OK); in test_array_concat()
100 lv_array_deinit(&b); in test_array_concat()
/lvgl-latest/src/libs/tiny_ttf/
Dstb_truetype_htcw.h1187 static stbtt_uint8 stbtt__buf_get8(stbtt__buf * b) in stbtt__buf_get8() argument
1189 if(b->cursor >= b->size) in stbtt__buf_get8()
1192 long pos = (long)(b->cursor + b->offset); in stbtt__buf_get8()
1193 STBTT_STREAM_SEEK(b->data, pos); in stbtt__buf_get8()
1195 STBTT_STREAM_READ(b->data, &result, 1); in stbtt__buf_get8()
1196 ++b->cursor; in stbtt__buf_get8()
1199 return b->data[b->cursor++]; in stbtt__buf_get8()
1204 static stbtt_uint8 stbtt__buf_peek8(stbtt__buf * b) in stbtt__buf_peek8() argument
1206 if(b->cursor >= b->size) in stbtt__buf_peek8()
1209 long pos = (long)(b->cursor + b->offset); in stbtt__buf_peek8()
[all …]
/lvgl-latest/src/libs/qrcode/
Dlv_qrcode.c163 uint8_t b = 0; in lv_qrcode_update() local
178 if(!a) b |= (1 << (7 - p)); in lv_qrcode_update()
182 buf_u8[px] = ~b; in lv_qrcode_update()
183 b = 0; in lv_qrcode_update()
192 b |= (1 << (8 - p)) - 1; in lv_qrcode_update()
195 buf_u8[px] = ~b; in lv_qrcode_update()
/lvgl-latest/src/libs/tjpgd/
Dtjpgd.c201 unsigned int i, j, b, cls, num; in create_huffman_tbl() local
225 b = pb[i]; in create_huffman_tbl()
226 while(b--) ph[j++] = hc++; in create_huffman_tbl()
258 for(i = b = 0; b < HUFF_BIT; b++) { /* Create LUT */ in create_huffman_tbl()
259 for(j = pb[b]; j; j--) { in create_huffman_tbl()
260 … ti = ph[i] << (HUFF_BIT - 1 - b) & HUFF_MASK; /* Index of input pattern for the code */ in create_huffman_tbl()
262 … td = pd[i++] | ((b + 1) << 8); /* b15..b8: code length, b7..b0: zero run and data length */ in create_huffman_tbl()
263 … for(span = 1 << (HUFF_BIT - 1 - b); span; span--, tbl_ac[ti++] = (uint16_t)td) ; in create_huffman_tbl()
266 … td = pd[i++] | ((b + 1) << 4); /* b7..b4: code length, b3..b0: data length */ in create_huffman_tbl()
267 … for(span = 1 << (HUFF_BIT - 1 - b); span; span--, tbl_dc[ti++] = (uint8_t)td) ; in create_huffman_tbl()
[all …]
/lvgl-latest/demos/stress/
Dlv_demo_stress.c284 lv_obj_t * b; in obj_test_task_cb() local
285 b = lv_list_add_button(obj, LV_SYMBOL_OK, "1. Some very long text to scroll"); in obj_test_task_cb()
286 auto_delete(b, 10); in obj_test_task_cb()
289 b = lv_list_add_button(obj, LV_SYMBOL_OK, "4. Some very long text to scroll"); in obj_test_task_cb()
290 auto_delete(b, LV_DEMO_STRESS_TIME_STEP); in obj_test_task_cb()
291 b = lv_list_add_button(obj, LV_SYMBOL_OK, "5. Some very long text to scroll"); in obj_test_task_cb()
292 auto_delete(b, LV_DEMO_STRESS_TIME_STEP + 90); in obj_test_task_cb()
293 b = lv_list_add_button(obj, LV_SYMBOL_OK, "6. Some very long text to scroll"); in obj_test_task_cb()
294 auto_delete(b, LV_DEMO_STRESS_TIME_STEP + 10); in obj_test_task_cb()
/lvgl-latest/src/draw/vg_lite/
Dlv_vg_lite_math.h59 static inline bool math_equal(float a, float b) in math_equal() argument
61 return math_zero(a - b); in math_equal()

12345