Log in

View Full Version : Dumping residue into a YUV file


ramprasad85
11th May 2009, 14:33
Hello
I am trying to dump the residue of each macroblock and form it into a YUV file.
I have been browsing the source code where I can grab the residue.
Is there one function where I can access the details of the macroblock and the residue after subtracting from the best match.
:thanks:

ramprasad85
25th May 2009, 10:56
I plan to dump the residue as YUV by rescaling the residue (-255 to +255) to (0 to 255) by adding 255 and dividing by 2. The purpose behind this exercise is to visually see how much data is remaining after prediction, and compare the various serach algorithms. Also if I can subtract the residues before and after quantization, It will be possible to visually see the actuall loss introduced by the encoder.

drmpeg
25th May 2009, 15:36
Here's what it looks like:

The good:

http://www.w6rz.net/gframer.png

The bad:

http://www.w6rz.net/bframer.png

And the ugly:

http://www.w6rz.net/pframer.png

Originally posted at:

http://forum.blu-ray.com/showthread.php?p=603980#post603980

Ron

Guest
25th May 2009, 15:39
All three images look all black to me. Am I missing something?

drmpeg
25th May 2009, 15:43
All three images look all black to me. Am I missing something?
They are PNG images. Perhaps your browser?

Ron

Dark Shikari
25th May 2009, 16:14
All three images look all black to me. Am I missing something?Works fine here.

Guest
25th May 2009, 16:29
Yup, it works if I save them to a file and view them, so it must be the browser.