|
@@ -136,17 +136,16 @@ public class AnimationUtility {
|
136
|
136
|
short[] d = {};
|
137
|
137
|
for (int i = 0; i < 8; i++) {
|
138
|
138
|
short[] data = hexConvert(sc.nextLine());
|
139
|
|
- d = concat(data, d);
|
|
139
|
+ d = concat(d, data);
|
140
|
140
|
}
|
141
|
141
|
|
142
|
|
- d = invert(d);
|
143
|
|
- frame.setData(d);
|
144
|
|
- d = hexConvert(sc.nextLine());
|
145
|
|
- frame.setTime(d[0]);
|
146
|
|
- return frame;
|
|
142
|
+ frame.setData(d);
|
|
143
|
+ d = hexConvert(sc.nextLine());
|
|
144
|
+ frame.setTime(d[0]);
|
|
145
|
+ return frame;
|
147
|
146
|
}
|
148
|
147
|
|
149
|
|
- private static short[] invert(short[] a){
|
|
148
|
+ /*private static short[] invert(short[] a){
|
150
|
149
|
short[] tmp = new short[a.length];
|
151
|
150
|
int j = 0;
|
152
|
151
|
for(int i = a.length-1; i >= 0; i--){
|
|
@@ -154,7 +153,7 @@ public class AnimationUtility {
|
154
|
153
|
j++;
|
155
|
154
|
}
|
156
|
155
|
return tmp;
|
157
|
|
- }
|
|
156
|
+ }*/
|
158
|
157
|
|
159
|
158
|
private static short[] concat(short[] a, short[] b) {
|
160
|
159
|
short[] c = new short[a.length + b.length];
|