Lines Matching refs:ctx
72 image *ctx; member
80 extern bool image_load(const std::vector<std::string>& filename, image *ctx);
81 extern bool image_save(const std::string& filename, image *ctx);
83 extern bool image_ecc_new(const std::string& filename, image *ctx);
84 extern bool image_ecc_load(const std::string& filename, image *ctx);
85 extern bool image_ecc_save(image *ctx);
87 extern bool image_process(image_proc_func f, image *ctx);
89 extern void image_init(image *ctx);
90 extern void image_free(image *ctx);
92 inline uint8_t image_get_interleaved_byte(uint64_t i, image *ctx) in image_get_interleaved_byte() argument
94 uint64_t offset = fec_ecc_interleave(i, ctx->rs_n, ctx->rounds); in image_get_interleaved_byte()
96 if (unlikely(offset >= ctx->inp_size)) { in image_get_interleaved_byte()
100 return ctx->input[offset]; in image_get_interleaved_byte()
103 inline void image_set_interleaved_byte(uint64_t i, image *ctx, in image_set_interleaved_byte() argument
106 uint64_t offset = fec_ecc_interleave(i, ctx->rs_n, ctx->rounds); in image_set_interleaved_byte()
108 if (unlikely(offset >= ctx->inp_size)) { in image_set_interleaved_byte()
110 } else if (ctx->output && ctx->output[offset] != value) { in image_set_interleaved_byte()
111 ctx->output[offset] = value; in image_set_interleaved_byte()