x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

convert2bp: A 2bp to bmp converter

Moderators: C:Amie

Jump to page : 1
Now viewing page 1 [15 messages per page]

Karpour Page Icon Posted 2020-05-16 10:14 PM
#
Avatar image of Karpour
Subscribers
H/PC Philosopher

Posts:
262
Location:
Austria
Status:
I think a thread is warranted, here's a first release of my quickly assembled weekend project,

It does exactly one thing, converting 2bp files to BMP files. (4bpp bmp files with a palette of 4 colors to be exact)

usage: convert2bp [-h] [-v] [-o OUTPUTFILE] [-f] [INPUTFILE]

It's written in node.js, but I built executables without dependencies for anyone who wants to try. (They're huge since they contain the entire node.js runtime, but it works)

Sources (very unorganized): https://github.com/karpour/convert2bp

Windows EXE: https://www.dropbox.com/s/28hhkua10ts9yb4/convert2bp-win.zip?dl=0

Linux binary: https://www.dropbox.com/s/ragxzcledubbcg9/convert2bp-linux.zip?dl=0

If anyone is brave enough to test it, let me know if there are any files where there are issues, as I don't have a lot of 2bp files to test with

This was more of a project to get familiar with piping data and getting familiar with the 2bp format, and obviously this is not really the best way to write a CLI app. The library I made for parsing is in js though, so it can be embedded into websites!
So what you could do is embed a little script into pages that use 2bp images (like the welcome page of Pocket IE 1.0) that converts 2bp to bmp while the page loads!
 Top of the page
Mjolnir Page Icon Posted 2020-05-17 12:30 AM
#
Avatar image of Mjolnir
Subscribers
Factorite (Elite)

Posts:
151
Location:
United States
Status:
I get a chance I may work up some 2bps and give it a whirl but I am a little confused about why I would want to use a format not native to win ce? To be honest, referencing my 360LX thread, so far 256 color gifs seem anecdotally to be giving the me the best visual experience.
 Top of the page
ShadowMaster Page Icon Posted 2020-05-19 7:35 PM
#
Avatar image of ShadowMaster
Subscribers
H/PC Philosopher

Posts:
279
Location:
Chile
Status:
Good job!
From what I remember, very old WinCE devices used 2bp primarily, so I think this is a neat tool that could prove useful in porting or hacking old CE software.
 Top of the page
pacmania1982 Page Icon Posted 2020-05-22 10:03 PM
#
Avatar image of pacmania1982
Factorite (Junior)

Posts:
28
Location:
United Kingdom
Status:
Quote
ShadowMaster - 2020-05-19 7:35 PM

Good job!
From what I remember, very old WinCE devices used 2bp primarily, so I think this is a neat tool that could prove useful in porting or hacking old CE software.


Yes - Windows CE 1.0 devices didn't support BMP's. Copying BMP's from the device to your PC or vice versa would be converted using Handheld PC Explorer.

 Top of the page
hpc:factor« View previous thread · Developers Arena · View next thread »

Jump to page : 1
Now viewing page 1 [15 messages per page]

Jump to forum:
Seconds to generate: 0.046 - Cached queries : 38 - Executed queries : 31
Server Time now is: Sunday, 29 November 2020 - 16:21