Commit 0b13f422 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/interplayvideo: Use ff_tlog() for block level decode tracing

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent febbb3cb
...@@ -118,7 +118,7 @@ static int ipvideo_decode_block_opcode_0x2(IpvideoContext *s, AVFrame *frame) ...@@ -118,7 +118,7 @@ static int ipvideo_decode_block_opcode_0x2(IpvideoContext *s, AVFrame *frame)
y = 8 + ((B - 56) / 29); y = 8 + ((B - 56) / 29);
} }
ff_dlog(s->avctx, "motion byte = %d, (x, y) = (%d, %d)\n", B, x, y); ff_tlog(s->avctx, "motion byte = %d, (x, y) = (%d, %d)\n", B, x, y);
return copy_from(s, s->second_last_frame, frame, x, y); return copy_from(s, s->second_last_frame, frame, x, y);
} }
...@@ -144,7 +144,7 @@ static int ipvideo_decode_block_opcode_0x3(IpvideoContext *s, AVFrame *frame) ...@@ -144,7 +144,7 @@ static int ipvideo_decode_block_opcode_0x3(IpvideoContext *s, AVFrame *frame)
y = -( 8 + ((B - 56) / 29)); y = -( 8 + ((B - 56) / 29));
} }
ff_dlog(s->avctx, "motion byte = %d, (x, y) = (%d, %d)\n", B, x, y); ff_tlog(s->avctx, "motion byte = %d, (x, y) = (%d, %d)\n", B, x, y);
return copy_from(s, frame, frame, x, y); return copy_from(s, frame, frame, x, y);
} }
...@@ -165,7 +165,7 @@ static int ipvideo_decode_block_opcode_0x4(IpvideoContext *s, AVFrame *frame) ...@@ -165,7 +165,7 @@ static int ipvideo_decode_block_opcode_0x4(IpvideoContext *s, AVFrame *frame)
x = -8 + BL; x = -8 + BL;
y = -8 + BH; y = -8 + BH;
ff_dlog(s->avctx, "motion byte = %d, (x, y) = (%d, %d)\n", B, x, y); ff_tlog(s->avctx, "motion byte = %d, (x, y) = (%d, %d)\n", B, x, y);
return copy_from(s, s->last_frame, frame, x, y); return copy_from(s, s->last_frame, frame, x, y);
} }
...@@ -178,7 +178,7 @@ static int ipvideo_decode_block_opcode_0x5(IpvideoContext *s, AVFrame *frame) ...@@ -178,7 +178,7 @@ static int ipvideo_decode_block_opcode_0x5(IpvideoContext *s, AVFrame *frame)
x = bytestream2_get_byte(&s->stream_ptr); x = bytestream2_get_byte(&s->stream_ptr);
y = bytestream2_get_byte(&s->stream_ptr); y = bytestream2_get_byte(&s->stream_ptr);
ff_dlog(s->avctx, "motion bytes = %d, %d\n", x, y); ff_tlog(s->avctx, "motion bytes = %d, %d\n", x, y);
return copy_from(s, s->last_frame, frame, x, y); return copy_from(s, s->last_frame, frame, x, y);
} }
...@@ -553,7 +553,7 @@ static int ipvideo_decode_block_opcode_0x6_16(IpvideoContext *s, AVFrame *frame) ...@@ -553,7 +553,7 @@ static int ipvideo_decode_block_opcode_0x6_16(IpvideoContext *s, AVFrame *frame)
x = bytestream2_get_byte(&s->stream_ptr); x = bytestream2_get_byte(&s->stream_ptr);
y = bytestream2_get_byte(&s->stream_ptr); y = bytestream2_get_byte(&s->stream_ptr);
ff_dlog(s->avctx, "motion bytes = %d, %d\n", x, y); ff_tlog(s->avctx, "motion bytes = %d, %d\n", x, y);
return copy_from(s, s->second_last_frame, frame, x, y); return copy_from(s, s->second_last_frame, frame, x, y);
} }
...@@ -928,7 +928,7 @@ static void ipvideo_decode_opcodes(IpvideoContext *s, AVFrame *frame) ...@@ -928,7 +928,7 @@ static void ipvideo_decode_opcodes(IpvideoContext *s, AVFrame *frame)
for (x = 0; x < s->avctx->width; x += 8) { for (x = 0; x < s->avctx->width; x += 8) {
opcode = get_bits(&gb, 4); opcode = get_bits(&gb, 4);
ff_dlog(s->avctx, ff_tlog(s->avctx,
" block @ (%3d, %3d): encoding 0x%X, data ptr offset %d\n", " block @ (%3d, %3d): encoding 0x%X, data ptr offset %d\n",
x, y, opcode, bytestream2_tell(&s->stream_ptr)); x, y, opcode, bytestream2_tell(&s->stream_ptr));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment