1
0
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:
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; 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];

View File

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