From: <fe...@ke...> - 2009-11-14 14:13:58
|
Module: gst-openmax Branch: omap Commit: 03d899986f9577800a3c8d6d7752fb3df1152907 URL: http://cgit.freedesktop.org/gstreamer/gst-openmax/commit/?id=03d899986f9577800a3c8d6d7752fb3df1152907 Author: Felipe Contreras <fel...@no...> Date: Wed Mar 25 18:06:37 2009 +0200 Update I420 to PackedPlanar Which is what we really meant by 'I420'. Signed-off-by: Felipe Contreras <fel...@no...> --- omx/gstomx_base_videodec.c | 2 +- omx/gstomx_base_videoenc.c | 2 +- omx/gstomx_jpegenc.c | 4 ++-- omx/gstomx_videosink.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/omx/gstomx_base_videodec.c b/omx/gstomx_base_videodec.c index e085100..95cf701 100644 --- a/omx/gstomx_base_videodec.c +++ b/omx/gstomx_base_videodec.c @@ -124,7 +124,7 @@ settings_changed_cb (GOmxCore *core) height = param.format.video.nFrameHeight; switch (param.format.video.eColorFormat) { - case OMX_COLOR_FormatYUV420Planar: + case OMX_COLOR_FormatYUV420PackedPlanar: format = GST_MAKE_FOURCC ('I', '4', '2', '0'); break; case OMX_COLOR_FormatYCbYCr: format = GST_MAKE_FOURCC ('Y', 'U', 'Y', '2'); break; diff --git a/omx/gstomx_base_videoenc.c b/omx/gstomx_base_videoenc.c index 065cafe..6b94eba 100644 --- a/omx/gstomx_base_videoenc.c +++ b/omx/gstomx_base_videoenc.c @@ -202,7 +202,7 @@ sink_setcaps (GstPad *pad, switch (fourcc) { case GST_MAKE_FOURCC ('I', '4', '2', '0'): - color_format = OMX_COLOR_FormatYUV420Planar; + color_format = OMX_COLOR_FormatYUV420PackedPlanar; break; case GST_MAKE_FOURCC ('Y', 'U', 'Y', '2'): color_format = OMX_COLOR_FormatYCbYCr; diff --git a/omx/gstomx_jpegenc.c b/omx/gstomx_jpegenc.c index b6983ec..e78b5b1 100644 --- a/omx/gstomx_jpegenc.c +++ b/omx/gstomx_jpegenc.c @@ -242,7 +242,7 @@ sink_setcaps (GstPad *pad, GstOmxBaseFilter *omx_base; GstOmxJpegEnc *self; GOmxCore *gomx; - OMX_COLOR_FORMATTYPE color_format = OMX_COLOR_FormatYUV420Planar; + OMX_COLOR_FORMATTYPE color_format = OMX_COLOR_FormatYUV420PackedPlanar; gint width = 0; gint height = 0; @@ -276,7 +276,7 @@ sink_setcaps (GstPad *pad, switch (fourcc) { case GST_MAKE_FOURCC ('I', '4', '2', '0'): - color_format = OMX_COLOR_FormatYUV420Planar; + color_format = OMX_COLOR_FormatYUV420PackedPlanar; break; case GST_MAKE_FOURCC ('U', 'Y', 'V', 'Y'): color_format = OMX_COLOR_FormatCbYCrY; diff --git a/omx/gstomx_videosink.c b/omx/gstomx_videosink.c index 4422d6b..923b5ed 100644 --- a/omx/gstomx_videosink.c +++ b/omx/gstomx_videosink.c @@ -146,7 +146,7 @@ setcaps (GstBaseSink *gst_sink, switch (fourcc) { case GST_MAKE_FOURCC ('I', '4', '2', '0'): - color_format = OMX_COLOR_FormatYUV420Planar; + color_format = OMX_COLOR_FormatYUV420PackedPlanar; break; case GST_MAKE_FOURCC ('Y', 'U', 'Y', '2'): color_format = OMX_COLOR_FormatYCbYCr; @@ -171,7 +171,7 @@ setcaps (GstBaseSink *gst_sink, switch (color_format) { - case OMX_COLOR_FormatYUV420Planar: + case OMX_COLOR_FormatYUV420PackedPlanar: param.nBufferSize = (width * height * 1.5); break; case OMX_COLOR_FormatYCbYCr: |