Log in

View Full Version : zones for developers


Doom9
2nd June 2005, 12:54
I tried the irc channel, the official xvid board but no reply so far so I'll try here again. I'm wondering about the range for zone.increment if zone.base is 100. More details can be found here:

http://www.xvid.org/modules.php?op=modload&name=phpBB2&file=viewtopic&t=2487

Leak
2nd June 2005, 18:07
I tried the irc channel, the official xvid board but no reply so far so I'll try here again. I'm wondering about the range for zone.increment if zone.base is 100. More details can be found here:

http://www.xvid.org/modules.php?op=modload&name=phpBB2&file=viewtopic&t=2487

Can't help you with your problem, but I'd try the xvid-devel mailing list, as it seems to get read by most of the devs...

np: Luke Vibert - Flyover (Lover's Acid)

celtic_druid
3rd June 2005, 04:14
Well in the VfW for quant you have:
create.zones[i].increment = tmpCfg.zones[i].quant;
else
create.zones[i].increment = tmpCfg.zones[i].weight;

Doom9
3rd June 2005, 05:40
you didn't read ahead far enough.. eventually the CONFIG* is converted and those separations go away ;) xvid_enc_zone_t is what you give the encoder. The CONFIG* is used during encoding to override certain decisions on a frame level.. but weight and quant are in the xvid_enc_zone_t with 1000% certainty. I even have Q override working using exactly those measures.. and if you look at the encraw sample....

sysKin
4th June 2005, 09:04
I tried the irc channel, the official xvid board but no reply so far so I'll try here again. I'm wondering about the range for zone.increment if zone.base is 100.
The actual weight is increment/base. So if base = 100, increment is in percent - and so on.

The range doesn't matter as long as you stay away of INT_MAX or something like that ;)

For quant zones, the above still holds, so to specify quant 2.25 you can use base = 4 and increment = 9.

Radek

PS. If you're on irc, try poking me, I might be around but not looking. xvid.org forums is dead and useless.

Doom9
4th June 2005, 11:47
The actual weight is increment/base. So if base = 100, increment is in percent - and so on.In other words, I can use values ranging from 1 to 200. Which is just the range my mencoder xvid zones patch allows :) So much for it not working.

Some people have reported though that the effect is rather small (especially when compared to Q zones), but I guess it takes a certain number of frames to really properly kick in.