[FFmpeg-devel] FW: [PATCH] 10-bit DNxHD decoding and encoding
Joseph Artsimovich
joseph at mirriad.com
Thu Mar 31 14:26:53 CEST 2011
Michael Niedermayer wrote:
> ive thought about using a av_always_inline function, i would not pass any
> special tables
Do you have something like this in mind?
-----------------------------------------------------------------------------
av_always_inline void ff_faandct_impl(DCTELEM* data, float const* scaletable)
{
...
data[i] = lrintf((scaletable ? scaletable[i] : 1.0f) * something);
...
}
-----------------------------------------------------------------------------
Or maybe this?
-----------------------------------------------------------------------------
av_always_inline float noscale(int i) { return 1; }
av_always_inline float scale4(int i) { return postscale4[i]; }
av_always_inline float scale8(int i) { return postscale8[i]; }
av_always_inline void ff_faandct_impl(DCTELEM* data, float (*scale_func)(int))
{
...
data[i] = lrintf(scale_func(i) * something);
...
}
-----------------------------------------------------------------------------
Joseph Artsimovich
Software Developer
MirriAd Ltd
More information about the ffmpeg-devel
mailing list