diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-05-08 18:49:55 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-05-08 19:24:23 +0000 |
commit | deef4b1ac94472d2c072e3b9f7e0a91980007af0 (patch) | |
tree | baa90b866cd7dd74897dcda8b9e1e04ab5632a82 /libavfilter/drawutils.c | |
parent | 8e2972274e1bbff83538d0622ce109ed1b448170 (diff) | |
download | ffmpeg-deef4b1ac94472d2c072e3b9f7e0a91980007af0.tar.gz |
lavfi/drawutils: add 16 bit rgb and planar rgb to ff_fill_rgba_map()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/drawutils.c')
-rw-r--r-- | libavfilter/drawutils.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c index aebc000f4c..69946f9301 100644 --- a/libavfilter/drawutils.c +++ b/libavfilter/drawutils.c @@ -37,12 +37,22 @@ int ff_fill_rgba_map(uint8_t *rgba_map, enum AVPixelFormat pix_fmt) case AV_PIX_FMT_ARGB: rgba_map[ALPHA] = 0; rgba_map[RED ] = 1; rgba_map[GREEN] = 2; rgba_map[BLUE ] = 3; break; case AV_PIX_FMT_0BGR: case AV_PIX_FMT_ABGR: rgba_map[ALPHA] = 0; rgba_map[BLUE ] = 1; rgba_map[GREEN] = 2; rgba_map[RED ] = 3; break; + case AV_PIX_FMT_RGB48LE: + case AV_PIX_FMT_RGB48BE: + case AV_PIX_FMT_RGBA64BE: + case AV_PIX_FMT_RGBA64LE: case AV_PIX_FMT_RGB0: case AV_PIX_FMT_RGBA: case AV_PIX_FMT_RGB24: rgba_map[RED ] = 0; rgba_map[GREEN] = 1; rgba_map[BLUE ] = 2; rgba_map[ALPHA] = 3; break; + case AV_PIX_FMT_BGR48LE: + case AV_PIX_FMT_BGR48BE: + case AV_PIX_FMT_BGRA64BE: + case AV_PIX_FMT_BGRA64LE: case AV_PIX_FMT_BGRA: case AV_PIX_FMT_BGR0: case AV_PIX_FMT_BGR24: rgba_map[BLUE ] = 0; rgba_map[GREEN] = 1; rgba_map[RED ] = 2; rgba_map[ALPHA] = 3; break; + case AV_PIX_FMT_GBRAP: + case AV_PIX_FMT_GBRP: rgba_map[GREEN] = 0; rgba_map[BLUE ] = 1; rgba_map[RED ] = 2; rgba_map[ALPHA] = 3; break; default: /* unsupported */ return AVERROR(EINVAL); } |