Mercurial > libavcodec.hg
diff mjpegdec.h @ 8287:7a1d037482c4 libavcodec
fix progressive jpeg:
support refinement passes
remove intermediate clipping
remove redundant idct
author | lorenm |
---|---|
date | Wed, 10 Dec 2008 21:26:00 +0000 |
parents | c4a4495715dd |
children | 04423b2f6e0b |
line wrap: on
line diff
--- a/mjpegdec.h Wed Dec 10 00:50:59 2008 +0000 +++ b/mjpegdec.h Wed Dec 10 21:26:00 2008 +0000 @@ -67,6 +67,7 @@ int width, height; int mb_width, mb_height; int nb_components; + int block_stride[MAX_COMPONENTS]; int component_id[MAX_COMPONENTS]; int h_count[MAX_COMPONENTS]; /* horizontal and vertical count for each component */ int v_count[MAX_COMPONENTS]; @@ -83,6 +84,9 @@ int linesize[MAX_COMPONENTS]; ///< linesize << interlaced int8_t *qscale_table; DECLARE_ALIGNED_16(DCTELEM, block[64]); + DCTELEM (*blocks[MAX_COMPONENTS])[64]; ///< intermediate sums (progressive mode) + uint8_t *last_nnz[MAX_COMPONENTS]; + uint64_t coefs_finished[MAX_COMPONENTS]; ///< bitmask of which coefs have been completely decoded (progressive mode) ScanTable scantable; DSPContext dsp;