diff options
Diffstat (limited to 'yuvtool/catvga.sh')
-rwxr-xr-x | yuvtool/catvga.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/yuvtool/catvga.sh b/yuvtool/catvga.sh new file mode 100755 index 0000000..a5bd211 --- /dev/null +++ b/yuvtool/catvga.sh @@ -0,0 +1,17 @@ +cat <<EOF +#ifndef _YUVGA_H +#define _YUVGA_H + +static unsigned char yuvga_pic[]={ + +EOF + +od -v -t x1 $1 | sed 's/ /,0x/g' | cut -f2- -d"," | awk '{print $0","}'|sed '$d' + + +cat <<EOF + +}; + +#endif +EOF
\ No newline at end of file |