From: Dan D. <da...@de...> - 2004-04-10 00:39:24
|
On Fri, 2004-04-09 at 20:07, Matthias Melcher wrote: > For some kind of preview app with interactive rendering, I need to > convert an RGB image in RAM into a raw DV image, also in RAM (why? see > below).=20 >=20 > - Is there an easy way to that with libdv? yes, see http://cvs.sourceforge.net/viewcvs.py/libdv/libdv/libdv/reppm.c?rev=3D1.4&v= iew=3Dtxt This example reads a ppm rgb image into mem, encodes it using libdv, decodes and re-encodes a number of times, and then writes out a new ppm. |