diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 11:50:27 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 11:50:27 +0000 |
commit | 16e805860b4a789ee2a239aaf1011188e0ba4a79 (patch) | |
tree | f2898eef69d3e6dfca0278db399460eaed095eb4 /merge.cc | |
parent | Adding upstream version 1.17~pre1. (diff) | |
download | lziprecover-16e805860b4a789ee2a239aaf1011188e0ba4a79.tar.xz lziprecover-16e805860b4a789ee2a239aaf1011188e0ba4a79.zip |
Adding upstream version 1.17~rc1.upstream/1.17_rc1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'merge.cc')
-rw-r--r-- | merge.cc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* Lziprecover - Data recovery tool for the lzip format - Copyright (C) 2009-2014 Antonio Diaz Diaz. + Copyright (C) 2009-2015 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,6 +30,7 @@ #include "lzip.h" #include "decoder.h" +#include "block.h" #include "file_index.h" @@ -255,6 +256,7 @@ int open_input_files( const std::vector< std::string > & filenames, } + // merge block by block bool try_merge_member( const long long mpos, const long long msize, const std::vector< Block > & block_vector, const std::vector< int > & color_vector, @@ -318,6 +320,7 @@ bool try_merge_member( const long long mpos, const long long msize, } + // merge a single block split at every possible position bool try_merge_member1( const long long mpos, const long long msize, const std::vector< Block > & block_vector, const std::vector< int > & color_vector, |