• Claudio Freire's avatar
    AAC encoder: refactor to resynchronize MIPS port · 8df9bf8e
    Claudio Freire authored
    This patch refactors the AAC coders to reuse code
    between the MIPS port and the regular, portable C code.
    There were two main functions that had to use
    hand-optimized versions of quantization code:
     - search_for_quantizers_twoloop
     - codebook_trellis_rate
    
    Those two were split into their own template header
    files so they can be inlined inside both the MIPS port
    and the generic code. In each context, they'll link
    to their specialized implementations, and thus be
    optimized by the compiler.
    
    This approach I believe is better than maintaining
    several copies of each function. As past experience has
    proven, having to keep those in sync was error prone.
    In this way, they will remain in sync by default.
    
    Also, an implementation of the dequantized output
    argument for the optimized quantize_and_encode
    functions is included in the patch. While the current
    implementation of search_for_pred still isn't using
    it, future iterations of main prediction probably will.
    It should not imply any measurable performance hit while
    not being used.
    8df9bf8e
Name
Last commit
Last update
..
api Loading commit data...
checkasm Loading commit data...
fate Loading commit data...
filtergraphs Loading commit data...
ref Loading commit data...
Makefile Loading commit data...
audiogen.c Loading commit data...
base64.c Loading commit data...
copycooker.sh Loading commit data...
fate-run.sh Loading commit data...
fate-valgrind.supp Loading commit data...
fate.sh Loading commit data...
ffserver-regression.sh Loading commit data...
ffserver.conf Loading commit data...
ffserver.regression.ref Loading commit data...
lavf-regression.sh Loading commit data...
md5.sh Loading commit data...
reference.pnm Loading commit data...
regression-funcs.sh Loading commit data...
rotozoom.c Loading commit data...
test.ffmeta Loading commit data...
tiny_psnr.c Loading commit data...
tiny_ssim.c Loading commit data...
utils.c Loading commit data...
videogen.c Loading commit data...