[vlc-devel] [PATCH 2/2] iomx: Handle more parameter types

Martin Storsjö martin at martin.st
Thu Apr 12 11:09:42 CEST 2012


These aren't used by the vlc omxil code, but might be used by
other omxil clients that can use the vlc iomx wrapper.
---
 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;
     }
-- 
1.7.9




More information about the vlc-devel mailing list