flat assembler
Message board for the users of flat assembler.

Index > Heap > I need SSE code for spline interpolation

Author
Thread Post new topic Reply to topic
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
Can someone provide the code? Very Happy

Code:
typedef struct { float x; float y; } point_t;


BOOL STDCALL spline_interpolation(point_t * src_points, size_t count, point_t ** dst_points, size_t * out_size)
{
   return success;
}

    



Must allocate the destination points using HeapAlloc and dst_points must include src_points as well.

I'll call it like this

Code:
point_t my_points[] = {{0,0}, ...};
point_t * smooth_points = NULL;
size_t nSmoothPoints = 0;

if(spline_interpolation(&my_points, sizeof(my_points), &smooth_points, &nSmoothPoints))
{
   // use my smooth_points here
   HeapFree(..., (LPVOID)smooth_points);
}

    


My CPU:
64it - supported instructions: SSE, SSE2, SSE3, SSSE3, SSE4.1

Very Happy

Thanks.
Post 05 Oct 2015, 03:06
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17287
Location: In your JS exploiting you and your system
revolution
Which algorithm do you want to use?
Post 05 Oct 2015, 04:03
View user's profile Send private message Visit poster's website Reply with quote
macgub



Joined: 11 Jan 2006
Posts: 238
Location: Poland
macgub
typedef,
Please take look in:
http://board.flatassembler.net/topic.php?t=17580
But I afraid its not enought for you.
Post 05 Oct 2015, 06:53
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
revolution wrote:
Which algorithm do you want to use?


For now it doesn't matter. But I'd prefer cubic bezier
Post 05 Oct 2015, 07:28
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
macgub wrote:
typedef,
Please take look in:
http://board.flatassembler.net/topic.php?t=17580
But I afraid its not enought for you.


Thanks.
Post 09 Oct 2015, 22:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.