Skip to content
Snippets Groups Projects
  • Roland Scheidegger's avatar
    14e9ffc1
    h264: use one table instead of several for cabac functions · 14e9ffc1
    Roland Scheidegger authored
    
    The reason is this is easier for PIC code (in particular on darwin...).
    Keep the old names as pointers (static in cabac_functions.h so gcc
    knows these are just immediate offsets) so the c code can nicely stay the same
    (alternatively could use offsets directly in the functions needing the
    tables). This should produce the same code as before with non-pic and better
    code (confirmed) with pic.
    
    The assembly uses the new table but still won't work for PIC case.
    
    Signed-off-by: default avatarRonald S. Bultje <rsbultje@gmail.com>
    14e9ffc1
    History
    h264: use one table instead of several for cabac functions
    Roland Scheidegger authored
    
    The reason is this is easier for PIC code (in particular on darwin...).
    Keep the old names as pointers (static in cabac_functions.h so gcc
    knows these are just immediate offsets) so the c code can nicely stay the same
    (alternatively could use offsets directly in the functions needing the
    tables). This should produce the same code as before with non-pic and better
    code (confirmed) with pic.
    
    The assembly uses the new table but still won't work for PIC case.
    
    Signed-off-by: default avatarRonald S. Bultje <rsbultje@gmail.com>