Searched refs:seg (Results 1 – 2 of 2) sorted by relevance
/lvgl-3.5.0/src/extra/libs/qrcode/ |
D | qrcodegen.c | 136 struct qrcodegen_Segment seg; in qrcodegen_encodeText() local 140 seg = qrcodegen_makeNumeric(text, tempBuffer); in qrcodegen_encodeText() 144 seg = qrcodegen_makeAlphanumeric(text, tempBuffer); in qrcodegen_encodeText() 150 seg.mode = qrcodegen_Mode_BYTE; in qrcodegen_encodeText() 151 seg.bitLength = calcSegmentBitLength(seg.mode, textLen); in qrcodegen_encodeText() 152 if (seg.bitLength == -1) in qrcodegen_encodeText() 154 seg.numChars = (int)textLen; in qrcodegen_encodeText() 155 seg.data = tempBuffer; in qrcodegen_encodeText() 157 …return qrcodegen_encodeSegmentsAdvanced(&seg, 1, ecl, minVersion, maxVersion, mask, boostEcl, temp… in qrcodegen_encodeText() 169 struct qrcodegen_Segment seg; in qrcodegen_encodeBinary() local [all …]
|
/lvgl-3.5.0/src/extra/libs/sjpg/ |
D | tjpgd.c | 970 uint8_t *seg, b; in jd_prepare() local 983 jd->inbuf = seg = alloc_pool(jd, JD_SZBUF); /* Allocate stream input buffer */ in jd_prepare() 984 if (!seg) return JDR_MEM1; in jd_prepare() 988 if (jd->infunc(jd, seg, 1) != 1) return JDR_INP; /* Err: SOI was not detected */ in jd_prepare() 990 marker = marker << 8 | seg[0]; in jd_prepare() 995 if (jd->infunc(jd, seg, 4) != 4) return JDR_INP; in jd_prepare() 996 marker = LDB_WORD(seg); /* Marker */ in jd_prepare() 997 len = LDB_WORD(seg + 2); /* Length field */ in jd_prepare() 1005 if (jd->infunc(jd, seg, len) != len) return JDR_INP; /* Load segment data */ in jd_prepare() 1007 jd->width = LDB_WORD(&seg[3]); /* Image width in unit of pixel */ in jd_prepare() [all …]
|