View Single Post
Old 29 January 2008, 13:56   #67
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,796
Quote:
Originally Posted by meynaf
Cool It's just a pity that posting there doesn't increase the post count!
Quote:
Originally Posted by meynaf
I think my program to measure execution times will run a lot next week-end.
I'd say. I've seen the thread and theres a lot to test.
Quote:
Originally Posted by meynaf
Let me know when you achieve something...
Well, I wouldn't wait on it if I were you. It's not going to happen any time soon. I have a little compiler project I'm doing on the amiga, and one of the goals is to get this to compile pc code. Only when the 680x0 part is done will I ever learn ia32 code. So, that really could take a while.
Quote:
Originally Posted by meynaf
But finally you did it. Now you're a Man
Yippy, I'm a MAN now, hurray
Quote:
Originally Posted by meynaf
Not really but it's close.

You have 4 pixels to write : up-left, up-right, down-left, down-right.
All of them get 9/16 of (x,y), and :
- For up-left : 1/16 of (x-1,y-1), 3/16 of (x-1,y), 3/16 of (x,y-1)
- For up-right : 1/16 of (x+1, y-1), 3/16 of (x+1,y), 3/16 of (x,y-1)
- For down-left : 1/16 of (x-1,y+1), 3/16 of (x-1,y), 3/16 of (x,y+1)
- For down-right : 1/16 of (x+1,y+1), 3/16 of (x+1,y), 3/16 of (x,y+1)
Right. I've implemented it, and is does a much better job then simple bilinear. I'm simply not using that anymore. The image with this one is much sharper! Another plus is that it's not even going to be much slower then bilinear when implemented in asm. I might just do an asm version for the fun of it, maybe I can beat your version

By the way, you may still try bilinear for a speed gain on a plain a1200. I'll try it with my ycbcr program in basic.
Quote:
Originally Posted by meynaf
It's clear enough. Apparently bilinear interpolation is the same as triangular, but it weights the pixels with 1/1/1/1 instead of 9/3/3/1.
Yes, it does seem very similar. Here it is in basic:
Code:
p=(p1*1+p2*3+p4*3+p5*9)\16:plot(xx+640,yy+512,p)
p=(p2*3+p3*1+p5*9+p6*3)\16:plot(xx+1+640,yy+512,p)
p=(p4*3+p5*9+p7*1+p8*3)\16:plot(xx+640,yy+1+512,p)
p=(p5*9+p6*3+p8*3+p9*1)\16:plot(xx+1+640,yy+1+512,p)
Was very simple to modify the code, and the results are very good, too!
Quote:
Originally Posted by meynaf
I don't know if I will succeed, but I'm going to try it this week-end.
While I do hope you succeed, even if you don't, I really appreciate the fact that you're going to try it. Thank you

Last edited by Thorham; 29 January 2008 at 14:02.
Thorham is offline  
 
Page generated in 0.04473 seconds with 10 queries