The MASM Forum

General => The Workshop => Windows API => Topic started by: daydreamer on December 01, 2022, 10:47:16 PM

Title: 2d image rotation
Post by: daydreamer on December 01, 2022, 10:47:16 PM
Gonna start 2d rotation image
Might continue to uncompressed movie rotations

Anyone already done this?
Title: Re: 2d image rotation
Post by: avcaballero on December 01, 2022, 11:10:08 PM
> Anyone already done this?

Yes

http://abreojosensamblador.epizy.com/?Tarea=5&SubTarea=6#Rotozoomer (http://abreojosensamblador.epizy.com/?Tarea=5&SubTarea=6#Rotozoomer)
Title: Re: 2d image rotation
Post by: daydreamer on December 02, 2022, 08:27:29 AM
Thanks caballero :thumbsup:
Title: Re: 2d image rotation
Post by: daydreamer on December 18, 2022, 01:25:34 AM
First easy with rotate objects,lines
If i am restricted by 1024*768 ,showing 1024*1024 or bigger
C Break out of loop?much branch misprediction ?
So i want to try
Pixelshader inverse coding
So loop only 1024*768
Title: Re: 2d image rotation
Post by: daydreamer on January 19, 2023, 07:21:38 AM
I am trying to make a 8:24 fixed point solution on x, y together is used as pointer to where bmp2 new pixel appears
Kinda scanning from middle of bitmap bmp1 outwards
Got problem with suddenly result switch to negative- values, signbit probably doesnt work correctly when shift 8:24 fixed point using shift 24
Deltax =int (cos (alpha) *2^24) and deltay=int (sin (alpha)*2^24)

Title: Re: 2d image rotation
Post by: daydreamer on March 25, 2023, 08:02:42 PM
I take a break from this
One idea want to try is rotate rle encoded bitmap = mean of all lengths * faster rotation