summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinhard Nißl <rnissl@gmx.de>2007-11-01 00:25:09 +0100
committerReinhard Nißl <rnissl@gmx.de>2007-11-01 00:25:09 +0100
commit3290562f01c7a7a84d006867f4d5d2bb85938905 (patch)
tree8df97aced6058e7d945fb63427fcded5c150514e /src
parent753da2c501c6840ab50deaae1dd169f3feaf8f4d (diff)
downloadxine-lib-3290562f01c7a7a84d006867f4d5d2bb85938905.tar.gz
xine-lib-3290562f01c7a7a84d006867f4d5d2bb85938905.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/vdr/input_vdr.c2
-rw-r--r--src/vdr/post_vdr_video.c7
2 files changed, 8 insertions, 1 deletions
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