logo       

Re: Reminder: msg#00252

video.blender.devel

Subject: Re: Reminder

Hi,

Weird... but i have them here in backup: (check new function name conventions!)

void interlace(struct ImBuf *ibuf)
{
struct ImBuf * tbuf1, * tbuf2;
extern rectcpy();

if (ibuf == 0) return;
ibuf->flags &= ~IB_fields;

ibuf->y *= 2;

if (ibuf->rect) {
/* make copies */
tbuf1 = allocImBuf(ibuf->x, ibuf->y / 2, 32, IB_rect, 0);
tbuf2 = allocImBuf(ibuf->x, ibuf->y / 2, 32, IB_rect, 0);

rectop(tbuf1, ibuf, 0, 0, 0, 0, 32767, 32767, rectcpy);
rectop(tbuf2, ibuf, 0, 0, 0, tbuf2->y, 32767, 32767, rectcpy);

ibuf->x *= 2;
rectop(ibuf, tbuf1, 0, 0, 0, 0, 32767, 32767, rectcpy);
rectop(ibuf, tbuf2, tbuf2->x, 0, 0, 0, 32767, 32767, rectcpy);
ibuf->x /= 2;

freeImBuf(tbuf1);
freeImBuf(tbuf2);
}
}

void gamwarp(struct ImBuf *ibuf, double gamma)
{
uchar gam[256];
int i;
uchar *rect;

if (ibuf == 0) return;
if (ibuf->rect == 0) return;
if (gamma == 1.0) return;

gamma = 1.0 / gamma;
for (i = 255 ; i >= 0 ; i--) gam[i] = (255.0 * pow(i / 255.0 , gamma)) + 0.5;

rect = (uchar *) ibuf->rect;
for (i = ibuf->x * ibuf->y ; i>0 ; i--){
rect ++;
*rect ++ = gam[*rect];
*rect ++ = gam[*rect];
*rect ++ = gam[*rect];
}
}


-Ton-


On Wednesday, Apr 30, 2003, at 19:01 Europe/Amsterdam, Kent Mein wrote:

Not sure who said they would add this back in but just a reminder
that we need

gamwarp and interlace for the blur plugin to funtion and they are nowhere
to be found. :)

Kent
-- mein@xxxxxxxxxx
http://www.cs.umn.edu/~mein
_______________________________________________
Bf-committers mailing list
Bf-committers@xxxxxxxxxxx
http://www.blender.org/mailman/listinfo/bf-committers


------------------------------------------------------------------------ --
Ton Roosendaal Blender Foundation ton@xxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise