Revision c6dbbc45 libavutil/common.h

View differences:

libavutil/common.h
225 225
    else               return a;
226 226
}
227 227

  
228
/** Computes ceil(log2(x)).
229
 * @param x value used to compute ceil(log2(x))
230
 * @return computed ceiling of log2(x)
231
 */
232
static inline av_const int av_ceil_log2(int x)
233
{
234
    return av_log2((x - 1) << 1);
235
}
236

  
228 237
#define MKTAG(a,b,c,d) (a | (b << 8) | (c << 16) | (d << 24))
229 238
#define MKBETAG(a,b,c,d) (d | (c << 8) | (b << 16) | (a << 24))
230 239

  

Also available in: Unified diff