… | |
… | |
227 | void |
227 | void |
228 | set_decode_blocks (self, blocks, indices) |
228 | set_decode_blocks (self, blocks, indices) |
229 | Algorithm::FEC self |
229 | Algorithm::FEC self |
230 | SV * blocks |
230 | SV * blocks |
231 | SV * indices |
231 | SV * indices |
|
|
232 | ALIAS: |
|
|
233 | shuffle = 1 |
232 | CODE: |
234 | CODE: |
233 | { |
235 | { |
234 | int i; |
236 | int i; |
235 | int *idx; |
237 | int *idx; |
236 | |
238 | |
… | |
… | |
279 | d = idx[i]; idx[i] = idx[j]; idx[j] = d; |
281 | d = idx[i]; idx[i] = idx[j]; idx[j] = d; |
280 | s = *a; *a = *b; *b = s; |
282 | s = *a; *a = *b; *b = s; |
281 | s = *e; *e = *f; *f = s; |
283 | s = *e; *e = *f; *f = s; |
282 | } |
284 | } |
283 | |
285 | |
|
|
286 | if (ix) |
|
|
287 | Safefree (idx); |
|
|
288 | else |
|
|
289 | { |
284 | open_files (self, (AV *)SvRV (blocks), 1); |
290 | open_files (self, (AV *)SvRV (blocks), 1); |
285 | self->idx = idx; |
291 | self->idx = idx; |
|
|
292 | } |
286 | } |
293 | } |
287 | |
294 | |
288 | void |
295 | void |
289 | decode (self) |
296 | decode (self) |
290 | Algorithm::FEC self |
297 | Algorithm::FEC self |