Wykres commitów

48 Commity (master)

Autor SHA1 Wiadomość Data
Tony Ibbs 753e21ecc3 Attempt to make the Python binding work again... 2013-04-05 10:32:35 +01:00
tibs 5a094d63bd Python wrapper: some more declarations (not used yet)
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40128
2009-02-23 19:45:23 +00:00
tibs fa1719dfb7 Python wrapping: more giving up on redirected printing.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40126
2009-02-22 19:41:11 +00:00
tibs b705101f5e Python wrapping: Give up on redirecting C stdout so that doctests can see it,
at least for the nonce. More thinking required, more study.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40125
2009-02-22 19:40:13 +00:00
tibs d3442186fd Python wrapping: forgot to add cwrapper.pxd (a bad name, and maybe not to stay)
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40123
2009-02-20 15:53:03 +00:00
tibs bc96299099 Python wrapping: For reasons explained in the top of tstools.pyx,
revert to the monolithic Pyrex file, although (for the moment at
least) still with two .pxd files to abstract some wrapping of
definitions and functions.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40122
2009-02-20 15:51:16 +00:00
tibs cf83dcabe0 Printing and doctests: and yet it still doesn't do what I want.
(Learning experience)

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40120
2009-02-18 13:35:31 +00:00
tibs be29f14a88 Python wrapping: add a comment about the problems with declaring va_list
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40119
2009-02-17 12:19:02 +00:00
tibs 6d6349eea4 Since none of the printing calls care about a return value,
make the new printing mechanism simpler, by having functions
with void returns.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40118
2009-02-17 11:45:14 +00:00
tibs 87e2ce8ca6 Python wrapping: A first attempt at using the new printing interface.
Not that I'm particularly happy with it.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40117
2009-02-16 23:13:00 +00:00
tibs 84a69a90d4 Python wrapping: remove the "build" directory when cleaning,
and the ".dep" files when distcleaning.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40115
2009-02-16 11:03:23 +00:00
tibs 6dae7d9049 Experimental: this make the TS PCR read-ahead buffer per-file (well, strictly,
per-tsreader), rather than static as it was before. This is a tentative commit,
subject to further testing, although the Python code's doctests appear to
indicate that it is probably working.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40114
2009-02-14 17:31:50 +00:00
tibs b03661d228 Python wrapping: tstools.pyx -> ts.pyx
--HG--
rename : python/tstools/tstools.pyx => python/tstools/ts.pyx
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40113
2009-02-13 20:58:17 +00:00
tibs 157cd347a2 Python wrapping: split the ES functionality out into a separate pyx file
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40112
2009-02-13 20:55:52 +00:00
tibs 47d7860fbe Python wrapping: move some of the Pyrex definitions from tstools.pyx to
common.pxd, ready for when we have more than one .pyx file. Fiddle with
the rest.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40110
2009-02-13 20:33:12 +00:00
tibs 685b3b14bd Python wrapping: make "tstools" into a package (initially with tstools.pyx
in it, but eventually to allow for multiple files).

