Hi, 2011/5/26 Måns Rullgård <[email protected]>: > "Ronald S. Bultje" <[email protected]> writes: >> On Thu, May 26, 2011 at 9:22 AM, Kostya <[email protected]> wrote: >>> On Thu, May 26, 2011 at 09:18:29AM -0400, Ronald S. Bultje wrote: >>>> --- >>>> libswscale/swscale_template.c | 20 +++----------------- >>>> 1 files changed, 3 insertions(+), 17 deletions(-) >>> >>> looks ok (though LUT may be even better) >> >> The code currently uses av_clip_uint8() everywhere. I'll look into >> converting it to cm[]. > > Incidentally, av_clip_uint8 is much faster than a table on ARM...
How about av_clip_uint8_fast_init(), which on arm is empty and on x86 is const uint8_t *cm = bla + tbl_off;, and av_clip_uint8_fast() which on arm is av_clip_uint8() and on x86 is cm[]? Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
