libtsfuncs is a library for mpeg PSI parsing and generation. https://georgi.unixsol.org/programs/libtsfuncs/
Georgi Chorbadzhiyski d3b56ef510 Check return value of asprintf() because it could fail 2 years ago
.gitignore makefile: Add dependancy tracking. 7 years ago
LICENSE-MIT.txt The code is under MIT license. 8 years ago
Makefile build: Allow changing CC even when CROSS is set. 5 years ago
README Add README file. 8 years ago
TODO Add TODO file. 8 years ago
cat.c Simplify xxx_is_same() functions. 4 years ago
crc.c Compile with -Wstrict-prototypes and -std=c99 7 years ago
descs.c Fix lcn description decoding 2 years ago
eit.c Simplify xxx_is_same() functions. 4 years ago
eit_desc.c Add init() functions in addition to alloc_init() functions. 7 years ago
log.c The code is under MIT license. 8 years ago
log.h The code is under MIT license. 8 years ago
misc.c Check return value of asprintf() because it could fail 2 years ago
nit.c Simplify xxx_is_same() functions. 4 years ago
nit_desc.c Remove unneeded operations. 4 years ago
pat.c Simplify xxx_is_same() functions. 4 years ago
pat_desc.c Add init() functions in addition to alloc_init() functions. 7 years ago
pes.c Fix format string warnings when compiling on 64 bit machine. 7 years ago
pes_data.c The code is under MIT license. 8 years ago
pes_es.c The code is under MIT license. 8 years ago
pmt.c Simplify xxx_is_same() functions. 4 years ago
privsec.c Simplify xxx_is_same() functions. 4 years ago
sdt.c Simplify xxx_is_same() functions. 4 years ago
sdt_desc.c sdt: Change free_ca_mode to default to non encypted service. 7 years ago
secdata.c Fix off-by-one in section gathering. 8 years ago
sections.c Add support for LCN descriptor. 5 years ago
tdt.c Simplify xxx_is_same() functions. 4 years ago
tdt_desc.c Add init() functions in addition to alloc_init() functions. 7 years ago
time.c The code is under MIT license. 8 years ago
tsdata.h Add support for Griffin CAS and DGCrypt CAS. 6 years ago
tsfuncs.c Fix off-by-one in ts_packet_get_payload_offset(). 7 years ago
tsfuncs.h Add support for LCN descriptor. 5 years ago
tstest.c Compile with -Wstrict-prototypes and -std=c99 7 years ago
tstest.test.expect Change section dump format 8 years ago
tstest_valgrind Add test script and expected results 8 years ago

README

libtsfuncs
==========
Collection of routines to work with mpeg PSI tables.

Using it
========
Clone or download libtsfuncs in a directory in your source tree and
look at the example Makefile bellow:

---
TSFUNCS_DIR = libtsfuncs
TSFUNCS_LIB = $(TSFUNCS_DIR)/libtsfuncs.a

all: prog

prog_OBJS = main.o $(TSFUNCS_LIB)

$(TSFUNCS_LIB):
$(MAKE) -s -C $(TSFUNCS_DIR)

prog: $(prog_OBJS)
$(CC) $(CFLAGS) $(prog_OBJS) -o prog
---

In every C file that you need to use it, add

#include "libtsfuncs/tsfuncs.h"

Documentation
=============
There isn't any. I'm too lazy to write proper docs. Maybe some day but
until then just look at the tsfuncs.h, tsdata.h and log.h header files.

Development
===========
The development is tracked using git. The repository is hosted at github
to get it, run the following command:

git clone git://github.com/gfto/libtsfuncs.git

Releases
========
Official releases can be downloaded from libtsfuncs home page which is

http://georgi.unixsol.org/programs/libtsfuncs/

Contact
=======
For patches, bug reports, complaints and so on send e-mail to

Georgi Chorbadzhiyski