Skip to content

Commit a1a00d4

Browse files
committed
Increase hook density by adding instances to matrix layout phase
1 parent c77326c commit a1a00d4

5 files changed

Lines changed: 57 additions & 0 deletions

File tree

src/azteccode.ps.src

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,8 @@ begin
10501050
/pixs [size size mul {-1} repeat] def
10511051
/mid size 1 sub 2 idiv size mul size 1 sub 2 idiv add def
10521052

1053+
(matrix.layout.data) //azteccode.before exec
1054+
10531055
%
10541056
% Data layers
10551057
%
@@ -1063,6 +1065,10 @@ begin
10631065
} for
10641066
} for
10651067

1068+
(matrix.layout.data) //azteccode.after exec
1069+
1070+
(matrix.layout.fixtures) //azteccode.before exec
1071+
10661072
%
10671073
% For full symbols expand the pixel map by inserting the reference grid
10681074
%
@@ -1117,6 +1123,10 @@ begin
11171123
[ fw 1 add neg fw 1 add neg 0 ] [ fw 1 add neg fw neg 0 ]
11181124
] {pixs exch aload pop 3 1 roll cmv exch put} forall
11191125

1126+
(matrix.layout.fixtures) //azteccode.after exec
1127+
1128+
(matrix.layout.reserve) //azteccode.before exec
1129+
11201130
%
11211131
% Mode ring
11221132
%
@@ -1126,6 +1136,8 @@ begin
11261136
pop
11271137
} for
11281138

1139+
(matrix.layout.reserve) //azteccode.after exec
1140+
11291141
(matrix.layout) //azteccode.after exec
11301142

11311143
<<

src/codeone.ps.src

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,8 @@ begin
11621162
/mmv {cols mul add} def
11631163
/pixs [ rows cols mul {-1} repeat ] def
11641164

1165+
(matrix.layout.fixtures) //codeone.before exec
1166+
11651167
%
11661168
% Centre pattern
11671169
%
@@ -1201,6 +1203,10 @@ begin
12011203
%
12021204
//codeone.blackdotmap vers get {pixs exch aload pop mmv 1 put} bind forall
12031205

1206+
(matrix.layout.fixtures) //codeone.after exec
1207+
1208+
(matrix.layout.data) //codeone.before exec
1209+
12041210
%
12051211
% Place the modules onto a pixel map between alignment patterns
12061212
%
@@ -1213,6 +1219,8 @@ begin
12131219
} if
12141220
} for
12151221

1222+
(matrix.layout.data) //codeone.after exec
1223+
12161224
(matrix.layout) //codeone.after exec
12171225

12181226
<<

src/hanxin.ps.src

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,8 @@ begin
10461046
/pixs [ size size mul {-1} repeat ] def
10471047
/qmv {size mul add} def
10481048

1049+
(matrix.layout.fixtures) //hanxin.before exec
1050+
10491051
%
10501052
% Alignment patterns
10511053
%
@@ -1123,6 +1125,10 @@ begin
11231125
} for
11241126
} for
11251127

1128+
(matrix.layout.fixtures) //hanxin.after exec
1129+
1130+
(matrix.layout.reserve) //hanxin.before exec
1131+
11261132
%
11271133
% Derive the function module map
11281134
%
@@ -1139,6 +1145,10 @@ begin
11391145
{ aload pop qmv pixs exch 0 put } forall
11401146
} forall
11411147

1148+
(matrix.layout.reserve) //hanxin.after exec
1149+
1150+
(matrix.layout.data) //hanxin.before exec
1151+
11421152
/maskfuncs //hanxin.maskfuncs def
11431153
mask -1 ne { % User specifies a mask
11441154
/maskfuncs [//hanxin.maskfuncs mask 1 sub get] def
@@ -1181,6 +1191,8 @@ begin
11811191
posx size eq {/posx 0 def /posy posy 1 add def} if
11821192
} loop
11831193

1194+
(matrix.layout.data) //hanxin.after exec
1195+
11841196
(matrix.layout) //hanxin.after exec
11851197

11861198
(matrix.evaluate) //hanxin.before exec

src/qrcode.ps.src

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,8 @@ begin
14331433
/pixs [ rows cols mul {-1} repeat ] def
14341434
/qmv {cols mul add} def
14351435

1436+
(matrix.layout.fixtures) //qrcode.before exec
1437+
14361438
%
14371439
% Timing patterns
14381440
%
@@ -1531,6 +1533,10 @@ begin
15311533
} for
15321534
} if
15331535

1536+
(matrix.layout.fixtures) //qrcode.after exec
1537+
1538+
(matrix.layout.reserve) //qrcode.before exec
1539+
15341540
%
15351541
% Derive the format information module map
15361542
%
@@ -1574,6 +1580,10 @@ begin
15741580
pixs 8 rows 8 sub qmv 0 put
15751581
} if
15761582

1583+
(matrix.layout.reserve) //qrcode.after exec
1584+
1585+
(matrix.layout.data) //qrcode.before exec
1586+
15771587
%
15781588
% Lookup the mask bits corresponding to the mask functions applicable to
15791589
% this format
@@ -1637,6 +1647,8 @@ begin
16371647
} ifelse
16381648
} loop
16391649

1650+
(matrix.layout.data) //qrcode.after exec
1651+
16401652
(matrix.layout) //qrcode.after exec
16411653

16421654
%

src/ultracode.ps.src

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,9 @@ begin
450450
/columns columns 6 add def
451451
/pixs [ rows columns mul {-1} repeat ] def
452452
/qmv {columns mul add} def
453+
454+
(matrix.layout.fixtures) //ultracode.before exec
455+
453456
0 1 columns 1 sub {
454457
/i exch def
455458
0 6 rows 1 sub {
@@ -473,6 +476,10 @@ begin
473476
pixs columns 1 sub i qmv 9 put
474477
} for
475478

479+
(matrix.layout.fixtures) //ultracode.after exec
480+
481+
(matrix.layout.reserve) //ultracode.before exec
482+
476483
%
477484
% DCCU and DCCL tiles
478485
%
@@ -486,6 +493,10 @@ begin
486493
/i i 1 add def
487494
} forall
488495

496+
(matrix.layout.reserve) //ultracode.after exec
497+
498+
(matrix.layout.data) //ultracode.before exec
499+
489500
%
490501
% Data tiles
491502
%
@@ -517,6 +528,8 @@ begin
517528
} ifelse
518529
} forall
519530

531+
(matrix.layout.data) //ultracode.after exec
532+
520533
(matrix.layout) //ultracode.after exec
521534

522535
<<

0 commit comments

Comments
 (0)