it's time to send some xmas greetings out to the world.
especially for you i have coded a some demo-code for yuv->rgb and y-scaling.
it is included in the upcoming release of ggitv-0.0.13 (the xmas-release).
y-scaling:
unsigned char *d = dst;
unsigned char *s = src;
i = count = 0;
while ( i < dst_size_y && y < src_size_y) {
while (count <= dst_size_y) {
memcpy(d, s, src_size_x);
count += src_size_y;
d += src_size_x;
i++;
if (i >= dst_size_y) break;
}
s += src_size_x;
y++;
count -= dst_size_y;
}
yuv->rgb:
can be found in ggitv/src/ggitvyuv.c. one version is for directbuffer, the
second is for ordinary visuals.
so far, merry xmas to all of you.
thats all
Jan
---
-)= Jan Kneschke -- Kiel -- Germany -- http://www.kneschke.de =(-