View Full Version : Matrices - TXT to XVID
Rockas
18th July 2005, 14:51
Ok... I know I'm stupid :)
But I really need some help on this.
Can anyone help me to write a XVID matrix from a TXT containing a Matrix?
I need this to enable Matrices on QuEnc encode routine on my Rebuilder's Matrix Editor... I took a look to XVID source code just to see If I could make it on the right format but I don't understand anything about C ou C++... I use VB6, any clues?
Thanks in advance.
unskinnyboy
18th July 2005, 15:05
Custom Quantization Matrix Editor 1.0 (http://forum.doom9.org/showthread.php?threadid=73666&perpage=20&pagenumber=1)
Rockas
18th July 2005, 15:15
@unskinnyboy
Thanks for your reply but... I already know that application :)
What I need is someone to help me with the code that will make the convertion... not one program that makes it :)
Thanks, anyway :)
unskinnyboy
18th July 2005, 15:36
You have a txt file containing a matrix and you want a CQM/XCM out of it, right? If so, Custom Quantization Matrix Editor can do the following:
Have your txt file as a csv (you can have the separators as white spaces), then use the Import functionality (File->Import->Text(CSV)->select the .csv->open). Now you can save this as an .xcm. No CLI for this though (in case you wanted this to be part of a program chain). If you want this same functionality in your app, guess you can buzz LigH to ask for the source code for this part atleast (currently this is not GPL'ed I think).
Am I still off the mark? :)
MeteorRain
21st July 2005, 05:38
read the matrix is really a piece of cake
have you found that the matrix files are all 128bytes? yes! 8 * 8 * 2
so just read byte by byte and sort in this way:
intra:
01 02 03 04 05 06 07 08
09 10 11 ...
17 18 19 ...
....
57 58 59 60 61 62 63 64
inter
65 66 67 68 69 70 71 72
....
120 121 122 123 124 125 126 127 128
(offset start at 1)
so, it's easy.
try it ;)
Rockas
21st July 2005, 13:34
Sorry... I forgot to post that I had the solution already (thanks to jdobbs, of course).
Anyway... Thank you very much.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.