[FFmpeg-devel] [PATCH] lavu/pixfmt: move AVPALETTE_SIZE and _COUNT to pixfmt.h

Stefano Sabatini stefasab at gmail.com
Wed May 23 01:48:05 CEST 2012


On date Tuesday 2012-05-22 00:27:05 +0200, Stefano Sabatini encoded:
> Move AVPALETTE_SIZE and AVPALETTE_COUNT definition from
> libavcodec/avcodec.h to libavutil/pixfmt.h.
> 
> The definition is more useful in libavutil, where it can be shared for
> example by libavfilter and libswscale.
> ---
>  libavcodec/avcodec.h |    3 ---
>  libavutil/pixfmt.h   |    3 +++
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index e4d494b..467dc8d 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -3130,9 +3130,6 @@ typedef struct AVPicture {
>   * @}
>   */
>  
> -#define AVPALETTE_SIZE 1024
> -#define AVPALETTE_COUNT 256
> -
>  enum AVSubtitleType {
>      SUBTITLE_NONE,
>  
> diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
> index 1e81a2a..820cd3f 100644
> --- a/libavutil/pixfmt.h
> +++ b/libavutil/pixfmt.h
> @@ -29,6 +29,9 @@
>  
>  #include "libavutil/avconfig.h"
>  
> +#define AVPALETTE_SIZE 1024
> +#define AVPALETTE_COUNT 256
> +
>  /**
>   * Pixel format.
>   *

Ping (blocking another patch).
-- 
FFmpeg = Funny Fanciful Muttering Portable Entertaining Guru


More information about the ffmpeg-devel mailing list