View Full Version : CPU flags
DaveEL
23rd March 2002, 08:18
Im trying to write a 2-pass encoding gui and so im filling a CONFIG struct with the appropirate values but im a bit stuck with the cpu flags in xvid.h
if i enable all except for XVID_CPU_FORCE will it use the available features of my processor or will enable them all and so crash when i dont have all the features ive enabled?
DaveEL
If XVID_CPU_FORCE is cleared, then the automatic flags are used. That's regardless of the other things you set in the cpu variable.
The CONFIG struct just changed again today, btw :)
Might be easier to just alter the registry values, since their names will stay constant.
-h
DaveEL
23rd March 2002, 08:26
Thanx i assumed that was the way it worked.
Cant use the reg keys as im just writing vdub scripts for doing the actual encoding so i need to feed it a full config. Oh well will just have to keep updating it to keep current with xvid:)
Dave
Heh cool, I'd say it'll be settled down in about a month. Anything added after then will either be a big feature or minor filter.
-h
DaveEL
23rd March 2002, 08:40
One other thing if i do a first pass does it reconfigure other parameters which i will need to match or can i just set things like desired_size to any value as its not used in the first pass?
(and if so a pointer to where in the code this is done so i can work out which values i need to set to what would be useful)
DaveEL
Yeah there are many variables which aren't used in 1st pass (all it really uses is the stuff on the "Global" tab, and credits frames if it's in credits quant mode. Oh and the minimum I-frame interval / 1st pass stats file.
There isn't anywhere specific in the code, you'd have to check a fair portion of codec.c (ouch). Actually you could go by which controls are enabled/disabled for each mode - those which are enabled will be most of those which end up being used. It is a bit messy however, just by the nature of shoving all this stuff into a VfW codec, where it doesn't really belong.
-h
DaveEL
23rd March 2002, 08:56
So if i just ignore all that stuff it will work if they are not used rather then first pass giving them specific values.
DaveEL
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.