[FFmpeg-devel] [RFC] Simplify swscale_internal.h:fmt_depth()

Stefano Sabatini stefano.sabatini-lala
Sat Jan 16 19:59:00 CET 2010

Hi, I'm aware this patch introduces a slow-down, an idea would be to
initialize a ff_bits_per_pixel array during the init phase, and then
use a function of the kind:

static inline int fmt_depth(int fmt)
    return ff_bits_per_pixel[fmt];

Would be that acceptable?
In this case can you suggest where to initialize stuff?

FFmpeg = Fantastic Fast Mystic Prodigious Esoteric Gnome
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simplify-fmt-depth.patch
Type: text/x-diff
Size: 1392 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100116/ecadabe5/attachment.patch>

More information about the ffmpeg-devel mailing list