scr2 encoding (Development Foros MSX)MSX Resource Center PassionMSX MSX2 contest           
                       
English Nederlands Español Português Russian                  
 Noticias
   Página principal
  Almacén de noticias
  Temas de noticias

 Recursos
   Foros MSX
  Artículos
  Analisis
  Informe de ferias/RUs
  Álbum de fotos
  Ferias y encuentros
  Encuestas
  Enlaces
  Buscar

 Software
   Descargas
  Tienda Online

 MRC
   Quiénes somos
  Únete a nuestro equipo
  Donar
  Políticas
  Contacta con nosotros
  Enlázanos
  Estadísticas

 Buscar
 
  

  

 Login
 

Login

Contraseña




¿Aún no tienes una cuenta? ¡Conviértete en miembro del MSX Resource Center! ¡Únete a nosotros!.


 Estadísticas
 

Hay 132 invitados y 3 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - scr2 encoding

Autor

scr2 encoding

ARTRAG
msx master
Mensajes: 1592
Publicado: Mayo 12 2007, 17:16   
What is the fastest way to get a good conversion in screen 2 of a 8x8 image ?

I have a 8x8 RGB image at 24bits (8 bit for each R,G and B component)
and I need to convert it to screen 2 in an efficient way
I use the MSX 1 palette.

My current solution is "brute force"

1) I generate all the possible lines of 8 points that can be visualized by the VDP in screen 2 (excluding repetitions they are 26685)
2) I split the 8x8 block in 8 horizontal lines of 8 pixels
3) for each line, I compute the distance with the "allowed lines" and find the minimum (minimum squared error)

This algorithm implies that I compute 8 times 26685 distances between two 3D vectors (R,G,B components)

Moreover the result does not seem very nice, as I have seen that
some converters give very good results using dithering (e.g. Jannone's one, at msx.jannone.org, that seems excellent)

Any suggestion to get a faster/better conversion, maybe using dithering ?
Does any one have a snippet of code to share with me?

dvik
msx master
Mensajes: 1303
Publicado: Mayo 12 2007, 18:15   
I think the results from this tool is very good.

*EDIT* Never mind, you already mentioned this tool
ARTRAG
msx master
Mensajes: 1592
Publicado: Mayo 12 2007, 18:27   
true, the problem is that the Floyd algorithm seems quite difficult
to implement...
 
 







(c) 1994 - 2008 Fundación MSX Resource Center. MSX es una marca registrada de MSX Licensing Corporation