Searched refs:FEC_RSM (Results 1 – 6 of 6) 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 | 150 ecc_data[j * FEC_RSM + i] = bbuf[j]; in __ecc_read() 157 uint8_t copy[FEC_RSM]; in __ecc_read() 161 if (!raw_pread(f, &ecc_data[i * FEC_RSM + e->rsn], e->roots, in __ecc_read() 170 memcpy(copy, &ecc_data[i * FEC_RSM], FEC_RSM); in __ecc_read() 174 int rc = decode_rs_char(rs, &ecc_data[i * FEC_RSM], erasures, neras); in __ecc_read() 180 dump("raw RS block", rsb, copy, FEC_RSM); in __ecc_read() 194 dest[i] = ecc_data[i * FEC_RSM + data_index]; in __ecc_read() 219 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() 520 check(roots > 0 && roots < FEC_RSM); in fec_open() 544 f->ecc.rsn = FEC_RSM - roots; in fec_open()
|
/system/extras/verity/fec/ |
D | main.cpp | 67 assert(sizeof(data) == FEC_RSM); in decode_rs() 315 ctx.roots = (int)parse_arg(optarg, "roots", FEC_RSM); in main() 360 assert(ctx.roots > 0 && ctx.roots < FEC_RSM); in main()
|
D | image.cpp | 282 assert(ctx->roots > 0 && ctx->roots < FEC_RSM); in image_load() 283 ctx->rs_n = FEC_RSM - ctx->roots; in image_load() 440 if (p->roots == 0 || p->roots >= FEC_RSM) { in image_ecc_load() 449 ctx->rs_n = FEC_RSM - ctx->roots; in image_ecc_load()
|