diff options
author | Marton Balint <cus@passwd.hu> | 2023-12-02 22:15:14 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2023-12-13 18:51:32 +0100 |
commit | 5475f665f60e7a297d4e650c76678af3225304b1 (patch) | |
tree | bf98e8562fdefa4c8d252eba2daf9f489331324e /libavutil/imgutils.c | |
parent | 0ae8afffb40ffd001a27926bd869de746a1bf879 (diff) | |
download | ffmpeg-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.c | 6 |
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); } |