Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
8286:e06b2b848b74 | 8287:7a1d037482c4 |
---|---|
65 int reset; ///< context halfing intervall ?rename | 65 int reset; ///< context halfing intervall ?rename |
66 | 66 |
67 int width, height; | 67 int width, height; |
68 int mb_width, mb_height; | 68 int mb_width, mb_height; |
69 int nb_components; | 69 int nb_components; |
70 int block_stride[MAX_COMPONENTS]; | |
70 int component_id[MAX_COMPONENTS]; | 71 int component_id[MAX_COMPONENTS]; |
71 int h_count[MAX_COMPONENTS]; /* horizontal and vertical count for each component */ | 72 int h_count[MAX_COMPONENTS]; /* horizontal and vertical count for each component */ |
72 int v_count[MAX_COMPONENTS]; | 73 int v_count[MAX_COMPONENTS]; |
73 int comp_index[MAX_COMPONENTS]; | 74 int comp_index[MAX_COMPONENTS]; |
74 int dc_index[MAX_COMPONENTS]; | 75 int dc_index[MAX_COMPONENTS]; |
81 int last_dc[MAX_COMPONENTS]; /* last DEQUANTIZED dc (XXX: am I right to do that ?) */ | 82 int last_dc[MAX_COMPONENTS]; /* last DEQUANTIZED dc (XXX: am I right to do that ?) */ |
82 AVFrame picture; /* picture structure */ | 83 AVFrame picture; /* picture structure */ |
83 int linesize[MAX_COMPONENTS]; ///< linesize << interlaced | 84 int linesize[MAX_COMPONENTS]; ///< linesize << interlaced |
84 int8_t *qscale_table; | 85 int8_t *qscale_table; |
85 DECLARE_ALIGNED_16(DCTELEM, block[64]); | 86 DECLARE_ALIGNED_16(DCTELEM, block[64]); |
87 DCTELEM (*blocks[MAX_COMPONENTS])[64]; ///< intermediate sums (progressive mode) | |
88 uint8_t *last_nnz[MAX_COMPONENTS]; | |
89 uint64_t coefs_finished[MAX_COMPONENTS]; ///< bitmask of which coefs have been completely decoded (progressive mode) | |
86 ScanTable scantable; | 90 ScanTable scantable; |
87 DSPContext dsp; | 91 DSPContext dsp; |
88 | 92 |
89 int restart_interval; | 93 int restart_interval; |
90 int restart_count; | 94 int restart_count; |