Lines Matching refs:width

47 	int width; //< Edge length of the symbol
126 return qrspecCapacity[version].width;
287 * @param width
290 static void QRspec_putAlignmentMarker(unsigned char *frame, int width, int ox, int oy)
302 frame += (oy - 2) * width + ox - 2;
308 frame += width;
313 static void QRspec_putAlignmentPattern(int version, unsigned char *frame, int width)
323 w = (width - alignmentPattern[version][0]) / d + 2;
329 QRspec_putAlignmentMarker(frame, width, x, y);
335 QRspec_putAlignmentMarker(frame, width, 6, cx);
336 QRspec_putAlignmentMarker(frame, width, cx, 6);
344 QRspec_putAlignmentMarker(frame, width, cx, cy);
410 * @param width
413 static void putFinderPattern(unsigned char *frame, int width, int ox, int oy)
427 frame += oy * width + ox;
433 frame += width;
442 int width;
446 width = qrspecCapacity[version].width;
447 frame = (unsigned char *)malloc(width * width);
450 memset(frame, 0, width * width);
452 putFinderPattern(frame, width, 0, 0);
453 putFinderPattern(frame, width, width - 7, 0);
454 putFinderPattern(frame, width, 0, width - 7);
457 q = frame + width * (width - 7);
460 p[width - 8] = 0xc0;
462 p += width;
463 q += width;
465 memset(frame + width * 7, 0xc0, 8);
466 memset(frame + width * 8 - 8, 0xc0, 8);
467 memset(frame + width * (width - 8), 0xc0, 8);
469 memset(frame + width * 8, 0x84, 9);
470 memset(frame + width * 9 - 8, 0x84, 8);
474 p += width;
476 p = frame + width * (width - 7) + 8;
479 p += width;
482 p = frame + width * 6 + 8;
483 q = frame + width * 8 + 6;
484 for(x=1; x<width-15; x++) {
488 q += width;
491 QRspec_putAlignmentPattern(version, frame, width);
497 p = frame + width * (width - 11);
501 p[width * y + x] = 0x88 | (v & 1);
506 p = frame + width - 11;
513 p += width;
517 frame[width * (width - 8) + 8] = 0x81;
525 int width;
540 width = qrspecCapacity[version].width;
541 frame = (unsigned char *)malloc(width * width);
543 memcpy(frame, frames[version], width * width);