From 3290562f01c7a7a84d006867f4d5d2bb85938905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= Date: Thu, 1 Nov 2007 00:25:09 +0100 Subject: Fix zooming 16:9 frames and increase verbosity for debugging. In H.264 there are a couple of aspect ratios which can be thought of as beeing 16:9. The easiest way is to consider all non 4:3 ratios as beeing 16:9 and apply the zoom factors for 16:9 to such frames. Reporting buffer usage is intended to detect replay issues on slow machines. --- src/vdr/input_vdr.c | 2 +- src/vdr/post_vdr_video.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/vdr/input_vdr.c b/src/vdr/input_vdr.c index 2b68817f9..ce0b0df17 100644 --- a/src/vdr/input_vdr.c +++ b/src/vdr/input_vdr.c @@ -289,7 +289,7 @@ fprintf(stderr, "ratio: %d\n", ratio); xine_set_param(this->stream, XINE_PARAM_VO_ZOOM_X, this->image4_3_zoom_x); xine_set_param(this->stream, XINE_PARAM_VO_ZOOM_Y, this->image4_3_zoom_y); } - else if (17777 <= ratio && ratio <= 17779) + else /* if (17777 <= ratio && ratio <= 17779) */ { xine_set_param(this->stream, XINE_PARAM_VO_ZOOM_X, this->image16_9_zoom_x); xine_set_param(this->stream, XINE_PARAM_VO_ZOOM_Y, this->image16_9_zoom_y); diff --git a/src/vdr/post_vdr_video.c b/src/vdr/post_vdr_video.c index 52bef43b6..efb05d0dc 100644 --- a/src/vdr/post_vdr_video.c +++ b/src/vdr/post_vdr_video.c @@ -458,6 +458,13 @@ static int vdr_video_draw(vo_frame_t *frame, xine_stream_t *stream) frame->next->pts = 0; } */ + { + int a = 0, b = 0, c = 0, d = 0; + if (stream) + _x_query_buffer_usage(stream, &a, &b, &c, &d); + fprintf(stderr, "buffer usage: %3d, %2d, %2d, %2d, %p\n", a, b, c, d, stream); + } + if (!this->enabled || frame->bad_frame || (frame->format != XINE_IMGFMT_YUY2 -- cgit v1.2.3