File tree Expand file tree Collapse file tree 4 files changed +0
-106
lines changed
Expand file tree Collapse file tree 4 files changed +0
-106
lines changed Original file line number Diff line number Diff line change @@ -163,26 +163,6 @@ class Victor9kEncoder : public Encoder
163163 }
164164
165165public:
166- std::vector<std::shared_ptr<const Sector>> collectSectors (
167- const Location& location, const Image& image) override
168- {
169- std::vector<std::shared_ptr<const Sector>> sectors;
170-
171- Victor9kEncoderProto::TrackdataProto trackdata;
172- getTrackFormat (trackdata, location.logicalTrack , location.head );
173-
174- for (int i = 0 ; i < trackdata.sector_range ().sector_count (); i++)
175- {
176- int sectorId = trackdata.sector_range ().start_sector () + i;
177- const auto & sector =
178- image.get (location.logicalTrack , location.head , sectorId);
179- if (sector)
180- sectors.push_back (sector);
181- }
182-
183- return sectors;
184- }
185-
186166 std::unique_ptr<Fluxmap> encode (const Location& location,
187167 const std::vector<std::shared_ptr<const Sector>>& sectors,
188168 const Image& image) override
Original file line number Diff line number Diff line change @@ -9,14 +9,6 @@ message Victor9kEncoderProto
99{
1010 message TrackdataProto
1111 {
12- message SectorRangeProto
13- {
14- optional int32 start_sector = 1
15- [ (help) = "first sector ID on track" ];
16- optional int32 sector_count = 2
17- [ (help) = "number of sectors on track" ];
18- }
19-
2012 optional int32 min_track = 1
2113 [ (help) = "minimum track this format applies to" ];
2214 optional int32 max_track = 2
@@ -38,9 +30,6 @@ message Victor9kEncoderProto
3830 [ (help) = "size of gap between data and the next header" ];
3931 optional int32 post_header_gap_bits = 11
4032 [ (help) = "size of gap between header and the data" ];
41-
42- optional SectorRangeProto sector_range = 7
43- [ (help) = "write these sectors on each track" ];
4433 }
4534
4635 repeated TrackdataProto trackdata = 1 ;
Original file line number Diff line number Diff line change @@ -164,146 +164,96 @@ encoder {
164164 min_track: 0
165165 max_track: 3
166166 rotational_period_ms: 237.9
167- sector_range {
168- start_sector: 0
169- sector_count: 19
170- }
171167 }
172168 trackdata {
173169 head: 0
174170 min_track: 4
175171 max_track: 15
176172 rotational_period_ms: 224.5
177- sector_range {
178- sector_count: 18
179- }
180173 }
181174 trackdata {
182175 head: 0
183176 min_track: 16
184177 max_track: 26
185178 rotational_period_ms: 212.2
186- sector_range {
187- sector_count: 17
188- }
189179 }
190180 trackdata {
191181 head: 0
192182 min_track: 27
193183 max_track: 37
194184 rotational_period_ms: 199.9
195- sector_range {
196- sector_count: 16
197- }
198185 }
199186 trackdata {
200187 head: 0
201188 min_track: 38
202189 max_track: 47
203190 rotational_period_ms: 187.6
204- sector_range {
205- sector_count: 15
206- }
207191 }
208192 trackdata {
209193 head: 0
210194 min_track: 48
211195 max_track: 59
212196 rotational_period_ms: 175.3
213- sector_range {
214- sector_count: 14
215- }
216197 }
217198 trackdata {
218199 head: 0
219200 min_track: 60
220201 max_track: 70
221202 rotational_period_ms: 163.0
222- sector_range {
223- sector_count: 13
224- }
225203 }
226204 trackdata {
227205 head: 0
228206 min_track: 71
229207 max_track: 79
230208 rotational_period_ms: 149.6
231- sector_range {
232- sector_count: 12
233- }
234209 }
235210 trackdata {
236211 head: 1
237212 min_track: 0
238213 max_track: 7
239214 rotational_period_ms: 224.5
240- sector_range {
241- start_sector: 0
242- sector_count: 18
243- }
244215 }
245216 trackdata {
246217 head: 1
247218 min_track: 8
248219 max_track: 18
249220 rotational_period_ms: 212.2
250- sector_range {
251- sector_count: 17
252- }
253221 }
254222 trackdata {
255223 head: 1
256224 min_track: 19
257225 max_track: 29
258226 rotational_period_ms: 199.9
259- sector_range {
260- sector_count: 16
261- }
262227 }
263228 trackdata {
264229 head: 1
265230 min_track: 30
266231 max_track: 39
267232 rotational_period_ms: 187.6
268- sector_range {
269- sector_count: 15
270- }
271233 }
272234 trackdata {
273235 head: 1
274236 min_track: 40
275237 max_track: 51
276238 rotational_period_ms: 175.3
277- sector_range {
278- sector_count: 14
279- }
280239 }
281240 trackdata {
282241 head: 1
283242 min_track: 52
284243 max_track: 62
285244 rotational_period_ms: 163.0
286- sector_range {
287- sector_count: 13
288- }
289245 }
290246 trackdata {
291247 head: 1
292248 min_track: 63
293249 max_track: 74
294250 rotational_period_ms: 149.6
295- sector_range {
296- sector_count: 12
297- }
298251 }
299252 trackdata {
300253 head: 1
301254 min_track: 75
302255 max_track: 79
303256 rotational_period_ms: 144.0
304- sector_range {
305- sector_count: 11
306- }
307257 }
308258 }
309259}
Original file line number Diff line number Diff line change @@ -127,73 +127,48 @@ encoder {
127127 min_track: 0
128128 max_track: 3
129129 rotational_period_ms: 237.9
130- sector_range {
131- start_sector: 0
132- sector_count: 19
133- }
134130 }
135131 trackdata {
136132 head: 0
137133 min_track: 4
138134 max_track: 15
139135 rotational_period_ms: 224.5
140- sector_range {
141- sector_count: 18
142- }
143136 }
144137 trackdata {
145138 head: 0
146139 min_track: 16
147140 max_track: 26
148141 rotational_period_ms: 212.2
149- sector_range {
150- sector_count: 17
151- }
152142 }
153143 trackdata {
154144 head: 0
155145 min_track: 27
156146 max_track: 37
157147 rotational_period_ms: 199.9
158- sector_range {
159- sector_count: 16
160- }
161148 }
162149 trackdata {
163150 head: 0
164151 min_track: 38
165152 max_track: 47
166153 rotational_period_ms: 187.6
167- sector_range {
168- sector_count: 15
169- }
170154 }
171155 trackdata {
172156 head: 0
173157 min_track: 48
174158 max_track: 59
175159 rotational_period_ms: 175.3
176- sector_range {
177- sector_count: 14
178- }
179160 }
180161 trackdata {
181162 head: 0
182163 min_track: 60
183164 max_track: 70
184165 rotational_period_ms: 163.0
185- sector_range {
186- sector_count: 13
187- }
188166 }
189167 trackdata {
190168 head: 0
191169 min_track: 71
192170 max_track: 79
193171 rotational_period_ms: 149.6
194- sector_range {
195- sector_count: 12
196- }
197172 }
198173 }
199174}
You can’t perform that action at this time.
0 commit comments