[vlc-commits] iomx: Handle more parameter types

Martin Storsjö git at videolan.org
Fri Apr 13 16:57:51 CEST 2012


vlc | branch: master | Martin Storsjö <martin at martin.st> | Thu Apr 12 12:09:42 2012 +0300| [9fb0aecced1309c5d6108080f7eb741cbb9bfa48] | committer: Jean-Baptiste Kempf

iomx: Handle more parameter types

These aren't used by the vlc omxil code, but might be used by
other omxil clients that can use the vlc iomx wrapper.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9fb0aecced1309c5d6108080f7eb741cbb9bfa48
---

 modules/codec/omxil/iomx.cpp |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/modules/codec/omxil/iomx.cpp b/modules/codec/omxil/iomx.cpp
index 9f42417..a45a781 100644
--- a/modules/codec/omxil/iomx.cpp
+++ b/modules/codec/omxil/iomx.cpp
@@ -163,6 +163,16 @@ static int get_param_size(OMX_INDEXTYPE param_index)
         return sizeof(OMX_AUDIO_PARAM_WMATYPE);
     case OMX_IndexParamAudioRa:
         return sizeof(OMX_AUDIO_PARAM_RATYPE);
+    case OMX_IndexParamVideoPortFormat:
+        return sizeof(OMX_VIDEO_PARAM_PORTFORMATTYPE);
+    case OMX_IndexParamVideoBitrate:
+        return sizeof(OMX_VIDEO_PARAM_BITRATETYPE);
+    case OMX_IndexParamVideoH263:
+        return sizeof(OMX_VIDEO_PARAM_H263TYPE);
+    case OMX_IndexParamVideoMpeg4:
+        return sizeof(OMX_VIDEO_PARAM_MPEG4TYPE);
+    case OMX_IndexParamVideoAvc:
+        return sizeof(OMX_VIDEO_PARAM_AVCTYPE);
     default:
         return 0;
     }



More information about the vlc-commits mailing list