dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
encode_images.py File Reference

Go to the source code of this file.

Namespaces

 encode_images
 

Functions

def encode_images.grouper
 
def encode_images.encode_image
 
def encode_images.c_format_image
 

Variables

string encode_images.img_c_typedef_split
 
tuple encode_images.img_c_template_split = Template("""static const struct Image image_$name = {\t.width = $width,\t.height = $height,\t.mask = (uint8_t*)mask_$name,\t.level = (uint8_t*)level_$name,};""")
 
string encode_images.img_c_typedef
 
tuple encode_images.img_c_template = Template("""static const struct Image image_$name = {\t.width = $width,\t.height = $height,\t.data = (uint8_t*)data_$name,};""")
 
tuple encode_images.parser = OptionParser()
 
string encode_images.help = 'Output file'
 
 encode_images.in_files = args
 
tuple encode_images.images = dict()
 
list encode_images.height = image['height']