On Fri, Feb 22, 2013 at 01:12:54PM +0100, Nicolas BERTRAND wrote:
> Le 19/02/2013 09:29, Kostya Shishkov a écrit :
> >>+/* misc tools */
> >>>+static inline int ff_j2k_ceildivpow2(int a, int b)
> >>>+{
> >>>+ return (a + (1 << b) - 1)>> b;
> >>>+}
> >I think we have some function for rounding shift right operation already.
> >
> Do you know where? or its name?
Of course not, but git grep helps.
Please look at RSHIFT and ROUNDED_DIV in libavutil/common.h to see if they are
fit for your uses.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel