MI-3: Image format converter and slideshow

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

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

Re: MI-3 picture format converter

Postby rockyone » Thu Jun 28, 2018 1:45 am

Sorry, but in the version of 27/06, the last line of the image EZA is not corect if the image has an odd size !


The next version of MI-3 with a not very powerful slideshow, but useful for testing the backup format.
Be careful, the keyboard is not active when loading files. With BMPs, it can be long.
Spectrum files are ignored for the moment.
also avoid enabling color cycles if your image folder contains only images with a color cycle. You would have trouble stopping the slideshow.

I would certainly do the batch conversion in a common format.
Last edited by rockyone on Sun Jul 08, 2018 9:53 pm, edited 1 time in total.

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

Re: MI-3 picture format converter

Postby rockyone » Sun Jul 08, 2018 9:43 pm

New version. Always works with 512 KB of Ram

Now all CEL files <= 320 * 200 16 colors are loaded.

At the request of mamut, adding the loading of INL files containing images: NEO, PI1-3, with or without color cycle.
Since the PC1-3, CEL, and SD0 files are similar formats, they may also have an INL extension.

The slideshow loads all MI-3 image formats except SPC and SPU.
Display duration, file name display, and loop playback mode are adjustable during pause

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

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

Re: MI-3 picture format converter

Postby rockyone » Thu Aug 09, 2018 2:13 am

New version
Conversion of medium resolution images to low resolution.
- In 2-plane mode, the color cycles and the palette are not changed.
- In 4-plane mode, the data in shots 3 and 4 are not visible on the screen, the color palette is modified.
In both cases, the image is identical to the screen.

Converts "Spectrum" images into 16 levels of gray. - Does not work properly with all images! -

The slideshow loads all image formats known to MI-3.
With a display time of one second, you will not be able to access the keyboard with "Spectrum" images

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

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

Re: MI-3 picture format converter

Postby rockyone » Mon Aug 13, 2018 9:30 pm

Adding, loading images: Imagic .IC1 .IC2 .IC3

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

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

Re: MI-3 picture format converter

Postby rockyone » Mon Sep 03, 2018 3:39 am

After a final correction of the menu color and a headache with an Omikron bug, the mouse now has the same colors as the menu.

In the slideshow, activation of the keyboard keys:
F: create a folder
S: save the file
D: delete the file

Regardless of its location (Diskette or DD), MI-3M.PRG can be called by the image files, if this command is correctly saved in the "DESKTOP.INF" file.
Example on the 360K floppy disk.

Do not settle for the ATARI menu option "Install the application", without checking that it is correctly written in your "deskop.inf" file.
Otherwise, you risk destroying your floppy disks

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

Re: MI-3 picture format converter

Postby rockyone » Tue Sep 25, 2018 12:31 pm

Correction:
the F9 key that was no longer working after a file backup.
-In high resolution:
  redraw menu buttons after the slideshow, and blocking the "THK" extension in high resolution

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

Re: MI-3 picture format converter

Postby rockyone » Fri Oct 05, 2018 4:09 pm

Update.
When updating MI-9, I realized that the high-resolution conversion and conversion of Spectrum images into 16 gray levels worked on a non-existent buffer, because it had been erased in Omikron Basic. was he still working on an Atari ??? :mrgreen: :mrgreen: ???

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

Re: MI-3 picture format converter

Postby rockyone » Sun Oct 07, 2018 8:41 am

Fixed, the previous compilation did not have the correct fade routine. And can not work if you use a fade to white :oops: :oops: :oops: :mrgreen:

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Mon Nov 19, 2018 7:17 pm

Update
Add Open / Save Image "ABM" of Arabesque.
Blocking file deletion without extension.
Edit Open / Save with the mouse.
Refocusing text in the menu.
Slideshow:
-Key "C" added
-Correction of the colors of the text in the diaprama for the "Spectrum" images in case the previous image was not a "Spectrum" image.

Images Test ABM.zip
You do not have the required permissions to view the files attached to this post.

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Thu Nov 22, 2018 11:23 pm

The day I do not make a new bug after deleting a .... :mrgreen:
Correction of MI-3 and MI-9

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Fri May 10, 2019 6:46 pm

Added CMP and CL0-2 backup formats
Loading the top half of the CMP 640 * 800 images
Small improvement in the conversion of low resolution images to high resolution.
Correction of the "file info" display after using the "R" key

viewtopic.php?f=72&t=28191

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Wed Jun 05, 2019 4:53 pm

New
Adding the "DPI" file extension for images from "DatiSt.prg"
....
Fixed the conversion of ".SPU" images into 16 gray levels.
....
Fixed the display of "Spectrum" images in the "Pause" mode of the slideshow.

- This change temporarily blocks the "F, D, S" functions with the "Spectrum" images of the slide show.

Image,Image,Image

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Tue Aug 27, 2019 11:51 pm

update,
Fixed: The image "Toucan.SC0" was not loaded correctly.

