• Christophe Gisquet's avatar
    huffyuvdec: use unsafe bitstream reader · f6577bd9
    Christophe Gisquet authored
    The reader reads in chunks of 11 bits at most, and at most 3 times. The unsafe
    reader therefore may read 6 chunks instead of 1 in worst case, ie 8 bytes,
    which is within the padding tolerance.
    
    The reader ends up being ~10% faster. Cumulative effect of unsafe reading and
    code block swapping on 3 sequences is for 1 thread, decoding time goes from
    23.3s to 19.0s.
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    f6577bd9
huffyuvdec.c 43.3 KB