mirror of
https://github.com/axiomatic-systems/Bento4.git
synced 2026-01-19 00:05:12 +08:00
- fixing bugs in core.py:
- AP4_FileByteStream_Create was called with the old prototype -> caused a seg fault
- self.movie was causing a conflict with the movie property -> renamed self.moov
33 lines
631 B
Python
33 lines
631 B
Python
from ctypes import *
|
|
import sys
|
|
|
|
if sys.platform == 'darwin':
|
|
bento4dll = 'libBento4C.dylib'
|
|
else:
|
|
raise "Unsupported Platform"
|
|
|
|
# library
|
|
lb4 = CDLL(bento4dll)
|
|
|
|
# type mapping
|
|
Ap4Result = c_int
|
|
Ap4Flags = c_uint
|
|
Ap4Mask = c_uint
|
|
Ap4Cardinal = c_uint
|
|
Ap4Ordinal = c_uint
|
|
Ap4TimeStamp = c_uint
|
|
Ap4Duration = c_ulong
|
|
Ap4UI32 = c_uint
|
|
Ap4SI32 = c_int
|
|
Ap4UI16 = c_ushort
|
|
Ap4SI16 = c_short
|
|
Ap4UI08 = c_ubyte
|
|
Ap4Byte = c_byte
|
|
Ap4Size = c_ulong
|
|
Ap4UI64 = c_ulonglong
|
|
Ap4SI64 = c_longlong
|
|
Ap4LargeSize = c_ulonglong
|
|
Ap4Offset = c_longlong
|
|
Ap4Position = c_ulonglong
|
|
|