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;
|
||||
}
|
||||
|
||||
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;
|
||||
uint8_t rgba_map[4];
|
||||
|
@ -79,7 +79,7 @@ int ff_draw_init(FFDrawContext *draw, enum PixelFormat format, unsigned flags);
|
||||
/**
|
||||
* 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.
|
||||
|
Loading…
Reference in New Issue
Block a user