Carving de JPEG fragmentado: decodificador de entropia, índice de clusters e remontagem de até três fragmentos
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a9ac1dddba
commit
7f00445d67
10 files changed
+1304
-22
No files matched your search
@@ -22,6 +22,12 @@ impl Sink for Collect {
|
||||
f.confidence = f.confidence.max(c);
|
||||
}
|
||||
}
|
||||
fn replace(&mut self, f: Found) {
|
||||
match self.found.iter_mut().find(|x| x.id == f.id) {
|
||||
Some(x) => *x = f,
|
||||
None => self.found.push(f),
|
||||
}
|
||||
}
|
||||
fn progress(&mut self, _: Progress) {}
|
||||
fn warning(&mut self, w: String) {
|
||||
self.warnings.push(w);
|
||||
|
||||
Reference in new issue
Block a user