80 #include "jpc_mqcod.h" 92 #define JPC_MQENC_DEFTERM 0 93 #define JPC_MQENC_PTERM 1 110 uint_least32_t ctreg;
116 const jpc_mqstate_t **ctxs;
119 const jpc_mqstate_t **curctx;
125 int_least16_t outbuf;
128 int_least16_t lastbyte;
158 jpc_mqenc_t *jpc_mqenc_create(
unsigned maxctxs,
jas_stream_t *out);
161 void jpc_mqenc_destroy(jpc_mqenc_t *enc);
168 void jpc_mqenc_init(jpc_mqenc_t *enc);
175 static inline void jpc_mqenc_setcurctx(jpc_mqenc_t *enc,
unsigned ctxno) {
176 enc->curctx = &enc->ctxs[ctxno];
180 void jpc_mqenc_setctxs(jpc_mqenc_t *enc,
unsigned numctxs,
const jpc_mqctx_t *ctxs);
187 static inline bool jpc_mqenc_error(
const jpc_mqenc_t *enc) {
192 void jpc_mqenc_getstate(
const jpc_mqenc_t *enc, jpc_mqencstate_t *state);
195 int jpc_mqenc_flush(jpc_mqenc_t *enc,
int termmode);
205 int jpc_mqenc_dump(
const jpc_mqenc_t *mqenc);
214 int jpc_mqenc_codemps2(jpc_mqenc_t *enc);
215 int jpc_mqenc_codelps(jpc_mqenc_t *enc);
217 int jpc_mqenc_putbit(jpc_mqenc_t *enc,
bool bit);
I/O stream object.
Definition: jas_stream.h:206