forked from tTh/FloatImg
removing some wtf code
This commit is contained in:
parent
22999a4e40
commit
a587a66af8
@ -66,8 +66,7 @@ for (idx=0; idx<pfifo->nbslots; idx += step) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------------------------- */
|
/* -------------------------------------------------------------- */
|
||||||
/* -------------------------------------------------------------- */
|
/* called by 'fonderie.c'
|
||||||
/*
|
|
||||||
* this func save the fifo content as
|
* this func save the fifo content as
|
||||||
* - float FIMG
|
* - float FIMG
|
||||||
* - 16 bits PNM
|
* - 16 bits PNM
|
||||||
@ -131,8 +130,10 @@ int nbre;
|
|||||||
|
|
||||||
dst = &g_fifo.slots[g_fifo.next];
|
dst = &g_fifo.slots[g_fifo.next];
|
||||||
|
|
||||||
nbre = dst->width * dst->height * dst->type;
|
nbre = dst->width * dst->height * sizeof(float);
|
||||||
memcpy(dst->R, src->R, nbre*sizeof(float));
|
memcpy(dst->R, src->R, nbre);
|
||||||
|
memcpy(dst->G, src->G, nbre);
|
||||||
|
memcpy(dst->B, src->B, nbre);
|
||||||
|
|
||||||
g_fifo.next++, g_fifo.next %= g_fifo.nbslots;
|
g_fifo.next++, g_fifo.next %= g_fifo.nbslots;
|
||||||
// maybe we can write :
|
// maybe we can write :
|
||||||
|
Loading…
Reference in New Issue
Block a user