]> git.sesse.net Git - vlc/blobdiff - bindings/python-ctypes/header.py
python-ctypes: add MediaES structure definition
[vlc] / bindings / python-ctypes / header.py
index 447ce8b5734133aa758c824d81672a4eaaf1ef17..12e8e4d46b7c061fa9ddf4988448bb95b4537042 100755 (executable)
@@ -171,6 +171,21 @@ class MediaStats(ctypes.Structure):
     def __str__(self):
         return "MediaStats\n%s" % "\n".join( "%s:\t%s" % (n, getattr(self, n)) for n in self._fields_ )
 
+class MediaES(ctypes.Structure):
+    _fields_= [
+        ('codec'   , ctypes.c_uint32),
+        ('type'    , EsType),
+        ('profile' , ctypes.c_int),
+        ('level'   , ctypes.c_int),
+        ('channels',  ctypes.c_uint),
+        ('rate'    , ctypes.c_uint),
+        ('height'  , ctypes.c_uint),
+        ('width'   , ctypes.c_uint),
+        ]
+
+    def __str__(self):
+        return "MediaES \n%s" % "\n".join( "%s:\t%s" % (n, getattr(self, n)) for n in self._fields_ )
+
 class PlaylistItem(ctypes.Structure):
     _fields_= [
                 ('id', ctypes.c_int),