anrosent / lt-code Goto Github PK
View Code? Open in Web Editor NEWEncoder/Decoder for the Luby Transform fountain code
License: MIT License
Encoder/Decoder for the Luby Transform fountain code
License: MIT License
Support single block parsing from bytes, not just parsing stream of blocks from a file-like
Sorry, the problem is because of my wrong understanding. Please ignore and close it.
Any chance of an explanation for the C and delta for the sampler? I'm getting nearly 20% overhead from the LT coding with the defaults
I read this code as needed, and I find there is small bug here, on my computer I can't get the right data.
after several hours hard work. I find the byte order isn't pair here.
you have read the data from the file use the sys.byteorder, but when you finish get out all the block in the
decode process, you just use the big as the byteorder not the sys.byteorder, it will cause some bug on several computer.
could you show its working in a video
Hello Anson , I know that project has some years , maybe u could help me Im trying to use the decoder but that simply gets stuck . At the enconder Im using simple txt file from no more than 4 kb. I always have to interrupt the decoder
the function _read_block(blocksize, stream): --> which one should be returned ?
return int.from_bytes(blockdata, 'big')
#return int.from_bytes(blockdata, sys.byteorder)
rom@rom-virtual-machine:~/Documents/GIT/LT-code-master$ ./bin/encome/rom/Documents/GIT/LT-code-master/filename.txt 64
(base) rom@rom-virtual-machine:~/Documents/GIT/LT-code-master$ ./bin/decoder
^CTraceback (most recent call last):
File "/home/rom/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/rom/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/rom/Documents/GIT/LT-code-master/lt/decode/main.py", line 25, in
run(sys.stdin.buffer)
File "/home/rom/Documents/GIT/LT-code-master/lt/decode/main.py", line 19, in run
payload = decode.decode(stream)
File "/home/rom/Documents/GIT/LT-code-master/lt/decode/init.py", line 169, in decode
for lt_block in read_blocks(in_stream):
File "/home/rom/Documents/GIT/LT-code-master/lt/decode/init.py", line 156, in read_blocks
header = _read_header(stream)
File "/home/rom/Documents/GIT/LT-code-master/lt/decode/init.py", line 142, in _read_header
header_bytes = stream.read(12)
KeyboardInterrupt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.