aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Flett <dflett@bigpond.net.au>2013-07-11 18:16:07 +0200
committerMartin Storsjö <martin@martin.st>2015-07-11 10:15:59 +0300
commit87f98a2b9d4c7218ad82bb45347a53b65e5244f3 (patch)
treed1af83e1a660828eaab81fbbb686c471f9b31e24
parent1410eeb6ea6bc5784e40032430afcdf54a79aedb (diff)
downloadffmpeg-87f98a2b9d4c7218ad82bb45347a53b65e5244f3.tar.gz
fbdev: Support the RGB565 colour space.
Tested on a Raspberry Pi. Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavdevice/fbdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c
index 27e2ed30db..bdbc83f252 100644
--- a/libavdevice/fbdev.c
+++ b/libavdevice/fbdev.c
@@ -58,6 +58,7 @@ static struct rgb_pixfmt_map_entry rgb_pixfmt_map[] = {
{ 32, 3, 2, 8, 0, AV_PIX_FMT_ABGR },
{ 24, 0, 8, 16, 0, AV_PIX_FMT_RGB24 },
{ 24, 16, 8, 0, 0, AV_PIX_FMT_BGR24 },
+ { 16, 11, 5, 0, 0, AV_PIX_FMT_RGB565 },
};
static enum AVPixelFormat get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *varinfo)