[x264-devel] Types of blocks inside the macroblocks

Jason Garrett-Glaser darkshikari at gmail.com
Sat Jan 17 00:29:54 CET 2009


On Fri, Jan 16, 2009 at 9:47 AM, Mitko Veta <mitko.veta at gmail.com> wrote:
> Hi,
>
> I am modifying the code of x264 to dump additional parameters while
> encoding. Then I intend to use those parameters to test various
> postprocessing algorithms (for deblocking and deringing) and compare
> them with the in-loop filter, for research purposes.
>
> I managed to write the QP parameter for each macroblock to a stat
> file, while encoding. What I also need is the type and number of
> blocks inside the macroblock (number of 4x4 and 8x8 blocks and their
> location). I can't figure out where is this information stored for
> each macroblock. Does anyone know how to achieve this?
>
> Thanks.

h->mb.i_type
h->mb.i_partition
h->mb.i_subpartition[4]

Only the first one is stored after encoding a macroblock--the latter
two are not saved.  This may change in the future.

Dark Shikari


More information about the x264-devel mailing list