33 #ifndef AVCODEC_MJPEG_H
34 #define AVCODEC_MJPEG_H
128 #define PREDICT(ret, topleft, top, left, predictor)\
130 case 0: ret= 0; break;\
131 case 1: ret= left; break;\
132 case 2: ret= top; break;\
133 case 3: ret= topleft; break;\
134 case 4: ret= left + top - topleft; break;\
135 case 5: ret= left + ((top - topleft)>>1); break;\
136 case 6: ret= top + ((left - topleft)>>1); break;\
138 case 7: ret= (left + top)>>1; break;\
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
const uint8_t avpriv_mjpeg_bits_ac_luminance[17]
const uint8_t avpriv_mjpeg_bits_dc_chrominance[17]
const uint8_t avpriv_mjpeg_bits_ac_chrominance[17]
void ff_mjpeg_build_huffman_codes(uint8_t *huff_size, uint16_t *huff_code, const uint8_t *bits_table, const uint8_t *val_table)
Libavcodec external API header.
const uint8_t avpriv_mjpeg_bits_dc_luminance[17]
const uint8_t avpriv_mjpeg_val_dc[12]
const uint8_t avpriv_mjpeg_val_ac_luminance[]
static void put_marker(PutBitContext *p, int code)
const uint8_t avpriv_mjpeg_val_ac_chrominance[]
JPEG-LS extension parameters.