Added loading of images:
".IMC High Resolution" from "Sigmun2" and "The Creator"
".GFB" from "Despic v1.05"

Now, the slideshow looks for the images in the subfolders

The search limit will:
From 6 subdirectories of 12 characters
"A: \ 11111111.111 \ 22222222.222 \ 33333333.333 \ 44444444.444 \ 55555555.555 \ 66666666.666 \"

At 18 subdirectories of a character
"A: \ 1 \ 2 \ 3 \ ....... \"

I created a test of these trees on the floppy disks.

I also added the keys G and F7 ...

Playmobil
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 139
Joined: Fri Nov 13, 2015 7:40 pm

Re: MI-3: Image format converter and slideshow

Postby Playmobil » Wed Aug 28, 2019 12:26 am

Merci Rocky ! Tu post, tu post, et jamais personne ne rebondit sur ton travail...

Bravo à toi !

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Wed Aug 28, 2019 8:33 am

Bonjour voyageur égaré...
Merci Playmobil, j'ai parfois l'impression d’être sur une île déserte.Pourtant J' aperçois toujours du passage à l’horizon. :mrgreen: :mrgreen:

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Mon Sep 09, 2019 12:29 am

Image
For the next version,
I changed the Spectrum image display (SPC and SPU)
But I have not yet solved the display of the mouse with these images.
I would like to read the keyboard processor commands, but I really do not know how to do it in 68K.
Do you have any examples to show me ?

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 795
Joined: Sun Aug 03, 2014 5:54 pm

Re: MI-3: Image format converter and slideshow

Postby ThorstenOtto » Mon Sep 09, 2019 1:30 am

Are you using GEM/VDI, or directly writing to the screen? With VDI have a look at vex_motv(), otherwise look at Kbdvbase(). But be aware that you might confuse AES when you catch all events.

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Mon Sep 09, 2019 7:35 am

I do not use GEM, VDI or AES calls directly in Omikron so as not to overload the program. but I'm not opposed to doing it in 68K.

The display of the pallets is done by a LAV which allows me nevertheless the progressive display of the menu in 68K.

I had to disable the mouse by writing in the control register $ fffc02, because the simple movement of the mouse stops the VBL (?? !!).

So, at Omikron, I can not get the coordinates of the mouse during the VBL.

I wonder if it would be possible to recover the movements with $ffc00 and $fffc02 without disturbing the VBL display (even if it forces me to draw a graphical pointer in 68k)

Is it possible or other solutions would be better?

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 795
Joined: Sun Aug 03, 2014 5:54 pm

Re: MI-3: Image format converter and slideshow

Postby ThorstenOtto » Mon Sep 09, 2019 8:10 am

Mouse interrupts run at IPL6, VBL at IPL5. So yes, they will interrupt it. Maybe you can prevent that by masking the ACIA interrupt in the MFP ($fffa15, bit 6), and poll the ACIA data register in your routine, but i've never done that... And of course that will only work with original hardware.

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Mon Sep 09, 2019 8:50 am

I did not think it came from the IPL level.
On the other hand, it's annoying if this solution does not work with Steem.

So, how is the graphical pointer displayed in Spectrum.prg since it works with Steem And Hatari ?

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 795
Joined: Sun Aug 03, 2014 5:54 pm

Re: MI-3: Image format converter and slideshow

Postby ThorstenOtto » Mon Sep 09, 2019 8:57 am

It's only a problem if you need the up-to-date mouse position in your VBL interrupt. Otherwise, you can just raise IPL to 6 and prevent being interupted.

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Mon Sep 09, 2019 9:39 am

I can not use IPL6 because menu calls are also accessible via the keyboard.
Currently, the mouse is disabled before launching the VBL.
But it is possible to reactivate the mouse in another VBL to read the data register $ fffc02 without disturbing the first VBl ?

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 795
Joined: Sun Aug 03, 2014 5:54 pm

Re: MI-3: Image format converter and slideshow

Postby ThorstenOtto » Mon Sep 09, 2019 9:49 am

I'm not sure what you mean. There can't be another VBL while your vbl interrupt routine is being executed?

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

Re: MI-3: Image format converter and slideshow

Postby rockyone » Mon Sep 09, 2019 11:35 am

I use a LVB for music,
Another to display the spectrum palettes (mouse disabled)
Would it be possible to do another one to read the control register $FFFC02 without disturbing the other two or is it absolutely impossible?

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 795
Joined: Sun Aug 03, 2014 5:54 pm

Re: MI-3: Image format converter and slideshow

Postby ThorstenOtto » Mon Sep 09, 2019 2:22 pm

You mean via the vblqueue? That should be possible. But you can do that of course also from a single routine:

Code: Select all

myvbl:
   jsr playmusic
   jsr displaypalettes
   jsr enablemouse
   ...


Social Media

     

Return to “Other BASIC”

Who is online

Users browsing this forum: No registered users and 3 guests