mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-17 13:03:43 +00:00
refactoring
This commit is contained in:
2
Makefile
2
Makefile
@@ -29,7 +29,7 @@ install: $(PROG)
|
|||||||
|
|
||||||
|
|
||||||
regen:
|
regen:
|
||||||
tools/make-jpg-h.py src/data/blank.jpg src/data/blank.h BLANK 640 480
|
tools/make-jpeg-h.py src/data/blank.jpeg src/data/blank.h BLANK 640 480
|
||||||
tools/make-html-h.py src/data/index.html src/data/html_index.h HTML_INDEX_PAGE
|
tools/make-html-h.py src/data/index.html src/data/html_index.h HTML_INDEX_PAGE
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -45,7 +45,7 @@ def main():
|
|||||||
rows[-1].append(hex(ch))
|
rows[-1].append(hex(ch))
|
||||||
|
|
||||||
text = ",\n\t".join(", ".join(row) for row in rows)
|
text = ",\n\t".join(", ".join(row) for row in rows)
|
||||||
text = "const unsigned char %s_JPG_DATA[] = {\n\t%s\n};" % (prefix, text)
|
text = "const unsigned char %s_JPG_DATA[] = {\n\t%s\n};\n" % (prefix, text)
|
||||||
text = "const unsigned long %s_JPG_SIZE = %d;\n\n" % (prefix, len(jpg_data)) + text
|
text = "const unsigned long %s_JPG_SIZE = %d;\n\n" % (prefix, len(jpg_data)) + text
|
||||||
text = "const unsigned %s_JPG_HEIGHT = %d;\n\n" % (prefix, height) + text
|
text = "const unsigned %s_JPG_HEIGHT = %d;\n\n" % (prefix, height) + text
|
||||||
text = "const unsigned %s_JPG_WIDTH = %d;\n" % (prefix, width) + text
|
text = "const unsigned %s_JPG_WIDTH = %d;\n" % (prefix, width) + text
|
||||||
Reference in New Issue
Block a user