[MPlayer-dev-eng] About the future - libvo2...
Michael Niedermayer
michaelni at gmx.at
Tue Nov 6 15:14:15 CET 2001
Hi
On Tuesday 06 November 2001 14:02, Arpi wrote:
> > Also, there should be a global yuv2rgb rgb2yuv library, it's not funny
> > to implement conversion routines over and over again, and say I need
> > BGR24->Yuv420p(ffmpeg), instead of implementing it in my device I would
> > add it to rgb2yuv so the next guy who needs it won't have to do it.
>
> Yes. Michael done a good job with this. Almost all converters and scalers
> are ready to use.
:)
> The best would be:
> A general library which provides an init and convert function, init sets
> surface sizes and colorspaces (and does internal stuff of converters, like
> building tables, convert palette etc) and a convert function which does the
> actual conversion/scaling. It should have an option to choose between speed
> and quality.
perhaps
struct ConvInfo confInfo= initConvert(outputFormat, inputFormat,
inputStride[], outputStride[], inputWidth, inputHeight, outputWidth,
outputHeight, inputSliceHeight, int speed);
convert(dst[], src[], sliceNum, convInfo);
Michael
More information about the MPlayer-dev-eng
mailing list