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
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
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
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
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
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
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
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
In the process, tighten up command line argument handling a bit, and
improve some error messages.
Also, make the "magic number" 0x2000 a bit more obvious.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4082
Update the documentation adding information about:
-x switch in esreport and
-cnt <pid> in tsreport
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4080
The ``-cnt`` switch is to be followed by a PID in decimal units.
It checks the values of the field continuity_counter in the specified PID,
warns in there are discontinuities and writes the values of continuity_counter in a file called
'continuity_counter.txt'. Using this automatically turns buffering on (-b).
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4079
If one wants to know about the presence of broken_link_flag, the thing to do is to use esdots -x.
All the recovery point SEI message are reported there (included the value of broken_link_flag)
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4078
lseek does indeed suggest inclusion of <sys/types.h>, as well as
<unistd.h>. Experimentation showed that ading <sys/types.h> didn't
hurt on Mac OS/X, so add both into compat.h -- hopefull this will
solve the bug.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4077
h.264 RAP as I or I + recovery_point SEI
Two changes done:
1) esdots computes the duration of GOPs, even in the h.264 case. The change made is to consider an I frame without recovery_point SEI as beginning of a new GOP. This can be changed just setting rec_point_required = TRUE in esdots.c.
In this case a new GOP is started when we found I + recovery point SEI
2) nalunit has been modified so it's able to output the information about error recovery point SEI message. Just use 'esreport -x' and SEI recovery point messages will be reported with the same syntax as all the others.
e.g.
83644584/0036: NAL unit 0/6 (SEI) 6: 06 06 01 a4 80 00
@@ Recovery Point SEI
recovery_frame_cnt 0
exact_match_flag 0
broken_link_flag 1
changing_slice_group_idc 0
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4074
Want to use it? Find 'broken_link_flag is 1' and uncomment that part of code.
Than compile and use esdots.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4073
build, and hopefully also in Linux. Ideally, do the same sort of thing for
the other "macro returning a constant string" cases.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4070
startup, inspired by work done by Gareth. Still to be fully tested.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4064
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