fix(typos): fix some typos (#4864)

Signed-off-by: YanXiaowei <yanxiaowei@xiaomi.com>
Co-authored-by: YanXiaowei <yanxiaowei@xiaomi.com>
This commit is contained in:
bjsylvia
2023-11-27 03:41:09 +08:00
committed by GitHub
parent de9c956c36
commit 950cebf971
7 changed files with 20 additions and 20 deletions

View File

@@ -34,7 +34,7 @@ Configure X11 driver
#define LV_X11_DIRECT_EXIT 1 /*preferred default - ends the application automatically if last window has been closed*/
// or
#define LV_X11_DIRECT_EXIT 0 /*applicaion is responsible for ending the application (e.g. by own LV_EVENT_DELETE handler*/
#define LV_X11_DIRECT_EXIT 0 /*application is responsible for ending the application (e.g. by own LV_EVENT_DELETE handler*/
- Double buffering
@@ -111,7 +111,7 @@ Usage
lv_x11_inputs_create(disp, &my_mouse_cursor_icon);
#if !LV_X11_DIRECT_EXIT
/* set optional window close callback to enable applicaton cleanup and exit */
/* set optional window close callback to enable application cleanup and exit */
lv_x11_window_set_close_cb(disp, on_close_cb, disp);
#endif

View File

@@ -267,7 +267,7 @@ Label
Bind an integer, string, or pointer (pointing to a string) subject to a label.
An optional format string can be added with 1 format specifier (e.g. "%d °C")
If the format string is NULL the value will be used directly. In this case on string ans pointer type subjects can be used.
If the format string is NULL the value will be used directly. In this case on string and pointer type subjects can be used.
.. code:: c

View File

@@ -37,7 +37,7 @@ Sections
A section is the space between a minor and a major range. They can be created with :cpp:expr:`lv_scale_add_section(scale)` and it handles back an :cpp:expr:`lv_scale_section_t` pointer.
The range of the section is configured with :cpp:expr:`lv_scale_section_set_range(section, minor_range, major_range)`. The style of each of the three parts of the scale section can be set with :cpp:expr:`lv_scale_section_set_style(section, PART, style_pointer)`, where `PART` can be :cpp:enumarator: `LV_PART_MAIN`, :cpp:enumarator: `LV_PART_ITEMS` or :cpp:enumarator: `LV_PART_INDICATOR`, :cpp:expr:`style_pointer` should point to a global or static :cpp:expr:`lv_style_t` variable.
The range of the section is configured with :cpp:expr:`lv_scale_section_set_range(section, minor_range, major_range)`. The style of each of the three parts of the scale section can be set with :cpp:expr:`lv_scale_section_set_style(section, PART, style_pointer)`, where `PART` can be :cpp:enumerator: `LV_PART_MAIN`, :cpp:enumerator: `LV_PART_ITEMS` or :cpp:enumerator: `LV_PART_INDICATOR`, :cpp:expr:`style_pointer` should point to a global or static :cpp:expr:`lv_style_t` variable.
For labels the following properties can be configured:
:cpp:expr:`lv_style_set_text_font`, :cpp:expr:`lv_style_set_text_color`, :cpp:expr:`lv_style_set_text_letter_space`, :cpp:expr:`lv_style_set_text_opa`.

View File

@@ -735,7 +735,7 @@ void lv_obj_move_to(lv_obj_t * obj, int32_t x, int32_t y)
lv_obj_invalidate(obj);
/*If the object was out of the parent invalidate the new scrollbar area too.
*If it wasn't out of the parent but out now, also invalidate the srollbars*/
*If it wasn't out of the parent but out now, also invalidate the scrollbars*/
if(parent) {
bool on2 = _lv_area_is_in(&obj->coords, &parent_fit_area, 0);
if(on1 || (!on1 && on2)) lv_obj_scrollbar_invalidate(parent);

View File

@@ -221,7 +221,7 @@ static bool lv_barcode_change_buf_size(lv_obj_t * obj, int32_t w, int32_t h)
uint32_t stride = lv_draw_buf_width_to_stride(w, LV_COLOR_FORMAT_I1);
uint32_t buf_size = stride * h;
/*+8 for the 2x4 byte pallette*/
/*+8 for the 2x4 byte palette*/
buf = lv_draw_buf_malloc(buf_size + 8, LV_COLOR_FORMAT_I1);
LV_ASSERT_MALLOC(buf);

View File

@@ -16,9 +16,9 @@
/ Oct 04, 2011 R0.01 First release.
/ Feb 19, 2012 R0.01a Fixed decompression fails when scan starts with an escape seq.
/ Sep 03, 2012 R0.01b Added JD_TBLCLIP option.
/ Mar 16, 2019 R0.01c Supprted stdint.h.
/ Mar 16, 2019 R0.01c Supported stdint.h.
/ Jul 01, 2020 R0.01d Fixed wrong integer type usage.
/ May 08, 2021 R0.02 Supprted grayscale image. Separated configuration options.
/ May 08, 2021 R0.02 Supported grayscale image. Separated configuration options.
/ Jun 11, 2021 R0.02a Some performance improvement.
/ Jul 01, 2021 R0.03 Added JD_FASTDECODE option.
/ Some performance improvement.
@@ -142,7 +142,7 @@ static void * alloc_pool( /* Pointer to allocated memory block (NULL:no memory
if(jd->sz_pool >= ndata) {
jd->sz_pool -= ndata;
rp = (char *)jd->pool; /* Get start of available memory pool */
jd->pool = (void *)(rp + ndata); /* Allocate requierd bytes */
jd->pool = (void *)(rp + ndata); /* Allocate required bytes */
}
return (void *)rp; /* Return allocated memory block (NULL:no memory to allocate) */
@@ -381,7 +381,7 @@ static int huffext( /* >=0: decoded data, <0: error code */
jd->wreg = w;
#if JD_FASTDECODE == 2
/* Table serch for the short codes */
/* Table search for the short codes */
d = (unsigned int)(w >> (wbit - HUFF_BIT)); /* Short code as table index */
if(cls) { /* AC element */
d = jd->hufflut_ac[id][d]; /* Table decode */
@@ -398,13 +398,13 @@ static int huffext( /* >=0: decoded data, <0: error code */
}
}
/* Incremental serch for the codes longer than HUFF_BIT */
/* Incremental search for the codes longer than HUFF_BIT */
hb = jd->huffbits[id][cls] + HUFF_BIT; /* Bit distribution table */
hc = jd->huffcode[id][cls] + jd->longofs[id][cls]; /* Code word table */
hd = jd->huffdata[id][cls] + jd->longofs[id][cls]; /* Data table */
bl = HUFF_BIT + 1;
#else
/* Incremental serch for all codes */
/* Incremental search for all codes */
hb = jd->huffbits[id][cls]; /* Bit distribution table */
hc = jd->huffcode[id][cls]; /* Code word table */
hd = jd->huffdata[id][cls]; /* Data table */
@@ -533,7 +533,7 @@ static int bitext( /* >=0: extracted data, <0: error code */
JRESULT jd_restart(
JDEC * jd, /* Pointer to the decompressor object */
uint16_t rstn /* Expected restert sequense number */
uint16_t rstn /* Expected restert sequence number */
)
{
unsigned int i;
@@ -795,7 +795,7 @@ JRESULT jd_mcu_load(
if(JD_FORMAT != 2 || !cmp) { /* C components may not be processed if in grayscale output */
if(z == 1 || (JD_USE_SCALE &&
jd->scale ==
3)) { /* If no AC element or scale ratio is 1/8, IDCT can be ommited and the block is filled with DC value */
3)) { /* If no AC element or scale ratio is 1/8, IDCT can be omitted and the block is filled with DC value */
d = (jd_yuv_t)((*tmp / 256) + 128);
if(JD_FASTDECODE >= 1) {
for(i = 0; i < 64; bp[i++] = d) ;
@@ -874,7 +874,7 @@ JRESULT jd_mcu_output(
cb = pc[0] - 128; /* Get Cb/Cr component and remove offset */
cr = pc[64] - 128;
if(mx == 16) { /* Double block width? */
if(ix == 8) py += 64 - 8; /* Jump to next block if double block heigt */
if(ix == 8) py += 64 - 8; /* Jump to next block if double block height */
pc += ix & 1; /* Step forward chroma pointer every two pixels */
}
else { /* Single block width */
@@ -954,7 +954,7 @@ JRESULT jd_prepare(
memset(jd, 0, sizeof(
JDEC)); /* Clear decompression object (this might be a problem if machine's null pointer is not all bits zero) */
jd->pool = pool; /* Work memroy */
jd->pool = pool; /* Work memory */
jd->pool_original = pool;
jd->sz_pool = sz_pool; /* Size of given work memory */
jd->infunc = infunc; /* Stream input function */

View File

@@ -59,13 +59,13 @@ struct JDEC {
size_t dctr; /* Number of bytes available in the input buffer */
uint8_t * dptr; /* Current data read ptr */
uint8_t * inbuf; /* Bit stream input buffer */
uint8_t dbit; /* Number of bits availavble in wreg or reading bit mask */
uint8_t dbit; /* Number of bits available in wreg or reading bit mask */
uint8_t scale; /* Output scaling ratio */
uint8_t msx, msy; /* MCU size in unit of block (width, height) */
uint8_t qtid[3]; /* Quantization table ID of each component, Y, Cb, Cr */
uint8_t ncomp; /* Number of color components 1:grayscale, 3:color */
int16_t dcv[3]; /* Previous DC element of each component */
uint16_t nrst; /* Restart inverval */
uint16_t nrst; /* Restart interval */
uint16_t rst; /* Restart count*/
uint16_t rsc; /* Expected restart sequence ID*/
uint16_t width, height; /* Size of the input image (pixel) */
@@ -86,9 +86,9 @@ struct JDEC {
jd_yuv_t * mcubuf; /* Working buffer for the MCU */
void * pool; /* Pointer to available memory pool */
void * pool_original; /* Pointer to original pool */
size_t sz_pool; /* Size of momory pool (bytes available) */
size_t sz_pool; /* Size of memory pool (bytes available) */
size_t (*infunc)(JDEC *, uint8_t *, size_t); /* Pointer to jpeg stream input function */
void * device; /* Pointer to I/O device identifiler for the session */
void * device; /* Pointer to I/O device identifier for the session */
};