Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
648b92d1
Commit
648b92d1
authored
Jan 25, 2010
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python-ctypes: add MediaES structure definition
parent
8a9a4cb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
bindings/python-ctypes/generate.py
bindings/python-ctypes/generate.py
+1
-0
bindings/python-ctypes/header.py
bindings/python-ctypes/header.py
+15
-0
No files found.
bindings/python-ctypes/generate.py
View file @
648b92d1
...
...
@@ -341,6 +341,7 @@ class PythonGenerator(object):
'libvlc_track_description_t*'
:
'TrackDescription'
,
'libvlc_audio_output_t*'
:
'AudioOutput'
,
'libvlc_media_stats_t*'
:
'ctypes.POINTER(MediaStats)'
,
'libvlc_media_es_t**'
:
'ctypes.POINTER(ctypes.POINTER(MediaES))'
,
'mediacontrol_Instance*'
:
'MediaControl'
,
'mediacontrol_Exception*'
:
'MediaControlException'
,
...
...
bindings/python-ctypes/header.py
View file @
648b92d1
...
...
@@ -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
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment