[FFmpeg-cvslog] r15619 - trunk/libavutil/common.h
Stefano Sabatini
stefano.sabatini-lala
Wed Oct 15 09:59:14 CEST 2008
On date Wednesday 2008-10-15 09:24:55 +0200, benoit wrote:
> Author: benoit
> Date: Wed Oct 15 09:24:54 2008
> New Revision: 15619
>
> Log:
> Add a macro to get the number of element in a table.
>
>
> Modified:
> trunk/libavutil/common.h
>
> Modified: trunk/libavutil/common.h
> ==============================================================================
> --- trunk/libavutil/common.h (original)
> +++ trunk/libavutil/common.h Wed Oct 15 09:24:54 2008
> @@ -116,6 +116,7 @@
> #define FFMIN3(a,b,c) FFMIN(FFMIN(a,b),c)
>
> #define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
> +#define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0]))
>
> /* misc math functions */
> extern const uint8_t ff_log2_tab[256];
Minor bump missing.
Regards.
More information about the ffmpeg-cvslog
mailing list