tsdecrypt reads and decrypts CSA encrypted incoming mpeg transport stream over UDP/RTP using code words obtained from OSCAM or similar CAM server. tsdecrypt communicates with CAM server using cs378x (camd35 over tcp) protocol or newcamd protocol. https://georgi.unixsol.org/programs/tsdecrypt/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ##### compiling with g++ gives a little more speed
  2. #COMPILER=gcc
  3. #COMPILER=g++
  4. ###there are two functions which apparently don't want to be inlined
  5. #FLAGS=-O3 -march=athlon-xp -fexpensive-optimizations -funroll-loops -finline-limit=6000000 --param max-unrolled-insns=500
  6. #FLAGS=-O3 -march=athlon-xp -fexpensive-optimizations -funroll-loops --param max-unrolled-insns=500
  7. #FLAGS=-O3 -march=pentium3 -fexpensive-optimizations -funroll-loops
  8. ###icc crashes for unknown reasons
  9. #COMPILER=/opt/intel_cc_80/bin/icc
  10. #FLAGS=-O3 -march=pentiumiii
  11. #FLAGS += -g
  12. #FLAGS += -fno-alias
  13. #FLAGS += -vec_report3
  14. #FLAGS += -Wall -Winline
  15. #FLAGS += -fomit-frame-pointer
  16. #FLAGS += -pg
  17. COMPILER ?= g++
  18. FLAGS ?= -Wall -fPIC -O3 -march=pentium -mmmx -fomit-frame-pointer -fexpensive-optimizations -funroll-loops
  19. H_FILES = FFdecsa.h parallel_generic.h parallel_std_def.h fftable.h \
  20. parallel_032_4char.h \
  21. parallel_032_int.h \
  22. parallel_064_2int.h \
  23. parallel_064_8charA.h \
  24. parallel_064_8char.h \
  25. parallel_064_long.h \
  26. parallel_064_mmx.h \
  27. parallel_128_16charA.h \
  28. parallel_128_16char.h \
  29. parallel_128_2long.h \
  30. parallel_128_2mmx.h \
  31. parallel_128_4int.h \
  32. parallel_128_sse2.h \
  33. parallel_128_sse.h
  34. all: FFdecsa.o FFdecsa_test.done
  35. %.o: %.c
  36. $(COMPILER) $(FLAGS) -DPARALLEL_MODE=$(PARALLEL_MODE) -c $<
  37. FFdecsa_test: FFdecsa_test.o FFdecsa.o
  38. $(COMPILER) $(FLAGS) -o FFdecsa_test FFdecsa_test.o FFdecsa.o
  39. FFdecsa_test.o: FFdecsa_test.c FFdecsa.h FFdecsa_test_testcases.h
  40. FFdecsa.o: FFdecsa.c stream.c $(H_FILES)
  41. FFdecsa_test.done: FFdecsa_test
  42. @./FFdecsa_test
  43. @touch FFdecsa_test.done
  44. clean:
  45. @rm -f FFdecsa_test FFdecsa_test.done FFdecsa_test.o FFdecsa.o
  46. test: FFdecsa_test
  47. sync;usleep 200000;nice --19 ./FFdecsa_test