Lines Matching refs:fcx
44 struct image *fcx = ctx->ctx; in encode_rs() local
46 uint8_t data[fcx->rs_n]; in encode_rs()
49 for (i = ctx->start; i < ctx->end; i += fcx->rs_n) { in encode_rs()
50 for (j = 0; j < fcx->rs_n; ++j) { in encode_rs()
51 data[j] = image_get_interleaved_byte(i + j, fcx); in encode_rs()
54 encode_rs_char(ctx->rs, data, &fcx->fec[ctx->fec_pos]); in encode_rs()
55 ctx->fec_pos += fcx->roots; in encode_rs()
61 struct image *fcx = ctx->ctx; in decode_rs() local
63 uint8_t data[fcx->rs_n + fcx->roots]; in decode_rs()
68 for (i = ctx->start; i < ctx->end; i += fcx->rs_n) { in decode_rs()
69 for (j = 0; j < fcx->rs_n; ++j) { in decode_rs()
70 data[j] = image_get_interleaved_byte(i + j, fcx); in decode_rs()
73 memcpy(&data[fcx->rs_n], &fcx->fec[ctx->fec_pos], fcx->roots); in decode_rs()
78 i, i + fcx->rs_n); in decode_rs()
81 for (j = 0; j < fcx->rs_n; ++j) { in decode_rs()
82 image_set_interleaved_byte(i + j, fcx, data[j]); in decode_rs()
88 ctx->fec_pos += fcx->roots; in decode_rs()