29 #ifndef AVCODEC_MJPEGDEC_H
30 #define AVCODEC_MJPEGDEC_H
38 #define MAX_COMPONENTS 4
119 void *
data,
int *data_size,
125 const uint8_t *mb_bitmask,
const AVFrame *reference);
127 const uint8_t **buf_ptr,
const uint8_t *buf_end,
128 const uint8_t **unescaped_buf_ptr,
int *unescaped_buf_size);
int block_stride[MAX_COMPONENTS]
int v_count[MAX_COMPONENTS]
DCTELEM(*[MAX_COMPONENTS] blocks)[64]
intermediate sums (progressive mode)
int h_scount[MAX_COMPONENTS]
int qscale[4]
quantizer scale calculated from quant_matrixes
#define DECLARE_ALIGNED(n, t, v)
int dc_index[MAX_COMPONENTS]
int linesize[MAX_COMPONENTS]
linesize << interlaced
int ff_mjpeg_decode_init(AVCodecContext *avctx)
int comp_index[MAX_COMPONENTS]
uint16_t(* ljpeg_buffer)[4]
unsigned int ljpeg_buffer_size
int16_t quant_matrixes[4][64]
uint8_t * last_nnz[MAX_COMPONENTS]
int h_count[MAX_COMPONENTS]
bitstream reader API header.
int ff_mjpeg_decode_dqt(MJpegDecodeContext *s)
int ff_mjpeg_find_marker(MJpegDecodeContext *s, const uint8_t **buf_ptr, const uint8_t *buf_end, const uint8_t **unescaped_buf_ptr, int *unescaped_buf_size)
int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask, const AVFrame *reference)
int nb_blocks[MAX_COMPONENTS]
int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
int near
near lossless bound (si 0 for lossless)
int component_id[MAX_COMPONENTS]
int v_scount[MAX_COMPONENTS]
int ff_mjpeg_decode_dht(MJpegDecodeContext *s)
main external API structure.
Describe the class of an AVClass context structure.
struct MJpegDecodeContext MJpegDecodeContext
int ac_index[MAX_COMPONENTS]
int reset
context halfing intervall ?rename
uint64_t coefs_finished[MAX_COMPONENTS]
bitmask of which coefs have been completely decoded (progressive mode)
int got_picture
we found a SOF and picture is valid, too.
int last_dc[MAX_COMPONENTS]
int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
int ff_mjpeg_decode_end(AVCodecContext *avctx)