lavfi/drawutils: make ff_draw_color() accept a const rgba map

This commit is contained in:
Stefano Sabatini 2012-08-01 23:52:25 +02:00
parent 65520f5933
commit 3bcde3f06c
2 changed files with 2 additions and 2 deletions

View File

@ -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];

View File

@ -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.