Searched refs:FEC_RSM (Results 1 – 7 of 7) sorted by relevance
/system/extras/libfec/test/ |
D | test_rs.c | 28 #define FEC_RSM 255 macro 30 #define FEC_RSN (FEC_RSM - FEC_ROOTS) 36 uint8_t data[FEC_RSM]; in main() 37 uint8_t dupl[FEC_RSM]; in main() 38 uint8_t corr[FEC_RSM]; in main() 40 int erasures[FEC_RSM]; in main()
|
/system/extras/libfec/include/fec/ |
D | ecc.h | 27 #define FEC_RSM 255 macro 60 FEC_RSM - roots) in fec_ecc_get_size()
|
/system/extras/libfec/ |
D | fec_read.cpp | 152 ecc_data[j * FEC_RSM + i] = bbuf[j]; in __ecc_read() 159 uint8_t copy[FEC_RSM]; in __ecc_read() 163 if (!raw_pread(f->fd, &ecc_data[i * FEC_RSM + e->rsn], e->roots, in __ecc_read() 172 memcpy(copy, &ecc_data[i * FEC_RSM], FEC_RSM); in __ecc_read() 176 int rc = decode_rs_char(rs, &ecc_data[i * FEC_RSM], erasures, neras); in __ecc_read() 182 dump("raw RS block", rsb, copy, FEC_RSM); in __ecc_read() 196 dest[i] = ecc_data[i * FEC_RSM + data_index]; in __ecc_read() 221 ecc_data.reset(new (std::nothrow) uint8_t[FEC_RSM * FEC_BLOCKSIZE]); in ecc_init()
|
D | fec_open.cpp | 102 check(f->ecc.rsn > 0 && f->ecc.rsn < FEC_RSM); in parse_ecc_header() 134 if (header.roots == 0 || header.roots >= FEC_RSM) { in parse_ecc_header() 504 check(roots > 0 && roots < FEC_RSM); in fec_open() 528 f->ecc.rsn = FEC_RSM - roots; in fec_open()
|
/system/extras/verity/fec/ |
D | image.cpp | 147 assert(ctx->roots > 0 && ctx->roots < FEC_RSM); in image_load() 148 ctx->rs_n = FEC_RSM - ctx->roots; in image_load() 250 if (p->roots == 0 || p->roots >= FEC_RSM) { in image_ecc_load() 259 ctx->rs_n = FEC_RSM - ctx->roots; in image_ecc_load()
|
D | main.cpp | 66 assert(sizeof(data) == FEC_RSM); in decode_rs() 319 ctx.roots = (int)parse_arg(optarg, "roots", FEC_RSM); in main() 367 assert(ctx.roots > 0 && ctx.roots < FEC_RSM); in main()
|
/system/update_engine/payload_consumer/ |
D | verity_writer_android.cc | 128 TEST_AND_RETURN_FALSE(fec_roots >= 0 && fec_roots < FEC_RSM); in EncodeFEC() 130 size_t rs_n = FEC_RSM - fec_roots; in EncodeFEC()
|