Создать ответ 
 
Рейтинг темы:
  • Голосов: 0 - Средняя оценка: 0
  • 1
  • 2
  • 3
  • 4
  • 5
lzo compressed images in DS?
Автор Сообщение
Guaripolo Не на форуме
Новичок
*

Сообщений: 16
Зарегистрирован: 31.01.2010
Рейтинг: 0
Сказал спасибо: 0
Поблагодарили 3 раз(а) в 3 сообщ.
Сообщение: #1
lzo compressed images in DS?
i've watched the part 2 of the videos uploaded to youtube, and seems like txr2 is running a lot better than before.

Are you using some kind of compression -lzo?- in iso images? (if the answer is YES, i want to know how to do it!)


bye =)
03.02.2012 06:18
Найти все сообщения Цитировать это сообщение
SWAT Не на форуме
Администратор
*******

Сообщений: 7126
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1169 раз(а) в 727 сообщ.
Сообщение: #2
RE: lzo compressed images in DS?
Yes, there is a compressed image. You can compress the image with a new iso make pack v2.

[Изображение: barbers.png]
03.02.2012 07:26
Вебсайт Найти все сообщения Цитировать это сообщение
Guaripolo Не на форуме
Новичок
*

Сообщений: 16
Зарегистрирован: 31.01.2010
Рейтинг: 0
Сказал спасибо: 0
Поблагодарили 3 раз(а) в 3 сообщ.
Сообщение: #3
RE: lzo compressed images in DS?
i use linux and the iso make tools does not work on it. can i make a cso with lzop file compressor?
20.05.2012 05:33
Найти все сообщения Цитировать это сообщение
SWAT Не на форуме
Администратор
*******

Сообщений: 7126
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1169 раз(а) в 727 сообщ.
Сообщение: #4
RE: lzo compressed images in DS?
No, but you can compile this util from source code.


Прикрепления
.zip  ciso.zip (Размер: 4.82 Кб / Загрузок: 20)

[Изображение: barbers.png]
21.05.2012 07:23
Вебсайт Найти все сообщения Цитировать это сообщение
Guaripolo Не на форуме
Новичок
*

Сообщений: 16
Зарегистрирован: 31.01.2010
Рейтинг: 0
Сказал спасибо: 0
Поблагодарили 3 раз(а) в 3 сообщ.
Сообщение: #5
RE: lzo compressed images in DS?
thanks!
21.05.2012 18:06
Найти все сообщения Цитировать это сообщение
neon Не на форуме
Пользователь
**

Сообщений: 41
Зарегистрирован: 25.08.2010
Рейтинг: 0
Сказал спасибо: 0
Поблагодарили 7 раз(а) в 6 сообщ.
Сообщение: #6
RE: lzo compressed images in DS?
SWAT, do you have compiled binaries for Linux? I compiled source code, but when I run "./ciso", it gives me Segmentation fault. When I run "./ciso lzo 9 image.iso image.cso" I get Floating point exception.
14.10.2012 10:09
Найти все сообщения Цитировать это сообщение
SWAT Не на форуме
Администратор
*******

Сообщений: 7126
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1169 раз(а) в 727 сообщ.
Сообщение: #7
RE: lzo compressed images in DS?
I no, but Guaripolo probably tried. And I do not see any problems there, it should work, the program is simple.

[Изображение: barbers.png]
14.10.2012 10:56
Вебсайт Найти все сообщения Цитировать это сообщение
neon Не на форуме
Пользователь
**

Сообщений: 41
Зарегистрирован: 25.08.2010
Рейтинг: 0
Сказал спасибо: 0
Поблагодарили 7 раз(а) в 6 сообщ.
Сообщение: #8
RE: lzo compressed images in DS?
I was using fake iso image. If I use correct iso, all works great.

There should be info "wrong iso format, can't compress image" Smile
(Последний раз сообщение было отредактировано 16.10.2012 в 15:03, отредактировал пользователь neon.)
16.10.2012 15:03
Найти все сообщения Цитировать это сообщение
SWAT Не на форуме
Администратор
*******

Сообщений: 7126
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1169 раз(а) в 727 сообщ.
Сообщение: #9
RE: lzo compressed images in DS?
Yep Smile

[Изображение: barbers.png]
17.10.2012 16:58
Вебсайт Найти все сообщения Цитировать это сообщение
neon Не на форуме
Пользователь
**

Сообщений: 41
Зарегистрирован: 25.08.2010
Рейтинг: 0
Сказал спасибо: 0
Поблагодарили 7 раз(а) в 6 сообщ.
Сообщение: #10
RE: lzo compressed images in DS?
1. There's no info, how to decompress .cso
I read source code, and now I know "ciso lzo 0 image.cso image.iso" is for decompressing. Smile

2. It seems that it compress only with level 1. If I compress with level 9, I get the same file size like with level 1, or level 5.

I tested the some iso file with lzop compressor. And lzop gives different file size, with different compression level.

I don"t have Windows OS right now. Can you test (win32) ciso.exe with different compression level with this iso?
http://www.retroguru.com/sqrxz/sqrxz-v0996-dc.iso
Using Linux "ciso", always give me 1 443 370 bytes, when I compress this iso.

3. Why you skip zlib compression? It can by useful with homebrew software.

4. How big is lzo decompression module? Some commercial games don't work with compression. Some freeze in the beginning of gameplay.
28.10.2012 19:13
Найти все сообщения Цитировать это сообщение
SWAT Не на форуме
Администратор
*******

Сообщений: 7126
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1169 раз(а) в 727 сообщ.
Сообщение: #11
RE: lzo compressed images in DS?
I'm just modified original code by BOOSTER, added lzo type (in original only zlib), no any more changes. I agree that it needs some work, at that time I had to do it quickly.
LZO compression supported only one mode 1x_999 at all. That is optimal for good compression and decompression speed of iso images on the fly.
ZLIB compression supported level selection, but zlib not supported by loader (no free memory for this), only DS kernel can mount this cso format as filesystem directory.
LZO library size is small, the problem is in the buffer for decompression. It uses an additional area of high memory. This memory area can be used in some games Sad

[Изображение: barbers.png]
31.10.2012 11:37
Вебсайт Найти все сообщения Цитировать это сообщение
neon Не на форуме
Пользователь
**

Сообщений: 41
Зарегистрирован: 25.08.2010
Рейтинг: 0
Сказал спасибо: 0
Поблагодарили 7 раз(а) в 6 сообщ.
Сообщение: #12
RE: lzo compressed images in DS?
SWAT, thank you for explanations. I just read that lzo decompression speed is always the same, no matter what compression level we use. This means that maximum compression level is optimal, and there's no need to use lower compression levels.

"Segmentation fault" error was caused by "%s" in printf. Probably some old compilers may have problem with this.

I made a small change:
Цитата:printf("Usage: %s library level infile outfile\n", argv[0]);
printf(" level: 1-9 for compress (1=fast/large - 9=small/slow), 0 for decompress\n");
printf(" library: zlib or lzo\n\n");
return 0;
And now it works OK.
08.11.2012 11:47
Найти все сообщения Цитировать это сообщение
Создать ответ 


Переход:


Пользователи просматривают эту тему: 1 Гость(ей)