summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@sharp.fm>2016-12-11 19:52:37 +0000
committerSebastian Dröge <sebastian@centricular.com>2016-12-13 11:18:43 +0200
commit8b01b06af6c181ff21f5c60b5adbb232feeeea2c (patch)
treed917a7e21f88ecc5b3ef56d5f7a01108bbe1f594
parent78295462d3b6edcdd3eee2037d0097e6fec6933e (diff)
downloadgst-omx-8b01b06af6c181ff21f5c60b5adbb232feeeea2c.tar.gz
Add support for OMX_COLOR_FormatYUV420PackedSemiPlanar and OMX_COLOR_Format24bitBGR888
https://bugzilla.gnome.org/show_bug.cgi?id=775959
-rw-r--r--omx/gstomxvideo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/omx/gstomxvideo.c b/omx/gstomxvideo.c
index 314c488..8a42c71 100644
--- a/omx/gstomxvideo.c
+++ b/omx/gstomxvideo.c
@@ -45,6 +45,7 @@ gst_omx_video_get_format_from_omx (OMX_COLOR_FORMATTYPE omx_colorformat)
format = GST_VIDEO_FORMAT_I420;
break;
case OMX_COLOR_FormatYUV420SemiPlanar:
+ case OMX_COLOR_FormatYUV420PackedSemiPlanar:
format = GST_VIDEO_FORMAT_NV12;
break;
case OMX_COLOR_FormatYUV422SemiPlanar:
@@ -75,6 +76,9 @@ gst_omx_video_get_format_from_omx (OMX_COLOR_FORMATTYPE omx_colorformat)
case OMX_COLOR_Format16bitBGR565:
format = GST_VIDEO_FORMAT_BGR16;
break;
+ case OMX_COLOR_Format24bitBGR888:
+ format = GST_VIDEO_FORMAT_BGR;
+ break;
default:
format = GST_VIDEO_FORMAT_UNKNOWN;
break;