comparison bethsoftvideo.c @ 4814:d2fbd9c6df06 libavcodec

remove useless debuging av_log()
author michael
date Sat, 07 Apr 2007 23:17:06 +0000
parents a7f058c55491
children 1a4c48de8166
comparison
equal deleted inserted replaced
4813:a7f058c55491 4814:d2fbd9c6df06
41 BethsoftvidContext *vid = avctx->priv_data; 41 BethsoftvidContext *vid = avctx->priv_data;
42 vid->frame.reference = 1; 42 vid->frame.reference = 1;
43 vid->frame.buffer_hints = FF_BUFFER_HINTS_VALID | 43 vid->frame.buffer_hints = FF_BUFFER_HINTS_VALID |
44 FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; 44 FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
45 avctx->pix_fmt = PIX_FMT_PAL8; // palette in vid->frame.data[1] 45 avctx->pix_fmt = PIX_FMT_PAL8; // palette in vid->frame.data[1]
46 av_log(avctx, AV_LOG_DEBUG, "[bethsoftvid video decoder] init\n");
47 return 0; 46 return 0;
48 } 47 }
49 48
50 static void set_palette(AVFrame * frame, uint8_t * palette_buffer) 49 static void set_palette(AVFrame * frame, uint8_t * palette_buffer)
51 { 50 {
67 uint8_t * frame_end; 66 uint8_t * frame_end;
68 int line_remaining = avctx->width; // number of bytes remaining on a line 67 int line_remaining = avctx->width; // number of bytes remaining on a line
69 const int wrap_to_next_line = vid->frame.linesize[0] - avctx->width; 68 const int wrap_to_next_line = vid->frame.linesize[0] - avctx->width;
70 uint8_t rle_num_bytes; 69 uint8_t rle_num_bytes;
71 int yoffset; 70 int yoffset;
72
73 av_log(avctx, AV_LOG_DEBUG, "[bethsoftvid video decoder] decoding frame\n");
74 71
75 // reget buffer will copy old data, good for simple difference frames 72 // reget buffer will copy old data, good for simple difference frames
76 if (avctx->reget_buffer(avctx, &vid->frame)) { 73 if (avctx->reget_buffer(avctx, &vid->frame)) {
77 av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n"); 74 av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
78 return -1; 75 return -1;
125 } 122 }
126 123
127 static int bethsoftvid_decode_end(AVCodecContext *avctx) 124 static int bethsoftvid_decode_end(AVCodecContext *avctx)
128 { 125 {
129 BethsoftvidContext * vid = avctx->priv_data; 126 BethsoftvidContext * vid = avctx->priv_data;
130 av_log(avctx, AV_LOG_DEBUG, "[bethsoftvid video decoder] closing\n");
131 if(vid->frame.data[0]) 127 if(vid->frame.data[0])
132 avctx->release_buffer(avctx, &vid->frame); 128 avctx->release_buffer(avctx, &vid->frame);
133 return 0; 129 return 0;
134 } 130 }
135 131