Home | History | Annotate | Download | only in qrcode

Lines Matching refs:matrix

79 void CBC_QRCoderMatrixUtil::ClearMatrix(CBC_CommonByteMatrix* matrix,

81 if (matrix == NULL) {
85 matrix->clear((uint8_t)-1);
92 CBC_CommonByteMatrix* matrix,
94 if (matrix == NULL) {
98 ClearMatrix(matrix, e);
100 EmbedBasicPatterns(version, matrix, e);
102 EmbedTypeInfo(ecLevel, maskPattern, matrix, e);
104 MaybeEmbedVersionInfo(version, matrix, e);
106 EmbedDataBits(dataBits, maskPattern, matrix, e);
110 CBC_CommonByteMatrix* matrix,
112 if (matrix == NULL) {
116 EmbedPositionDetectionPatternsAndSeparators(matrix, e);
118 EmbedDarkDotAtLeftBottomCorner(matrix, e);
120 MaybeEmbedPositionAdjustmentPatterns(version, matrix, e);
122 EmbedTimingPatterns(matrix, e);
128 CBC_CommonByteMatrix* matrix,
130 if (matrix == NULL) {
143 matrix->Set(x1, y1, bit);
145 int32_t x2 = matrix->GetWidth() - i - 1;
147 matrix->Set(x2, y2, bit);
150 int32_t y2 = matrix->GetHeight() - 7 + (i - 8);
151 matrix->Set(x2, y2, bit);
156 CBC_CommonByteMatrix* matrix,
158 if (matrix == NULL) {
175 matrix->Set(i, matrix->GetHeight() - 11 + j, bit);
176 matrix->Set(matrix->GetHeight() - 11 + j, i, bit);
182 CBC_CommonByteMatrix* matrix,
184 if (matrix == NULL || dataBits == NULL) {
190 int32_t x = matrix->GetWidth() - 1;
191 int32_t y = matrix->GetHeight() - 1;
196 while (y >= 0 && y < matrix->GetHeight()) {
203 if (!IsEmpty(matrix->Get(xx, y))) {
222 matrix->Set(xx, y, bit);
296 void CBC_QRCoderMatrixUtil::EmbedTimingPatterns(CBC_CommonByteMatrix* matrix,
298 if (matrix == NULL) {
302 for (int32_t i = 8; i < matrix->GetWidth() - 8; i++) {
304 if (!IsValidValue(matrix->Get(i, 6))) {
308 if (IsEmpty(matrix->Get(i, 6))) {
309 matrix->Set(i, 6, bit);
311 if (!IsValidValue(matrix->Get(6, i))) {
315 if (IsEmpty(matrix->Get(6, i))) {
316 matrix->Set(6, i, bit);
321 CBC_CommonByteMatrix* matrix,
323 if (matrix == NULL) {
327 if (matrix->Get(8, matrix->GetHeight() - 8) == 0) {
331 matrix->Set(8, matrix->GetHeight() - 8, 1);
336 CBC_CommonByteMatrix* matrix,
338 if (matrix == NULL) {
343 if (!IsEmpty(matrix->Get(xStart + x, yStart))) {
347 matrix->Set(xStart + x, yStart, HORIZONTAL_SEPARATION_PATTERN[0][x]);
353 CBC_CommonByteMatrix* matrix,
355 if (matrix == NULL) {
360 if (!IsEmpty(matrix->Get(xStart, yStart + y))) {
364 matrix->Set(xStart, yStart + y, VERTICAL_SEPARATION_PATTERN[y][0]);
370 CBC_CommonByteMatrix* matrix,
372 if (matrix == NULL) {
378 if (!IsEmpty(matrix->Get(xStart + x, y + yStart))) {
382 matrix->Set(xStart + x, yStart + y, POSITION_ADJUSTMENT_PATTERN[y][x]);
389 CBC_CommonByteMatrix* matrix,
391 if (matrix == NULL) {
397 if (!IsEmpty(matrix->Get(xStart + x, yStart + y))) {
401 matrix->Set(xStart + x, yStart + y, POSITION_DETECTION_PATTERN[y][x]);
406 CBC_CommonByteMatrix* matrix,
408 if (matrix == NULL) {
413 EmbedPositionDetectionPattern(0, 0, matrix, e);
415 EmbedPositionDetectionPattern(matrix->GetWidth() - pdpWidth, 0, matrix, e);
417 EmbedPositionDetectionPattern(0, matrix->GetWidth() - pdpWidth, matrix, e);
420 EmbedHorizontalSeparationPattern(0, hspWidth - 1, matrix, e);
422 EmbedHorizontalSeparationPattern(matrix->GetWidth() - hspWidth, hspWidth - 1,
423 matrix, e);
425 EmbedHorizontalSeparationPattern(0, matrix->GetWidth() - hspWidth, matrix, e);
428 EmbedVerticalSeparationPattern(vspSize, 0, matrix, e);
430 EmbedVerticalSeparationPattern(matrix->GetHeight() - vspSize - 1, 0, matrix,
433 EmbedVerticalSeparationPattern(vspSize, matrix->GetHeight() - vspSize, matrix,
439 CBC_CommonByteMatrix* matrix,
441 if (matrix == NULL) {
459 if (IsEmpty(matrix->Get(x, y))) {
460 EmbedPositionAdjustmentPattern(x - 2, y - 2, matrix, e);