comparison dsputil.h @ 1104:6a01ffc5351c libavcodec

cosmetics
author michaelni
date Thu, 06 Mar 2003 10:26:19 +0000
parents eeaa1e837efb
children 1e39f273ecd6
comparison
equal deleted inserted replaced
1103:b05aa3f49cc8 1104:6a01ffc5351c
163 163
164 /* (I)DCT */ 164 /* (I)DCT */
165 void (*fdct)(DCTELEM *block/* align 16*/); 165 void (*fdct)(DCTELEM *block/* align 16*/);
166 166
167 /** 167 /**
168 * block -> idct -> clip to unsigned 8 bit -> dest.<br> 168 * block -> idct -> clip to unsigned 8 bit -> dest.
169 * (-1392, 0, 0, ...) -> idct -> (-174, -174, ...) -> put -> (0, 0, ...) 169 * (-1392, 0, 0, ...) -> idct -> (-174, -174, ...) -> put -> (0, 0, ...)
170 * @param line_size size in pixels of a horizotal line of dest 170 * @param line_size size in pixels of a horizotal line of dest
171 */ 171 */
172 void (*idct_put)(uint8_t *dest/*align 8*/, int line_size, DCTELEM *block/*align 16*/); 172 void (*idct_put)(uint8_t *dest/*align 8*/, int line_size, DCTELEM *block/*align 16*/);
173 173
176 * @param line_size size in pixels of a horizotal line of dest 176 * @param line_size size in pixels of a horizotal line of dest
177 */ 177 */
178 void (*idct_add)(uint8_t *dest/*align 8*/, int line_size, DCTELEM *block/*align 16*/); 178 void (*idct_add)(uint8_t *dest/*align 8*/, int line_size, DCTELEM *block/*align 16*/);
179 179
180 /** 180 /**
181 * idct input permutation.<br> 181 * idct input permutation.
182 * an example to avoid confusion: 182 * an example to avoid confusion:
183 * - (->decode coeffs -> zigzag reorder -> dequant -> reference idct ->...) 183 * - (->decode coeffs -> zigzag reorder -> dequant -> reference idct ->...)
184 * - (x -> referece dct -> reference idct -> x) 184 * - (x -> referece dct -> reference idct -> x)
185 * - (x -> referece dct -> simple_mmx_perm = idct_permutation -> simple_idct_mmx -> x) 185 * - (x -> referece dct -> simple_mmx_perm = idct_permutation -> simple_idct_mmx -> x)
186 * - (->decode coeffs -> zigzag reorder -> simple_mmx_perm -> dequant -> simple_idct_mmx ->...) 186 * - (->decode coeffs -> zigzag reorder -> simple_mmx_perm -> dequant -> simple_idct_mmx ->...)
201 * @param last last non zero element in scantable order 201 * @param last last non zero element in scantable order
202 */ 202 */
203 void ff_block_permute(DCTELEM *block, uint8_t *permutation, const uint8_t *scantable, int last); 203 void ff_block_permute(DCTELEM *block, uint8_t *permutation, const uint8_t *scantable, int last);
204 204
205 /** 205 /**
206 * Empty mmx state.<br> 206 * Empty mmx state.
207 * this must be called between any dsp function and float/double code. 207 * this must be called between any dsp function and float/double code.
208 * for example sin(); dsp->idct_put(); emms_c(); cos() 208 * for example sin(); dsp->idct_put(); emms_c(); cos()
209 */ 209 */
210 #define emms_c() 210 #define emms_c()
211 211