Lines Matching refs:run
63 * Encode error from run termination
93 * Encode run value as specified by JPEG-LS standard
95 static inline void ls_encode_run(JLSState *state, PutBitContext *pb, int run, int comp, int trail){
96 while(run >= (1 << ff_log2_run[state->run_index[comp]])){
98 run -= 1 << ff_log2_run[state->run_index[comp]];
102 /* if hit EOL, encode another full run, else encode aborted run */
103 if(!trail && run) {
108 put_bits(pb, ff_log2_run[state->run_index[comp]], run);
132 /* run mode */
134 int RUNval, RItype, run;
136 run = 0;
139 run++;
143 ls_encode_run(state, pb, run, comp, x < w);