|
Re: Reminder: msg#00252video.blender.devel
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------------------------------------------------------------------------ -- Ton Roosendaal Blender Foundation ton@xxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS commit: blender/release Makefile blender/release/plugins Makefile: 00252, Kent Mein |
|---|---|
| Next by Date: | Re: Keystroke list: 00252, Douglas Bischoff |
| Previous by Thread: | Reminderi: 00252, Kent Mein |
| Next by Thread: | CVS commit: blender/release Makefile blender/release/plugins Makefile: 00252, Kent Mein |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |