aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Flett <dflett@bigpond.net.au>2013-07-11 18:16:07 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-11 18:16:07 +0200
commit43d36599fe3330913c6be9da5519dee048263dc9 (patch)
tree8f687538461ffd4d958a76a8e0cb533f196ef49c
parent0ef40446a86487ee66f4356f6ab24462095272da (diff)
downloadffmpeg-43d36599fe3330913c6be9da5519dee048263dc9.tar.gz
lavd/fbdev.c: Support RGB565 input colour space.
Tested on a Raspberry Pi. Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
-rw-r--r--libavdevice/fbdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c
index 02efdf9f24..99e779d4f9 100644
--- a/libavdevice/fbdev.c
+++ b/libavdevice/fbdev.c
@@ -57,6 +57,7 @@ static const 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, 16, AV_PIX_FMT_RGB565 },
};
static enum AVPixelFormat get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *varinfo)