[XviD-devel] dev-api-4: plugins api

suxen_drol suxen_drol at hotmail.com
Sun Mar 16 03:13:22 CET 2003


On Sat, 15 Mar 2003 16:34:31 +0100 (CET) Christoph Lampert <chl at math.uni-bonn.de> wrote:

> 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. 

an integer-only api is also my preference.

we perform sse->psnr calculations manually in xvid_encraw, so i will
replace the image.c:sse_to_PSNR(...) with a xvid.h:XVID_SSE2PSNR(...) macro.

-- pete; life is like a box of ammo




More information about the XviD-devel mailing list