Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Image Scaling

Name: Anonymous 2012-08-22 16:07

/prog/, do you have fast and good image scaling algorithm in the form of:
void resample(uint8_t *Dst, int DstW, int DstH, uint8_t *Src, int SrcW, int SrcH);

???

Name: Anonymous 2012-08-23 11:33

>>27
The inner loop will be compiled as a pointer counting up towards an end pointer, basically: while (dstp < dst_end)
Only if compiler is very smart. IIRC, Visual Studio 6.0 havent done such optimization and since then I always do it manually.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List