From: James Courtier-D. <jcd...@us...> - 2002-10-03 06:04:56
|
Update of /cvsroot/xine/xine-lib/src/libdts In directory usw-pr-cvs1:/tmp/cvs-serv25508/xine-lib/src/libdts Modified Files: xine_decoder.c Log Message: DTS debug messages. blend_rgb16 changes. <- Need testing further. Index: xine_decoder.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/libdts/xine_decoder.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- xine_decoder.c 5 Sep 2002 22:18:56 -0000 1.26 +++ xine_decoder.c 3 Oct 2002 06:04:54 -0000 1.27 @@ -41,6 +41,9 @@ #include "audio_out.h" #include "buffer.h" +/* +#define LOG_DEBUG +*/ typedef struct dts_decoder_s { audio_decoder_t audio_decoder; @@ -128,7 +131,10 @@ audio_buffer->frame_header_count = buf->decoder_info[1]; /* Number of frames */ audio_buffer->first_access_unit = buf->decoder_info[2]; /* First access unit */ - /* printf("DTS first access unit=%u\n",audio_buffer->first_access_unit); */ +#ifdef LOG_DEBUG + printf("DTS first access unit=%u\n",audio_buffer->first_access_unit); +#endif + if (n == first_access_unit) { audio_buffer->vpts = buf->pts; } else { @@ -155,13 +161,13 @@ break; } - /* printf("DTS AC5 length=%d\n",ac5_length); */ - /* +#ifdef LOG_DEBUG + printf("DTS AC5 length=%d\n",ac5_length); for(i=2000;i<2048;i++) { printf("%02x ",data[i]); } printf("\n"); - */ +#endif if (ac5_length > 8191) { printf("ac5_length too long\n"); @@ -187,7 +193,10 @@ } } - /* printf("DTS length=%d loop=%d pts=%u\n",ac5_pcm_length,n,audio_buffer->vpts); */ +#ifdef LOG_DEBUG + printf("DTS length=%d loop=%d pts=%u\n",ac5_pcm_length,n,audio_buffer->vpts); +#endif + audio_buffer->num_frames = ac5_pcm_length; data_out[0] = 0x72; data_out[1] = 0xf8; /* spdif syncword */ |