[XviD-devel] dev-api-4: plugins api
Christoph Lampert
chl at math.uni-bonn.de
Sat Mar 15 16:34:31 CET 2003
On Sun, 16 Mar 2003, suxen_drol wrote:
>
> currently, xvid returns "long sse_[y,u,v]". why didnt we use floats for
> this? i presume to keep the api stricly integer-only.
> is there any reason why we cant use floats, instead of raw sse values?
That was me.
I wanted to keep everything int, and from SSE to PSNR is a fixed
formula, just division and log(), so the caller could do the calculation
jsut as well. I had the idea it would be good to keep xvidcore completely
float-free.
But since it's just called once per frame, it doesn't matter and we can
use float values just as well.
> > Sorry, I didn't check plugin API, but shouldn't two parameters of the
> > call to plugin be void* pointers for input and output, which is then
> > read from (e.g. a filename) and/or filled with output data, e.g. PSNR
> > values? That way, we can have arbitrarily much input and output (or none).
>
> plugins can be passed an pointer at encoder creation time. the pointer
> could point to a plugin-specific configuration structure.
Okay, fine.
> On Sat, 15 Mar 2003 15:36:25 +0100 Edouard Gomez <ed.gomez at free.fr> wrote:
> > Fine :> this removes a bit more of code from xvid_encraw/xvid_decraw
>
> again its only an example, using hardcoded filenames "orig-%05i.pgm"
> and "mpeg-%05i.pgm".
No problem, I was just asking, because Edouard was asking.
gruel
More information about the XviD-devel
mailing list