[x264-devel] Re: x264_t.dct.block.luma4x4 & residual_ac
Måns Rullgård
mru at inprovide.com
Wed Dec 1 21:34:22 CET 2004
"GC Wen" <gcmoon at mimow.com> writes:
> Hi,
>
> I put x264_t->dct->block->residual_ac and
> x264_t->dct->block->luma4x4 into a UNION.
> and it seems works.
> maybe it can save a little memory?
It would save (16+8) * 16 * sizeof(int) = 1536 bytes, if your ints are
32 bits. If you are that tight on memory you probably have more of a
problem holding the frame data in memory.
I'm not quite sure how these are used, but if only one of them will
ever be in use, making them a union could have the advantage of making
this more clear in the declaration.
--
Måns Rullgård
mru at inprovide.com
--
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html
More information about the x264-devel
mailing list