[FFmpeg-devel] [PATCH] Make fill_image_linesize and fill_image_data_ptr public
Stefano Sabatini
stefano.sabatini-lala
Mon Jul 26 00:40:25 CEST 2010
On date Sunday 2010-07-25 15:27:06 -0700, S.N. Hemanth Meenakshisundaram encoded:
> Makes ff_fill_image* public but these are still in
> libavcodec/imgconvert.h, can be moved to imgutils.c once libavcore and
> imgutils.c are created. Making public from lavc for now since lavfi will
> need to call these.
>
> ---
> libavcodec/imgconvert.c | 4 ++--
> libavcodec/imgconvert.h | 5 +++++
> 2 files changed, 7 insertions(+), 2 deletions(-)
>
>
>
> diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
> index f99f74d..559b70a 100644
> --- a/libavcodec/imgconvert.c
> +++ b/libavcodec/imgconvert.c
> @@ -490,7 +490,7 @@ int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt){
> return 0;
> }
>
> -static int ff_fill_image_linesize(int linesize[4], enum PixelFormat pix_fmt, int width)
> +int ff_fill_image_linesize(int linesize[4], enum PixelFormat pix_fmt, int width)
> {
> int i;
> const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
> @@ -525,7 +525,7 @@ static int ff_fill_image_linesize(int linesize[4], enum PixelFormat pix_fmt, int
> return 0;
> }
>
> -static int ff_fill_image_data_ptr(uint8_t *data[4], uint8_t *ptr, enum PixelFormat pix_fmt,
> +int ff_fill_image_data_ptr(uint8_t *data[4], uint8_t *ptr, enum PixelFormat pix_fmt,
> int height, const int linesize[4])
> {
> int size, h2, size2;
> diff --git a/libavcodec/imgconvert.h b/libavcodec/imgconvert.h
> index 48e2f12..22ee6f3 100644
> --- a/libavcodec/imgconvert.h
> +++ b/libavcodec/imgconvert.h
> @@ -27,8 +27,13 @@
> #include <stdint.h>
> #include "avcodec.h"
>
> +int ff_fill_image_linesize(int linesize[4], enum PixelFormat pix_fmt, int width);
> +
> int ff_fill_linesize(AVPicture *picture, enum PixelFormat pix_fmt, int width);
>
> +int ff_fill_image_data_ptr(uint8_t *data[4], uint8_t *ptr, enum PixelFormat pix_fmt,
> + int height, const int linesize[4]);
> +
> int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, int height);
Missing documentation, fine otherwise.
Regards.
--
FFmpeg = Freak and Fiendish Mysterious Plastic Ecumenical Game
More information about the ffmpeg-devel
mailing list