[FFmpeg-soc] [PATCH 1/2] Move bap to AC3EncodeContext.

Justin Ruggles justin.ruggles at gmail.com
Fri Dec 3 21:45:21 CET 2010


Allocating with av_malloc() reduces memory usage and aligns the start of each channel bap array for future SIMD. Moving the 2 bap arrays to AC3EncodeContext allows FFSWAP() instead of memcpy() and speeds up compute_bit_allocation() by about 1%.
---
 libavcodec/ac3enc.c |   75 ++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 54 insertions(+), 21 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Move-bap-to-AC3EncodeContext.patch
Type: text/x-patch
Size: 10045 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20101203/377a5c8d/attachment.bin>


More information about the FFmpeg-soc mailing list