Home | History | Annotate | Download | only in pdf417

Lines Matching defs:code

2 // Use of this source code is governed by a BSD-style license that can be

5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 // Original code is licensed as follows:
68 int32_t code = codewords.GetAt(codeIndex);
72 switch (code) {
77 codeIndex = byteCompaction(code, codewords, codeIndex, result);
84 codeIndex = byteCompaction(code, codewords, codeIndex, result);
87 codeIndex = byteCompaction(code, codewords, codeIndex, result);
102 code = codewords[codeIndex++];
153 int32_t code = codewords[codeIndex++];
154 if (code < TEXT_COMPACTION_MODE_LATCH) {
155 additionalOptionCodeWords[additionalOptionCodeWordsIndex++] = code;
157 switch (code) {
189 int32_t code = codewords[codeIndex++];
190 if (code < TEXT_COMPACTION_MODE_LATCH) {
191 textCompactionData[index] = code / 30;
192 textCompactionData[index + 1] = code % 30;
195 switch (code) {
221 code = codewords[codeIndex++];
222 byteCompactionData[index] = code;
407 int32_t code = codewords[codeIndex++];
408 if (code < TEXT_COMPACTION_MODE_LATCH) {
410 value = 900 * value + code;
412 if (code == TEXT_COMPACTION_MODE_LATCH ||
413 code == BYTE_COMPACTION_MODE_LATCH ||
414 code == NUMERIC_COMPACTION_MODE_LATCH ||
415 code == BYTE_COMPACTION_MODE_LATCH_6 ||
416 code == BEGIN_MACRO_PDF417_CONTROL_BLOCK ||
417 code == BEGIN_MACRO_PDF417_OPTIONAL_FIELD ||
418 code == MACRO_PDF417_TERMINATOR) {
449 int32_t code = codewords[codeIndex++];
453 if (code < TEXT_COMPACTION_MODE_LATCH) {
454 numericCodewords[count] = code;
457 if (code
458 code == BYTE_COMPACTION_MODE_LATCH ||
459 code == BYTE_COMPACTION_MODE_LATCH_6 ||
460 code == BEGIN_MACRO_PDF417_CONTROL_BLOCK ||
461 code == BEGIN_MACRO_PDF417_OPTIONAL_FIELD ||
462 code == MACRO_PDF417_TERMINATOR) {
468 code == NUMERIC_COMPACTION_MODE_LATCH || end) {