OK, now we have luma_intra in DSPutil, so this should be easier.
Michael: how should we rename the x264 functions? My thought was just
to s/x264/ff_h264/ or something of the sort, which would modify the
code from x264's version but make it trivial to modify the code before
committing any updates from x264. It wouldn't need ugly #defines
either.
Dark Shikari