DSO Nano DAT2BMP tool source code

--DSO201

Moderator: tormod

DSO Nano DAT2BMP tool source code

by FreeZinG » Fri Oct 23, 2009 10:26 am

I don't have any free time to change it to English Version or make the Linux / MAC version... so if anyone could do this that hope you can release your new version in this topic post~

display.zip
(1.49 MiB) Downloaded 826 times
FreeZinG
 

Re: DSO Nano DAT2BMP tool source code

by tf_dk » Fri Oct 23, 2009 4:34 pm

That's very cool FreeZinG!

I have some traveling the next week or so, but I'll take it along and see if I can find a little time to look into this, especially a Mac version.

In the process, I might write some file format documentation/notes, and release those too!

/Thomas
Pre-kindergarten
Pre-kindergarten
 
Posts: 10
Joined: Fri Oct 16, 2009 5:17 pm
Location: Denmark

Re: DSO Nano DAT2BMP tool source code

by elbeem » Sun Oct 25, 2009 4:00 pm

Here it is, bad and bare :

untar and type make.

There is no GUI, just run convert with dat file and bmp filename as args

It will read the dat file and create the bmp file.

There is a glitch in the bmp header but it works, at least on my linux box and my mac.
Attachments
convert_DSONano.tar.gz
DSO Nano DAT2BMP tool source code for Linux/MacOS/...unix
(8.3 KiB) Downloaded 414 times
Pre-kindergarten
Pre-kindergarten
 
Posts: 31
Joined: Thu Jun 25, 2009 2:59 pm
Location: France

Re: DSO Nano DAT2BMP tool source code

by elbeem » Sun Oct 25, 2009 4:06 pm

here is the bmp produced by the provided DAT file (FILE000.DAT) in FreeZing archive.

edit: oh bad bad, the header thing corrupts the bmp. My bmp viewer (gqview) rectified it magically but not imagemagick converter from bmp to png. Please someone, fix it!

typedef struct _bmp_header {
u16 bfType;
u16 bfSize;
u16 bfReserved1;
u16 bfReserved2;
u32 bfOffBits;
} bmp_header;

should be

typedef struct _bmp_header {
u16 bfType;
u32 bfSize;
u16 bfReserved1;
u16 bfReserved2;
u32 bfOffBits;
} bmp_header;

but I'm too noob in C to fwrite the struct and align the 1st u16 to the next u32.
The 1st u16 is always padded to a u32.

it produces

424d 0000 3658 0200

instead of

424d 3658 0200
Attachments
dump.png
dump.png (3.64 KiB) Viewed 6641 times
Pre-kindergarten
Pre-kindergarten
 
Posts: 31
Joined: Thu Jun 25, 2009 2:59 pm
Location: France

Re: DSO Nano DAT2BMP tool source code

by elbeem » Sun Oct 25, 2009 6:12 pm

ok, hacked version, bmp file correct now.
Attachments
convert_DSONano.0.0.1.tar.gz
(8.32 KiB) Downloaded 444 times
Pre-kindergarten
Pre-kindergarten
 
Posts: 31
Joined: Thu Jun 25, 2009 2:59 pm
Location: France

Re: DSO Nano DAT2BMP tool source code

by mitunga » Sun Dec 06, 2009 11:03 am

I have modified the source code in display.zip to compile with Visual C++ 2008 Express Edition and save in PNG format. Here is the source and the binary. You need to install .NET Framework 3.0 (probably) to run.

By the way, how is the license of draw.cpp and draw.h in display.zip?
Attachments
DSO2PNG.zip
(51.22 KiB) Downloaded 520 times
Pre-kindergarten
Pre-kindergarten
 
Posts: 6
Joined: Sun Dec 06, 2009 10:44 am

Re: DSO Nano DAT2BMP tool source code

by FreeZinG » Mon Dec 07, 2009 9:29 am

it has not any license and everyone can use it modify it as wish ;) .
FreeZinG
 

Re: DSO Nano DAT2BMP tool source code

by mitunga » Tue Dec 08, 2009 8:49 pm

Thank you FreeZinG!

I have added feature to save in CSV format. Also you can select and convet multi files at one click.

DSO nano converter 0.png
DSO nano converter 0.png (17.07 KiB) Viewed 6386 times
Attachments
DSO2PNG-0.2.zip
(53.67 KiB) Downloaded 1047 times
Pre-kindergarten
Pre-kindergarten
 
Posts: 6
Joined: Sun Dec 06, 2009 10:44 am

Re: DSO Nano DAT2BMP tool source code

by FreeZinG » Wed Dec 09, 2009 9:55 am

cool ;) should we put this in the product page ?
FreeZinG
 

Re: DSO Nano DAT2BMP tool source code

by mitunga » Wed Dec 09, 2009 8:00 pm

Sure. No problem.
Pre-kindergarten
Pre-kindergarten
 
Posts: 6
Joined: Sun Dec 06, 2009 10:44 am

Next

Who is online
Users browsing this forum: No registered users and 0 guests
cron