Lines Matching defs:code
65 int len, code, nbits;
71 code = ((15&run) << 4) | nbits;
73 len += huff_size_ac[code] + nbits;
110 int nbits, code, table_id;
127 code = m->huff_buffer[i].code;
128 nbits = code & 0xf;
130 total_bits += huff_size[table_id][code] + nbits;
138 code = m->huff_buffer[i].code;
139 nbits = code & 0xf;
141 put_bits(&s->pb, huff_size[table_id][code], huff_code[table_id][code]);
174 int code = m->huff_buffer[i].code;
176 ff_mjpeg_encode_huffman_increment(ctx[table_id], code);
218 * @return int Error code, 0 if successful.
373 * Add code and table_id to the JPEG buffer.
376 * @param table_id Which Huffman table the code belongs to.
377 * @param code The encoded exponent of the coefficients and the run-bits.
379 static inline void ff_mjpeg_encode_code(MJpegContext *s, uint8_t table_id, int code)
383 c->code = code;
390 * @param table_id Which Huffman table the code belongs to.
396 int mant, code;
408 code = (run << 4) | (av_log2_16bit(val) + 1);
411 ff_mjpeg_encode_code(s, table_id, code);
467 int mant, nbits, code, i, j;
509 code = (run << 4) | nbits;
511 put_bits(&s->pb, huff_size_ac[code], huff_code_ac[code]);