mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/drawutils: make ff_draw_color() accept a const rgba map
This commit is contained in:
parent
65520f5933
commit
3bcde3f06c
@ -173,7 +173,7 @@ int ff_draw_init(FFDrawContext *draw, enum PixelFormat format, unsigned flags)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, uint8_t rgba[4])
|
void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4])
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
uint8_t rgba_map[4];
|
uint8_t rgba_map[4];
|
||||||
|
@ -79,7 +79,7 @@ int ff_draw_init(FFDrawContext *draw, enum PixelFormat format, unsigned flags);
|
|||||||
/**
|
/**
|
||||||
* Prepare a color.
|
* Prepare a color.
|
||||||
*/
|
*/
|
||||||
void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, uint8_t rgba[4]);
|
void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copy a rectangle from an image to another.
|
* Copy a rectangle from an image to another.
|
||||||
|
Loading…
Reference in New Issue
Block a user