05 March 2008, 08:34 | #101 | ||||||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,831
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
I've been playing around with the assembler parts of your jpeg decoder, and have found that I can modify those files without them having any effect when I compile the project Any pointers on what's going on? Last edited by Thorham; 06 March 2008 at 07:08. |
||||||||
06 March 2008, 11:24 | #102 | ||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,351
|
Quote:
I have advanced a little and can display some (most ?) color ones, but the progressive jpeg support is somewhat broken (it works with the files I've tested, but anytime I try a new one I discover something unexpected ) It's somewhat working. But the code is quite dirty because it has got modified a lot of times before it accepted to work Speedwise, I've understood why I'm faster on lulu.jpg than on yuna.jpg : it's simply that the former is in 1x1 (and therefore does not need upsampling) whereas the latter is in 2x2. So guess what ? Visage is probably using a box filter upsampler (if I do the same I'm faster heheh). Quote:
That said, it is true that some different boards look the same because using the same chip, hence you can have some sort of "generic" driver. If you really want to look at drivers to see what's going on in them, then you can start with some linux driver sources. Oh, well. It seems I should have told you to phxass that v.s to get a new v.o before re-linking the project... |
||
10 March 2008, 09:25 | #103 | |||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,831
|
Quote:
Quote:
Quote:
|
|||
10 March 2008, 15:21 | #104 | |||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,351
|
Quote:
Either they damage the quality or they don't gain speed on all images Quote:
On the other hand they're probably quite unreadable... Quote:
Else it's possible to directly include them. But now I think it's rather pointless. Look at what I've put in the zone for you to play with and tell me what you think of it |
|||
10 March 2008, 16:29 | #105 | ||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,831
|
Quote:
Quote:
Quote:
Quote:
Maybe it's time for you to start advertising your viewer on the eab, I'm sure other people will also like it a lot. Edit: I just tried v with a progressive jpeg, and all I can say is that v just became even better in my opinion. All the other ones I've seen, do it in multiple passes which you can see on screen, slowing everithing down to a crawl, not v, however. Again, ace program, meynaf. Edit2: (note: All this is for quick mode) After looking at the idct code, I decided to try a little stunt and replace a bunch of muls values with the closest power of two... Guess what? For a good few it doesn't matter a lot. Next, I replaced them with shifts. For negative muls values: Shifts, and then neg... Same result: Degradation, but not that much. It seems you can get away with quite a lot of fiddling around with those muls and it saves quite a few frames. I never would have expected this at all, and although I haven't replaced all possible muls with shifts, I already got the grey scale image down from 128 frames to 120 Combine this trick with all the other quick and dirty tricks, and the quick mode is indeed going to be quick. Edit3: Have tried removing some of the fixed value muls completely, and although there is some degradation, overall it still isn't huge! The gray image is now displayed in about 117 frames. I wonder how much less this can become with the other dirty tricks. Edit4: I've uploaded the modified jpeg.s file and a bmp file (based on your gray test image) rendered with the modified jpeg.s to the zone. The jpeg is your original. Let me know what you think of it for a quick mode, although I'm sure you'll agree it's quite bearable for such purposes. Edit5: I've discovered a bug which causes v to crash, I'll let you know when this exactly happens when I find out how to reproduce the error. Last edited by Thorham; 12 March 2008 at 11:21. |
||||
13 March 2008, 13:51 | #106 | |||||||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,351
|
Quote:
Quote:
Quote:
For the png, what I have to say is that when I tried to display one with Visage, it just crashed What do you use to show them ? (I remember a few crashes with akpng datatype too) If you're still interested in implementing the png, then I can write some sort of skeleton codec for you. Quote:
Quote:
The program "jpegaga" (see Aminet) doesn't do it in several passes. Yet it's still very slow Quote:
Quote:
Code:
test2a equ 1 ; idct - shortcut 1st coef if test2 huffdeq equ 1 ; dequant coefs ac in huffman rather than dct Quote:
Quote:
On which image did it happen ? Last edited by meynaf; 12 May 2011 at 08:32. |
|||||||||
14 March 2008, 13:16 | #107 | |||||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,831
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||||
17 March 2008, 14:34 | #108 | |||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,351
|
Quote:
Quote:
Quote:
Why was it hard ? Separate DC/AC decodings, which are done sometimes one component at a time, sometimes mixed up, different layout of the MCUs, different huffman encoding (when it's huffman at all)... Quote:
Quote:
What was the file type ? What was the error ? |
|||||
18 March 2008, 15:17 | #109 | |||||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,831
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||||
20 March 2008, 18:00 | #110 | ||||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,351
|
Quote:
Quote:
Quote:
Quote:
But seeing how you enjoyed it makes me think it was more than worth Oh, I'm confident it'll be poor, no problem But it ought to be fast. I think a "quick" option isn't worth if it's not at least twice faster than the regular high quality one, don't you agree ? Quote:
Quote:
Your test case sounds like a low memory situation anyway (low chipmem ? maybe low fastmem ?), so I'll investigate on that field. |
||||||
25 March 2008, 02:35 | #111 | |||||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,831
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||||
27 March 2008, 18:40 | #112 | ||||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,351
|
Quote:
Quote:
Quote:
Quote:
Quote:
If you can do your 1280x1024 image in 400 frames or less then it's ok. I expected this... <sigh> When you try your best to get a crash, do you experience enforcer hits (or similar things with another program) ? Quote:
|
||||||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
JPEG to IFF Coverter | W4r3DeV1L | request.Apps | 15 | 14 February 2020 17:21 |
Overzealous Kickstart ROM - address decoding? | robinsonb5 | Hardware mods | 3 | 30 June 2013 11:09 |
JPEG to PNG (via CLI) | amiga_user | support.Apps | 3 | 28 November 2011 11:50 |
Decoding algorithm(s) for encoded disk sectors (ADOS) | andreas | Coders. General | 10 | 02 November 2009 22:18 |
Blitter MFM decoding | Photon | Coders. General | 14 | 16 March 2006 11:24 |
|
|