diff options
author | 2002-03-15 21:23:49 +0000 | |
---|---|---|
committer | 2002-03-15 21:23:49 +0000 | |
commit | 006c1d84d9e9c07cd91a12ec7f9a0ecb731855c3 (patch) | |
tree | 911110509b0ae44b44be7e4653e78e4c0a463d36 | |
parent | 455b4d608b89d75a79754b8213191af19117f903 (diff) |
changed to mp_msg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5105 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | nuppelvideo.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/nuppelvideo.c b/nuppelvideo.c index 035a08621a..f040587698 100644 --- a/nuppelvideo.c +++ b/nuppelvideo.c @@ -31,7 +31,7 @@ void decode_nuv( unsigned char *encoded, int encoded_size, #ifdef KEEP_BUFFER static unsigned char *previous_buffer = 0; /* to support Last-frame-copy */ #endif - static is_lzo_inited = 0; + static int is_lzo_inited = 0; // printf("frametype: %c, comtype: %c, encoded_size: %d, width: %d, height: %d\n", // encodedh->frametype, encodedh->comptype, encoded_size, width, height); @@ -44,7 +44,7 @@ void decode_nuv( unsigned char *encoded, int encoded_size, if (encodedh->comptype == 'R') { RTjpeg_init_decompress ( encoded+12, width, height ); - printf("Found RTjpeg tables (size: %d, width: %d, height: %d)\n", + mp_msg(MSGT_DECVIDEO, MSGL_V, "Found RTjpeg tables (size: %d, width: %d, height: %d)\n", encoded_size-12, width, height); } break; @@ -61,8 +61,8 @@ void decode_nuv( unsigned char *encoded, int encoded_size, { /* frame using lzo, init lzo first if not inited */ if ( lzo_init() != LZO_E_OK ) - { - fprintf ( stderr, "%s\n", "lzo_init() failed !!!" ); + { + mp_msg(MSGT_DECVIDEO, MSGL_ERR, "LZO init failed\n"); return; } is_lzo_inited = 1; @@ -81,14 +81,14 @@ void decode_nuv( unsigned char *encoded, int encoded_size, buffer = ( unsigned char * ) malloc ( width * height + ( width * height ) / 2 ); if (!buffer) { - printf ( "Error decompressing\n" ); + mp_msg(MSGT_DECVIDEO, MSGL_ERR, "Nuppelvideo: error decompressing\n"); break; } r = lzo1x_decompress ( encoded + 12, encodedh->packetlength, buffer, &out_len, NULL ); if ( r != LZO_E_OK ) { - printf ( "Error decompressing\n" ); - break; + mp_msg(MSGT_DECVIDEO, MSGL_ERR, "Nuppelvideo: error decompressing\n"); + break; } RTjpeg_decompressYUV420 ( ( __s8 * ) buffer, decoded ); break; @@ -96,8 +96,8 @@ void decode_nuv( unsigned char *encoded, int encoded_size, r = lzo1x_decompress ( encoded + 12, encodedh->packetlength, decoded, &out_len, NULL ); if ( r != LZO_E_OK ) { - printf ( "Error decompressing\n" ); - break; + mp_msg(MSGT_DECVIDEO, MSGL_ERR, "Nuppelvideo: error decompressing\n"); + break; } break; case 'N': /* black frame */ @@ -117,6 +117,7 @@ void decode_nuv( unsigned char *encoded, int encoded_size, break; } default: - printf("Unknown chunk: %c\n", encodedh->frametype); + mp_msg(MSGT_DECVIDEO, MSGL_V, "Nuppelvideo: unknwon frametype: %c\n", + encodedh->frametype); } } |