Wykres commitów

136 Commity (574a59f25c6d51434c155f15ed39e3fd98bf577c)

Autor SHA1 Wiadomość Data
tibs 574a59f25c More transfer to the new IO model -- especially, misc.c and its implications.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40136
2009-05-03 15:57:22 +00:00
tibs 6b4c838ad8 Change the name of the switch to be more helpful, update the help
to explain why, now I've looked back at the ts.c code and seen what
it actually does.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40135
2009-02-26 13:04:20 +00:00
tibs 34f5b71d6d Attempt to allow forcing of what PCR PID to use, in tsplay playing TS.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40134
2009-02-26 12:48:15 +00:00
tibs 6116215b50 Improve the tsplay help for "-help ps" to explain what the PID values
are actually used for, and why (before it was definitely confusing).

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40133
2009-02-26 12:02:34 +00:00
tibs 497e1cd097 Oops -- should have remembered to prime the lookahead PCR buffer in tsreport
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40132
2009-02-25 16:05:45 +00:00
tibs 2f704d0c42 More work on replacing printing functions.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40131
2009-02-23 21:05:51 +00:00
tibs ef5a9ea9f9 Start of converting printf (etc) to the new message functions.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40130
2009-02-23 20:09:45 +00:00
tibs 0763ebb39c Be good, and make publicly declared functions with no arguments say
``(void)`` instead of just ``()``.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40129
2009-02-23 19:46:02 +00: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 5d1c15c69b Add what is probably a missing function to printing.c
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40127
2009-02-22 20:33:16 +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 8aad839cff Debug should be off by default in printing.c
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40124
2009-02-22 18:36:16 +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 b0023efd46 More playing with printing redirection.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40121
2009-02-20 15:35:29 +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 2f658aa0a3 Write some initial code to allow for output redirection
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40116
2009-02-16 21:45:34 +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 c63713db25 ts_defns.h didn't include compat.h, but it uses offset_t
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40111
2009-02-13 20:50:32 +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 2af44b632b As promised, add comment for new argument to find_next_pmt.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40100
2008-11-25 19:55:42 +00:00
jc44 307d5475ae Added program number checking to PMT selection in case there are multiple PMTs on the same PID (or indeed other garbage)
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4099
2008-11-25 13:47:39 +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
rhodri f16d7ed982 Fix command-line parsing of -output and -skew
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4096
2008-11-18 15:49:35 +00:00
tibs fa6d7c2a53 Add (missing) CHECKARG calls in various places (this addresses bug 14781).
Do some other minor tidying up at the same time.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4095
2008-11-11 20:28:20 +00:00
tibs 6816417666 Tidy up command line handling.
Tidy up reporting in general.
Make several defaults exist (and probably stop falling over behaviour).
Change the help text to be more in line with the other programs.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4094
2008-11-11 20:24:42 +00:00
tibs 94435ef050 Add the magic runes to the end, and reformat.
This should really be split into pcap_defns.h and pcap_fns.h, to match other
header files, but leave it for now. Also, leave in the horrible doxygen
format comments for the nonce (not that I have any opinions on this sort
of thing...).

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4093
2008-11-11 19:48:50 +00:00
tibs ebf0a5da1b Add the magic runes to the end, and reformat.
Move the two static functions to the top, so that forward prototyping
is not required.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4092
2008-11-11 19:46:58 +00:00
tibs 0b7868f9ca Make command line handling more commensurate with the other tools.
Despite the command line, retain  the "--" forms for switches, as
well as the documented "-" forms. Provide "-skew" as a shorter
synonym for the very-long-switch - hope that makes sense.
Make command line handling more robust.
Correct the error handling if an input file is not given.
Give the -dest switch a default port (0 seems most sensible).

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4091
2008-11-11 19:45:13 +00:00
tibs aab04f3347 Up the version number for a release.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4090
2008-11-07 09:26:27 +00:00
tibs c5afefd981 [JC] Reinserted lorenzos CC logging
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4089
2008-11-04 16:02:25 +00:00
tibs 816750af15 Correct documentation to match behaviour.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4088
2008-11-04 15:52:17 +00:00
tibs e4c53fd68c [JC] Now compiles under windows and my version of continuity counter checking added to tsreport
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4087
2008-11-04 15:23:03 +00:00