Package net.fec.openrq.encoder

Examples of net.fec.openrq.encoder.DataEncoder


    @Parameters(name = "{0}")
    public static Iterable<Object[]> getSBDInfos() {

        final List<Object[]> list = new ArrayList<>();

        final DataEncoder dataEnc = OpenRQ.newEncoder(new byte[FEC_PARAMS.dataLengthAsInt()], FEC_PARAMS);
        final DataDecoder dataDec = OpenRQ.newDecoder(FEC_PARAMS, 0);

        for (SourceBlockDecoder sbDec : dataDec.sourceBlockIterable()) {
            // insert empty decoder
            list.add(new Object[] {sbDec.information(), true});
        }

        for (SourceBlockEncoder sbEnc : dataEnc.sourceBlockIterable()) {
            final int K = sbEnc.numberOfSourceSymbols();
            final SourceBlockDecoder sbDec = dataDec.sourceBlock(sbEnc.sourceBlockNumber());

            for (int n = 0; n < K / 3; n++) {
                final EncodingPacket pac = sbEnc.sourcePacket(n);
View Full Code Here

TOP

Related Classes of net.fec.openrq.encoder.DataEncoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.