MI-3: Image format converter and slideshow

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Post Reply
rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

I also found on other sites, but it's still the same copy that does not work
the "RLE" "zigzag" has it been used on ST ?

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2488
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Post by lp »

That disk image didn't work for me either. However this one did:
http://www.atarimania.com/utility-atari ... 28363.html

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

Tested with TOS US GB FR, it is not good :evil:

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2488
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Post by lp »

It's working in Hatari at my setup, see the setup info in the screen shot.
Screen Shot 2016-10-06 at 2.00.36 PM.png
You do not have the required permissions to view the files attached to this post.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

I've ever used "Hatari", but I'll try to see what programme.Avec "Steem" I is not found no copies of "Paintwork" that works

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2488
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Post by lp »

I tried packbits decompression, but that didn't work. I dis-assembled picswitch7 and followed the Nvision trail to some RLE code and translated it to C. I made a compressed st high *.sc2 file and it depacks it ok. It looks to me like the same decompression is used on all 3 modes. Sorry for the C as I cannot use BASIC for zView codecs. ;)

Code: Select all

/* rle depack paintworks */
int32 cnt=0,s=0,d=0;
do {
	uint8 c=bmap[s++];
	if (c & 0x80) {		/* neg? */
		c = c & 0x7f;
		for(i=0; i<c; i++) {
			temp[d++]=bmap[s++];	/*literal */
		}
	} else {
		uint8 b=bmap[s++];
		for (i=0; i<c; i++) {
			temp[d++]=b;
		}
	}
	cnt = cnt + c;
} while (cnt<bms);
I get this decoding an st medium image, the paintworks title from the disk:
Screen Shot 2016-10-06 at 10.25.08 PM.png
It looks like it needs another pass to arrange the planes, but how? Not sure yet.
You do not have the required permissions to view the files attached to this post.
Last edited by lp on Fri Oct 07, 2016 6:06 pm, edited 1 time in total.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

good progress :cheers:
Did you check the resolution in the image's head?
restore order plans

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2488
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Post by lp »

Header layout thus far:

Code: Select all

Offset    Size    Description
------    ------  ----------------------------------------------------------
0         2       always 0
2         2       resolution      0=low 1=medium 2=high
4         32      pallete         xbios format (hardware order)
36        12      file name       "12345678.123" (not used, always spaces)
48        2       ?
50        2       ?
52        2       ?       
54        9       file id         "ANvisionA"
63        1       bit flags       %CRRRIIII       
                                    Compressed: 0=no 1=yes
                                    Resolution: 0=low 1=medium 2=high 
                                    Image type: 0=page 1=screen 2=clipboard 4=pattern
                                    Note: page use image height*2
64-127    64      ?               
The items marked with '?' are unknown, could be related to program settings or color cycling. There is also what looks like extra color palettes stored behind the image. These I ignore for now.
Last edited by lp on Fri Oct 07, 2016 5:37 pm, edited 1 time in total.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

byte 63
resolution......type....... uncompressed.....compressed
0-1............Sc0-1............$1................$81..$82
0-1............Cl0-1............$2................$91..$92
2..............Sc2..Cl2........?.$3...Not $4.....$83..$94..? not tested
-------------------------------------------------------------------------
unknown format..............byte 63
0...............Pt0..............$4................certainly compressed
1...............Pt1..............$14
2...............Pt2..............$14 ? value of file R2, not tested
0-1............Pg0-1............$10

File patterns : 128 byte header same format and Unused space before the data , EOf palette.
low in resolution 16 * 16 screen dots
Last edited by rockyone on Fri Oct 07, 2016 4:50 pm, edited 1 time in total.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

I prefer Steem has Hatari, I am not alone :mrgreen:
[img][img]http://www.mirari.fr/JzN8[/img][/img]

I have not found the resolution on Hatari :oops:

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2488
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Post by lp »

I already have byte 63 figured out, it is a bit field, see my post with the header info, you might have to scroll within the box to see it all. I would not trust the file extension, but use byte 63 as it tells all. Clipboard and screen format are identical, the image type for clipboard simply tells Paintworks to load it into the clipboard buffer and not the work screen buffer. I made samples of all formats compressed and uncompressed and all load ok, except st low and st medium compressed. Still not sure how to re-arrange the planes after the RLE pass.

In Hatari I go to Preferences -> Atari Screen -> Monitor -> Mono or RGB
Then when it boot, change rez at the desktop.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

thank you I did not notice a mono / rgb
The uncompressed files are similar to "NEO" and "CLE" of "Cyber_Paint 2". and load well in Neochrome

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

I feel that the plans are designed as a low-resolution image.
19 offset words

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

I board send a message in your PM

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2488
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Post by lp »

Figured it out with further dis-assembly of picswitch7. The planes are simply separated word-wise. zView can now load all CLx, SCx, and PGx files.
Screen Shot 2016-10-10 at 1.08.18 AM.png
You do not have the required permissions to view the files attached to this post.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

good work :cheers:
I do not have time to continue.
in addition, I lost 68k code that I started.
if I understand Google translat, plans are separated

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

MI-5 10-2016
Do not open the write protected files

GEMDOS an error, fopen in mode 2
Last edited by rockyone on Thu Oct 20, 2016 12:08 am, edited 1 time in total.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

a different version of format supported by Paint Work
NVISION PIC.jpg
TITLE SC0.jpg
https://demozoo.org/groups/36736/
You do not have the required permissions to view the files attached to this post.

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2488
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Post by lp »

My working copy looks different than yours, I have v1.5 I am not sure about the PIC files. When I add the pic extender in my version it saves in NVision format anyway.
Last edited by lp on Fri Dec 02, 2016 8:34 pm, edited 2 times in total.

TXG/MNX
Captain Atari
Captain Atari
Posts: 185
Joined: Fri Oct 24, 2003 10:05 am

Re: picture format converter

Post by TXG/MNX »

Hi can you add save as BMP aswell ?

That would make it easy to use the graphics on other Atari computers aswell. For the other Atari systems like the 7800 and Jaguar you can convert / use bmp files.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

I have the same version as you.

Paintwork load only PIC

Two versions and two different name : N-Vision and Paintworks
(Both not working with Steem)

PIC files could be the compatible format Néochrome of N-Vision ?

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2488
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Post by lp »

I see now, the image you posted was NVISION.PIC from the demo loaded into Paintworks, lol Paintworks will load any file 32128 bytes, if you rename *.pic to *.bla it does not care. I think it looks at the size and assumes neo. Maybe from an earlier version of paintworks? They may of been renamed *.pic for the purpose of the demo, they save 604 bytes over sc0 format?

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

yes :mrgreen:


Uptade Mi-3

Correction of the opening of write-protected files.

Added loading files "SC0-2" and "CL0-2" of Paintwork.
I would do the backup in these formats when I have time.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: picture format converter

Post by rockyone »

TXG/MNX wrote:Hi can you add save as BMP aswell ?

That would make it easy to use the graphics on other Atari computers aswell. For the other Atari systems like the 7800 and Jaguar you can convert / use bmp files.

to which this post ?

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: MI-3 picture format converter

Post by rockyone »

Update : http://www.atari-forum.com/viewtopic.php?f=72&t=28191


Added MSP, PA3, PPP formats

Activation SC0-2 backup uncompressed and without color cycles

Reactivation of TNY backup blocked by error in the latest version :shrug:

Reactivation of the automatic conversion of a cycle from eight colors to ART format.
The conversion of the animation speed is almost in accordance with the format

Post Reply

Return to “Other BASIC”