| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 #ifndef VBOOT_REFERENCE_BMPBLK_UTILITY_H_ | 6 #ifndef VBOOT_REFERENCE_BMPBLK_UTILITY_H_ |
| 7 #define VBOOT_REFERENCE_BMPBLK_UTILITY_H_ | 7 #define VBOOT_REFERENCE_BMPBLK_UTILITY_H_ |
| 8 | 8 |
| 9 #include "bmpblk_header.h" | 9 #include "bmpblk_header.h" |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 string image_names[MAX_IMAGE_IN_LAYOUT]; | 35 string image_names[MAX_IMAGE_IN_LAYOUT]; |
| 36 } ScreenConfig; | 36 } ScreenConfig; |
| 37 | 37 |
| 38 typedef map<string, ImageConfig> StrImageConfigMap; | 38 typedef map<string, ImageConfig> StrImageConfigMap; |
| 39 typedef map<string, ScreenConfig> StrScreenConfigMap; | 39 typedef map<string, ScreenConfig> StrScreenConfigMap; |
| 40 | 40 |
| 41 /* Internal struct for contructing the whole BmpBlock. */ | 41 /* Internal struct for contructing the whole BmpBlock. */ |
| 42 typedef struct BmpBlockConfig { | 42 typedef struct BmpBlockConfig { |
| 43 string config_filename; | 43 string config_filename; |
| 44 BmpBlockHeader header; | 44 BmpBlockHeader header; |
| 45 vector<string> image_names; |
| 45 StrImageConfigMap images_map; | 46 StrImageConfigMap images_map; |
| 46 StrScreenConfigMap screens_map; | 47 StrScreenConfigMap screens_map; |
| 47 vector<vector<string> > localizations; | 48 vector<vector<string> > localizations; |
| 48 } BmpBlockConfig; | 49 } BmpBlockConfig; |
| 49 | 50 |
| 50 class BmpBlockUtil { | 51 class BmpBlockUtil { |
| 51 public: | 52 public: |
| 52 BmpBlockUtil(); | 53 BmpBlockUtil(); |
| 53 ~BmpBlockUtil(); | 54 ~BmpBlockUtil(); |
| 54 | 55 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 string bmpblock_; | 111 string bmpblock_; |
| 111 | 112 |
| 112 /* Internal variables to determine whether or not to specify compression */ | 113 /* Internal variables to determine whether or not to specify compression */ |
| 113 bool set_compression_; // true if we force it | 114 bool set_compression_; // true if we force it |
| 114 uint32_t compression_; // what we force it to | 115 uint32_t compression_; // what we force it to |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace vboot_reference | 118 } // namespace vboot_reference |
| 118 | 119 |
| 119 #endif // VBOOT_REFERENCE_BMPBLK_UTILITY_H_ | 120 #endif // VBOOT_REFERENCE_BMPBLK_UTILITY_H_ |
| OLD | NEW |