On Sat, 31 Aug 2013, Diego Elio Pettenò wrote:

This allows hardcoded table to generate them, which saves 2.5KB of
copy-on-write data at runtime as soon as the AAC decoder is
initialized.

It includes a WRITE_ALIGNED_ARRAY so that the generated tables match
the originals 1:1.

Signed-off-by: Diego Elio Pettenò <[email protected]>
---
libavcodec/Makefile               |   4 +-
libavcodec/aacsbr.c               |  12 +---
libavcodec/aacsbr_tablegen.c      |  38 +++++++++++
libavcodec/aacsbr_tablegen.h      | 133 ++++++++++++++++++++++++++++++++++++++
libavcodec/aacsbr_tablegen_decl.h |  32 +++++++++
libavcodec/aacsbrdata.h           |  86 ------------------------
libavcodec/tableprint.h           |  10 +++
7 files changed, 219 insertions(+), 96 deletions(-)
create mode 100644 libavcodec/aacsbr_tablegen.c
create mode 100644 libavcodec/aacsbr_tablegen.h
create mode 100644 libavcodec/aacsbr_tablegen_decl.h

Without being too familiar with the tablegen stuff in general, this looks good to me. If it has been tested both with and without tablegen it should probably be good to go.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to