Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: utility/include/bmpblk_utility.h

Issue 6508006: Enable EFIv1 compression in bmpbklk_utility. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git@master
Patch Set: Added tests, updated copyrights, moved bmpblk_util.h as suggested. Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utility/include/bmpblk_util.h ('k') | utility/include/eficompress.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/include/bmpblk_utility.h
diff --git a/utility/include/bmpblk_utility.h b/utility/include/bmpblk_utility.h
index b73b6630653626e967b6cb1c75e4127917784f5a..099767a54963373fc439cc705993164c29ea0690 100644
--- a/utility/include/bmpblk_utility.h
+++ b/utility/include/bmpblk_utility.h
@@ -64,6 +64,9 @@ class BmpBlockUtil {
/* Write the bmpblock to a file */
void write_to_bmpblock(const char *filename);
+ /* What compression to use for the images */
+ void force_compression(uint32_t compression);
+
private:
/* Clear all internal data. */
void initialize();
@@ -105,6 +108,10 @@ class BmpBlockUtil {
/* Internal variable for storing the content of BmpBlock. */
string bmpblock_;
+
+ /* Internal variables to determine whether or not to specify compression */
+ bool set_compression_; // true if we force it
+ uint32_t compression_; // what we force it to
};
} // namespace vboot_reference
« no previous file with comments | « utility/include/bmpblk_util.h ('k') | utility/include/eficompress.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698