Home
last modified time | relevance | path

Searched refs:qr (Results 1 – 25 of 69) sorted by relevance

123

/third_party/qrcodegen/rust/examples/
Dqrcodegen-demo.rs53 let qr: QrCode = QrCode::encode_text(text, errcorlvl).unwrap(); in do_basic_demo() localVariable
54 print_qr(&qr); in do_basic_demo()
55 println!("{}", to_svg_string(&qr, 4)); in do_basic_demo()
62 …let qr = QrCode::encode_text("314159265358979323846264338327950288419716939937510", QrCodeEcc::Med… in do_variety_demo() localVariable
63 print_qr(&qr); in do_variety_demo()
66 …let qr = QrCode::encode_text("DOLLAR-AMOUNT:$39.87 PERCENTAGE:100.00% OPERATIONS:+-*/", QrCodeEcc:… in do_variety_demo() localVariable
67 print_qr(&qr); in do_variety_demo()
70 let qr = QrCode::encode_text("こんにちwa、世界! αβγδ", QrCodeEcc::Quartile).unwrap(); in do_variety_demo() localVariable
71 print_qr(&qr); in do_variety_demo()
74 let qr = QrCode::encode_text(concat!( in do_variety_demo() localVariable
[all …]
/third_party/qrcodegen/java/
DQrCodeGeneratorDemo.java60 QrCode qr = QrCode.encodeText(text, errCorLvl); // Make the QR Code symbol in doBasicDemo() local
62 BufferedImage img = toImage(qr, 10, 4); // Convert to bitmap image in doBasicDemo()
66 String svg = toSvgString(qr, 4, "#FFFFFF", "#000000"); // Convert to SVG XML code in doBasicDemo()
75 QrCode qr; in doVarietyDemo() local
78 qr = QrCode.encodeText("314159265358979323846264338327950288419716939937510", QrCode.Ecc.MEDIUM); in doVarietyDemo()
79 writePng(toImage(qr, 13, 1), "pi-digits-QR.png"); in doVarietyDemo()
82qr = QrCode.encodeText("DOLLAR-AMOUNT:$39.87 PERCENTAGE:100.00% OPERATIONS:+-*/", QrCode.Ecc.HIGH); in doVarietyDemo()
83 writePng(toImage(qr, 10, 2), "alphanumeric-QR.png"); in doVarietyDemo()
86 qr = QrCode.encodeText("こんにちwa、世界! αβγδ", QrCode.Ecc.QUARTILE); in doVarietyDemo()
87 writePng(toImage(qr, 10, 3), "unicode-QR.png"); in doVarietyDemo()
[all …]
/third_party/qrcodegen/typescript-javascript/
Dqrcodegen-output-demo.ts48 …const qr: qrcodegen.QrCode = qrcodegen.QrCode.encodeText(text, errCorLvl); // Make the QR Code sy… constant
49 drawCanvas(qr, 10, 4, "#FFFFFF", "#000000", appendCanvas("hello-world-QR")); // Draw it on screen
56 let qr: qrcodegen.QrCode;
60 qr = QrCode.encodeText("314159265358979323846264338327950288419716939937510", QrCode.Ecc.MEDIUM);
61 drawCanvas(qr, 13, 1, "#FFFFFF", "#000000", appendCanvas("pi-digits-QR"));
64qr = QrCode.encodeText("DOLLAR-AMOUNT:$39.87 PERCENTAGE:100.00% OPERATIONS:+-*/", QrCode.Ecc.HIGH);
65 drawCanvas(qr, 10, 2, "#FFFFFF", "#000000", appendCanvas("alphanumeric-QR"));
68qr = QrCode.encodeText("\u3053\u3093\u306B\u3061wa\u3001\u4E16\u754C\uFF01 \u03B1\u03B2\u03B3\u03B…
69 drawCanvas(qr, 10, 3, "#FFFFFF", "#000000", appendCanvas("unicode-QR"));
72 qr = QrCode.encodeText(
[all …]
Dqrcodegen-input-demo.ts85 …const qr: qrcodegen.QrCode = qrcodegen.QrCode.encodeSegments(segs, ecl, minVer, maxVer, mask, boos… constant
97 drawCanvas(qr, scale, border, lightColor, darkColor, canvas);
100 const code: string = toSvgString(qr, border, lightColor, darkColor);
146 getElem("statistics-output").textContent = `QR Code version = ${qr.version}, ` +
147 `mask pattern = ${qr.mask}, ` +
150 `error correction = level ${"LMQH".charAt(qr.errorCorrectionLevel.ordinal)}, ` +
151 `data bits = ${qrcodegen.QrSegment.getTotalBits(segs, qr.version) as number}.`;
159 …function drawCanvas(qr: qrcodegen.QrCode, scale: number, border: number, lightColor: string, darkC…
162 const width: number = (qr.size + border * 2) * scale;
166 for (let y = -border; y < qr.size + border; y++) {
[all …]
/third_party/qrcodegen/python/
Dqrcodegen-demo.py47 qr = QrCode.encode_text(text, errcorlvl)
48 print_qr(qr)
49 print(to_svg_str(qr, 4))
56 qr = QrCode.encode_text("314159265358979323846264338327950288419716939937510", QrCode.Ecc.MEDIUM)
57 print_qr(qr)
60 qr = QrCode.encode_text("DOLLAR-AMOUNT:$39.87 PERCENTAGE:100.00% OPERATIONS:+-*/", QrCode.Ecc.HIGH)
61 print_qr(qr)
64qr = QrCode.encode_text("\u3053\u3093\u306B\u3061\u0077\u0061\u3001\u4E16\u754C\uFF01\u0020\u03B1\…
65 print_qr(qr)
68 qr = QrCode.encode_text(
[all …]
/third_party/boost/libs/geometry/doc/src/examples/
Dquick_start.cpp82 static inline int get(const QRect& qr) in get()
85 return C == min_corner && D == 0 ? qr.x in get()
86 : C == min_corner && D == 1 ? qr.y in get()
87 : C == max_corner && D == 0 ? qr.x + qr.width in get()
88 : C == max_corner && D == 1 ? qr.y + qr.height in get()
92 static inline void set(QRect& qr, const int& value) in set()
95 if (C == min_corner && D == 0) qr.x = value; in set()
96 else if (C == min_corner && D == 1) qr.y = value; in set()
97 else if (C == max_corner && D == 0) qr.width = value - qr.x; in set()
98 else if (C == max_corner && D == 1) qr.height = value - qr.y; in set()
/third_party/boost/libs/geometry/doc/doxy/doxygen_input/sourcecode/
Ddoxygen_2.cpp61 static inline int get(const QRect& qr) in get()
64 return C == min_corner && D == 0 ? qr.x in get()
65 : C == min_corner && D == 1 ? qr.y in get()
66 : C == max_corner && D == 0 ? qr.x + qr.width in get()
67 : C == max_corner && D == 1 ? qr.y + qr.height in get()
71 static inline void set(QRect& qr, const int& value) in set()
74 if (C == min_corner && D == 0) qr.x = value; in set()
75 else if (C == min_corner && D == 1) qr.y = value; in set()
76 else if (C == max_corner && D == 0) qr.width = value - qr.x; in set()
77 else if (C == max_corner && D == 1) qr.height = value - qr.y; in set()
/third_party/qrcodegen/cpp/
DQrCodeGeneratorDemo.cpp47 static std::string toSvgString(const QrCode &qr, int border);
48 static void printQr(const QrCode &qr);
70 const QrCode qr = QrCode::encodeText(text, errCorLvl); in doBasicDemo() local
71 printQr(qr); in doBasicDemo()
72 std::cout << toSvgString(qr, 4) << std::endl; in doBasicDemo()
194 static std::string toSvgString(const QrCode &qr, int border) { in toSvgString() argument
197 if (border > INT_MAX / 2 || border * 2 > INT_MAX - qr.getSize()) in toSvgString()
204 sb << (qr.getSize() + border * 2) << " " << (qr.getSize() + border * 2) << "\" stroke=\"none\">\n"; in toSvgString()
207 for (int y = 0; y < qr.getSize(); y++) { in toSvgString()
208 for (int x = 0; x < qr.getSize(); x++) { in toSvgString()
[all …]
/third_party/cmsis/CMSIS/DSP/Source/QuaternionMathFunctions/
Darm_quaternion_product_single_f32.c61 float32_t *qr) in arm_quaternion_product_single_f32() argument
90 vst1q_f32(qr, vecAcc); in arm_quaternion_product_single_f32()
96 float32_t *qr) in arm_quaternion_product_single_f32() argument
98 qr[0] = qa[0] * qb[0] - qa[1] * qb[1] - qa[2] * qb[2] - qa[3] * qb[3]; in arm_quaternion_product_single_f32()
99 qr[1] = qa[0] * qb[1] + qa[1] * qb[0] + qa[2] * qb[3] - qa[3] * qb[2]; in arm_quaternion_product_single_f32()
100 qr[2] = qa[0] * qb[2] + qa[2] * qb[0] + qa[3] * qb[1] - qa[1] * qb[3]; in arm_quaternion_product_single_f32()
101 qr[3] = qa[0] * qb[3] + qa[3] * qb[0] + qa[1] * qb[2] - qa[2] * qb[1]; in arm_quaternion_product_single_f32()
Darm_quaternion_product_f32.c72 float32_t *qr, in arm_quaternion_product_f32() argument
117 vst1q_f32(qr, vecAcc); in arm_quaternion_product_f32()
122 qr += 4; in arm_quaternion_product_f32()
132 float32_t *qr, in arm_quaternion_product_f32() argument
137 arm_quaternion_product_single_f32(qa, qb, qr); in arm_quaternion_product_f32()
141 qr += 4; in arm_quaternion_product_f32()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Ddragonfly.c54 struct crypto_bignum **qr, in dragonfly_get_random_qr_qnr() argument
57 *qr = *qnr = NULL; in dragonfly_get_random_qr_qnr()
59 while (!(*qr) || !(*qnr)) { in dragonfly_get_random_qr_qnr()
70 if (res == 1 && !(*qr)) in dragonfly_get_random_qr_qnr()
71 *qr = tmp; in dragonfly_get_random_qr_qnr()
78 if (*qr && *qnr) in dragonfly_get_random_qr_qnr()
80 crypto_bignum_deinit(*qr, 0); in dragonfly_get_random_qr_qnr()
82 *qr = *qnr = NULL; in dragonfly_get_random_qr_qnr()
110 const u8 *qr, const u8 *qnr, in dragonfly_is_quadratic_residue_blind() argument
156 const_time_select_bin(mask, qnr, qr, prime_len, qr_or_qnr_bin); in dragonfly_is_quadratic_residue_blind()
Ddragonfly.h21 struct crypto_bignum **qr,
24 const u8 *qr, const u8 *qnr,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Ddragonfly.c54 struct crypto_bignum **qr, in dragonfly_get_random_qr_qnr() argument
57 *qr = *qnr = NULL; in dragonfly_get_random_qr_qnr()
59 while (!(*qr) || !(*qnr)) { in dragonfly_get_random_qr_qnr()
70 if (res == 1 && !(*qr)) in dragonfly_get_random_qr_qnr()
71 *qr = tmp; in dragonfly_get_random_qr_qnr()
78 if (*qr && *qnr) in dragonfly_get_random_qr_qnr()
80 crypto_bignum_deinit(*qr, 0); in dragonfly_get_random_qr_qnr()
82 *qr = *qnr = NULL; in dragonfly_get_random_qr_qnr()
110 const u8 *qr, const u8 *qnr, in dragonfly_is_quadratic_residue_blind() argument
156 const_time_select_bin(mask, qnr, qr, prime_len, qr_or_qnr_bin); in dragonfly_is_quadratic_residue_blind()
Ddragonfly.h21 struct crypto_bignum **qr,
24 const u8 *qr, const u8 *qnr,
/third_party/qrcodegen/rust/
DReadme.markdown10 …nsive descriptions, and competitor comparisons: https://www.nayuki.io/page/qr-code-generator-libra…
45 let qr = QrCode::encode_text("Hello, world!",
47 let svg = to_svg_string(&qr, 4); // See qrcodegen-demo
52 let qr = QrCode::encode_segments_advanced(&segs, QrCodeEcc::High,
54 for y in 0 .. qr.size() {
55 for x in 0 .. qr.size() {
56 (... paint qr.get_module(x, y) ...)
DCargo.toml6 homepage = "https://www.nayuki.io/page/qr-code-generator-library"
9 keywords = ["qr-code", "barcode", "encoder", "image"]
/third_party/qrcodegen/
DReadme.markdown10 …etitor comparisons: [https://www.nayuki.io/page/qr-code-generator-library](https://www.nayuki.io/p…
56 ImageIO.write(img, "png", new File("qr-code.png"));
170 let qr = QrCode::encode_text("Hello, world!",
172 let svg = to_svg_string(&qr, 4); // See qrcodegen-demo
177 let qr = QrCode::encode_segments_advanced(
179 for y in 0 .. qr.size() {
180 for x in 0 .. qr.size() {
181 (... paint qr.get_module(x, y) ...)
191 [https://www.nayuki.io/page/qr-code-generator-library](https://www.nayuki.io/page/qr-code-generator…
DREADME.OpenSource8 "Upstream URL": "https://www.nayuki.io/page/qr-code-generator-library",
/third_party/ffmpeg/libavcodec/
Daptx.c403 int32_t qr, idx, shift, factor_select; in aptx_invert_quantization() local
406 qr = tables->quantize_intervals[idx] / 2; in aptx_invert_quantization()
408 qr = -qr; in aptx_invert_quantization()
410qr = rshift64_clip24((qr * (1LL<<32)) + MUL64(dither, tables->invert_quantize_dither_factors[idx])… in aptx_invert_quantization()
411 … invert_quantize->reconstructed_difference = MUL64(invert_quantize->quantization_factor, qr) >> 19; in aptx_invert_quantization()
/third_party/node/deps/npm/node_modules/qrcode-terminal/example/
Dsmall-qrcode.js4 qrcode.generate(url, { small: true }, function (qr) { argument
5 console.log(qr);
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/
Ddpp-qrcode.py103 qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_M,
105 qr.add_data(uri, optimize=5)
106 qr.print_ascii(tty=True)
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/
Ddpp-qrcode.py103 qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_M,
105 qr.add_data(uri, optimize=5)
106 qr.print_ascii(tty=True)
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_pwd_common.c124 struct crypto_bignum *qr = NULL, *qnr = NULL; in compute_password_element() local
164 if (dragonfly_get_random_qr_qnr(prime, &qr, &qnr) < 0 || in compute_password_element()
165 crypto_bignum_to_bin(qr, qr_bin, sizeof(qr_bin), in compute_password_element()
317 crypto_bignum_deinit(qr, 1); in compute_password_element()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_pwd_common.c124 struct crypto_bignum *qr = NULL, *qnr = NULL; in compute_password_element() local
164 if (dragonfly_get_random_qr_qnr(prime, &qr, &qnr) < 0 || in compute_password_element()
165 crypto_bignum_to_bin(qr, qr_bin, sizeof(qr_bin), in compute_password_element()
317 crypto_bignum_deinit(qr, 1); in compute_password_element()
/third_party/openssl/test/certs/
Dbadalt3-cert.pem19 qr/RUVVZ4IYDUUiGLHW2AvpVv9mt+SBspsCDXyiAf5O6xdek+tiTYLmU9uUOmtJ3

123