Refractor the code for imgdiff

Put ImageChunk and some helper functions into a class. Also switch to
using std::vector instead of malloc.

Bug: 18606652
Test: imgdiff_test passed on host. Also generate a complete incremental OTA package.
The file content is the same and time consumption is similar.

Change-Id: Id603ada4e130ef521218400761a119001a86ca79
This commit is contained in:
Tianjie Xu
2017-02-22 18:23:58 -08:00
parent 0f26468eda
commit 1ea84d6da9
4 changed files with 690 additions and 655 deletions

File diff suppressed because it is too large Load Diff