--HG--
rename : python/tstools.pyx => python/tstools/tstools.pyx
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40109
2009-02-12 23:19:20 +00:00
tibs 58624e68fa Python wrapping: First pass at BufferedTSFile seems to do what is expected.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40108
2009-01-16 21:38:47 +00:00
tibs ec947858fb Python wrapping: Start implementing BufferedTSFile.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40107
2009-01-16 18:00:42 +00:00
tibs 43fdbd095d Python wrapping: Thanks to a hint from the Pyrex mailing list, remove the
compiler warnings for the "const void*" argument to PyObject_AsReadBuffer.
Unfortunately, it doesn't look like I can do anything about the "internal
linenumber variable might be used uninitialised" which the building of the
(generated) tstools.c gives.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40106
2009-01-01 16:21:36 +00:00
tibs 5da37c0537 Python wrapping: This version of PAT/PMT support is close enough to stop for now.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40105
2008-12-07 18:31:03 +00:00
tibs 3d098ad1a9 Python wrapping: PMT code a *little* bit tidier
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40104
2008-12-07 18:01:31 +00:00
tibs 8f1744419d Python wrapping: first (very ugly) attempt to accumulate PMTs automatically.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40103
2008-12-07 16:07:50 +00:00
tibs 333b312d6d Python wrapper: Tidy up PMT and ProgramStream a bit, add a test case for
*creating* a PMT.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40102
2008-11-27 23:32:19 +00:00
tibs 1d07e138fc Python wrapping: first stab at reading PMTs -- find the next PMT.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40101
2008-11-26 22:34:09 +00:00
tibs 07dc395b13 Python wrapper: Reading TS packets from a TS file will update the PAT
as PAT records are found. Seeking forgets the current PAT.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4098
2008-11-23 21:07:25 +00:00
tibs 9a493c00b0 Python bindings: Re-reading the Pyrex documentation, it is obvious (!) that
Python methods in extension types *can* call cdef methods, so make the
cdef functions I was using, because I hadn't figured this out, be cdef
methods instead. This (a) makes the code simpler/nicer, and (b) will make
it easier to accumulate PAT (and later PMT) over repeated calls of the
(now a) method that reads the next TS packet.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4097
2008-11-23 17:32:28 +00:00
tibs a390c6f52c Tidying up the PAT stuff a little
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4086
2008-11-03 11:53:19 +00:00
tibs b94eaecaf0 Basic PAT retrieval
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4085
2008-11-03 11:34:09 +00:00
tibs 16f6e337c0 Add (lazy) retrieval of PCR from TS packets.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4071
2008-10-19 16:15:16 +00:00
tibs 66b15051d8 Make the __repr__ methods behave a bit better.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4067
2008-09-22 22:29:05 +00:00
tibs f5453d8e32 PAT -- initial ideas
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4066
2008-09-21 20:14:26 +00:00
tibs 37230ea362 This is a better way of implementing TSPacket, plus the code is (erm) correct
in (for instance) __repr__. The only snag is that I've not yet figured out
how to suppress the warning because the second argument to PyObject_AsReadBuffer
is meant to be "const void **", and I can't specify "const" in Pyrex. And
warnings are not nice...

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4063
2008-09-17 20:34:42 +00:00
tibs 21f045d8ed Thinking about array handling...
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4059
2008-09-08 20:27:13 +00:00
tibs aecc545ec8 OK, this is just pedantry
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4058
2008-09-07 19:34:36 +00:00
tibs a4c3af2bda Make the doctest slightly less interesting, but a lot faster.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4057
2008-09-07 19:33:15 +00:00
tibs a44d55f8bf Basic TS file reading now fleshed out.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4056
2008-09-07 19:00:29 +00:00
tibs 4526d13d5a Some (admittedly inefficent, but this may not matter) TS processing now added
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4055
2008-09-06 17:41:26 +00:00
tibs 1909507d9b Begin support for TS files.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4050
2008-09-04 21:20:52 +00:00
tibs 1540f806c6 Add the ability to use the "with" statement on ESFile.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4049
2008-09-03 09:22:43 +00:00
tibs 657f94b363 Update to use segment 11 of the Elephant's Dream (HD) data as test data.
Improve the reporting of ES unit data slightly.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4048
2008-09-02 12:18:15 +00:00
tibs c89d69b15e It looks like seeking does work.
Use of ESOffset sorted out a bit more -- I think it now makes sense.

And since I can't find any way for doctest to "see" C stdout/stderr,
just make rundoctest.py output an explanatory message (and the RED/GREEN
thing just makes it a bit quicker to ignore worrying texts).

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4046
2008-08-28 20:33:47 +00:00
tibs a5313c03ec The basics of seek now written -- yet to test it actuall goes to the right
place, though...

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4045
2008-08-27 22:16:02 +00:00
tibs fb998f5655 Start towarards seeking -- properly support ES offsets.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4043
2008-08-26 21:44:05 +00:00
tibs 2f63aad957 A little bit further -- now able to create arbitrary ES units
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4042
2008-08-26 20:37:15 +00:00
tibs da39d46655 Some ES attributes added.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4041
2008-08-25 18:22:01 +00:00
tibs cabde235d0 Gradually iterating towards the obvious -- of course I didn't need to
involve Python files.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4040
2008-08-24 18:48:40 +00:00
tibs 02f72c180d (a) learn how to do comparisons, (b) make ES units comparable
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4039
2008-08-23 21:15:29 +00:00
tibs 1750c74d44 Tidy up a bit, by moving the Python binding stuff (i.e., the Pyrex related
stuff) into a separate directory.

--HG--
rename : test.txt => python/test.txt
rename : tstools.pyx => python/tstools.pyx
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4038
2008-08-22 23:08:38 +00:00