aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/imgutils.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2023-12-02 22:15:14 +0100
committerMarton Balint <cus@passwd.hu>2023-12-13 18:51:32 +0100
commit5475f665f60e7a297d4e650c76678af3225304b1 (patch)
treebf98e8562fdefa4c8d252eba2daf9f489331324e /libavutil/imgutils.c
parent0ae8afffb40ffd001a27926bd869de746a1bf879 (diff)
downloadffmpeg-5475f665f60e7a297d4e650c76678af3225304b1.tar.gz
avutil/imgutils: add new function av_image_fill_color()
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavutil/imgutils.c')
-rw-r--r--libavutil/imgutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c
index 278e30ee0f..aae40ba59a 100644
--- a/libavutil/imgutils.c
+++ b/libavutil/imgutils.c
@@ -579,9 +579,9 @@ static void memset_bytes(uint8_t *dst, size_t dst_size, uint8_t *clear,
// if it's a subsampled packed format).
#define MAX_BLOCK_SIZE 32
-static int image_fill_color(uint8_t * const dst_data[4], const ptrdiff_t dst_linesize[4],
+int av_image_fill_color(uint8_t * const dst_data[4], const ptrdiff_t dst_linesize[4],
enum AVPixelFormat pix_fmt, const uint32_t color[4],
- int width, int height)
+ int width, int height, int flags)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
int nb_planes = av_pix_fmt_count_planes(pix_fmt);
@@ -713,5 +713,5 @@ int av_image_fill_black(uint8_t * const dst_data[4], const ptrdiff_t dst_linesiz
colors[c] = color;
}
- return image_fill_color(dst_data, dst_linesize, pix_fmt, colors, width, height);
+ return av_image_fill_color(dst_data, dst_linesize, pix_fmt, colors, width, height, 0);
}