comparison wma.c @ 4600:6ac364a4ce2b libavcodec

Supply context to tprintf
author mbardiaux
date Tue, 27 Feb 2007 09:39:04 +0000
parents fc155ff94878
children 7b9ce6f729ae
comparison
equal deleted inserted replaced
4599:2cd245d65761 4600:6ac364a4ce2b
266 if (end > start) 266 if (end > start)
267 s->exponent_high_bands[k][j++] = end - start; 267 s->exponent_high_bands[k][j++] = end - start;
268 } 268 }
269 s->exponent_high_sizes[k] = j; 269 s->exponent_high_sizes[k] = j;
270 #if 0 270 #if 0
271 tprintf("%5d: coefs_end=%d high_band_start=%d nb_high_bands=%d: ", 271 tprintf(s->avctx, "%5d: coefs_end=%d high_band_start=%d nb_high_bands=%d: ",
272 s->frame_len >> k, 272 s->frame_len >> k,
273 s->coefs_end[k], 273 s->coefs_end[k],
274 s->high_band_start[k], 274 s->high_band_start[k],
275 s->exponent_high_sizes[k]); 275 s->exponent_high_sizes[k]);
276 for(j=0;j<s->exponent_high_sizes[k];j++) 276 for(j=0;j<s->exponent_high_sizes[k];j++)
277 tprintf(" %d", s->exponent_high_bands[k][j]); 277 tprintf(s->avctx, " %d", s->exponent_high_bands[k][j]);
278 tprintf("\n"); 278 tprintf(s->avctx, "\n");
279 #endif 279 #endif
280 } 280 }
281 } 281 }
282 282
283 #ifdef TRACE 283 #ifdef TRACE
284 { 284 {
285 int i, j; 285 int i, j;
286 for(i = 0; i < s->nb_block_sizes; i++) { 286 for(i = 0; i < s->nb_block_sizes; i++) {
287 tprintf("%5d: n=%2d:", 287 tprintf(s->avctx, "%5d: n=%2d:",
288 s->frame_len >> i, 288 s->frame_len >> i,
289 s->exponent_sizes[i]); 289 s->exponent_sizes[i]);
290 for(j=0;j<s->exponent_sizes[i];j++) 290 for(j=0;j<s->exponent_sizes[i];j++)
291 tprintf(" %d", s->exponent_bands[i][j]); 291 tprintf(s->avctx, " %d", s->exponent_bands[i][j]);
292 tprintf("\n"); 292 tprintf(s->avctx, "\n");
293 } 293 }
294 } 294 }
295 #endif 295 #endif
296 296
297 /* init MDCT windows : simple sinus window */ 297 /* init MDCT windows : simple sinus window */