From d1a56c2cb2f538a7f541d0128e942c7310450541 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Thu, 26 Jan 2006 19:17:38 +0000 Subject: [PATCH] sys/: Handle some more cases of pixel aspect ratio. Original commit message from CVS: 2006-01-26 Julien MOUTTE * sys/ximage/ximagesink.c: (gst_ximagesink_calculate_pixel_aspect_ratio): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_calculate_pixel_aspect_ratio): Handle some more cases of pixel aspect ratio. --- ChangeLog | 8 ++++++++ sys/ximage/ximagesink.c | 5 ++++- sys/xvimage/xvimagesink.c | 5 ++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 40c887ab6b..73bb54e9e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-01-26 Julien MOUTTE + + * sys/ximage/ximagesink.c: + (gst_ximagesink_calculate_pixel_aspect_ratio): + * sys/xvimage/xvimagesink.c: + (gst_xvimagesink_calculate_pixel_aspect_ratio): Handle some + more cases of pixel aspect ratio. + 2006-01-26 Edward Hervey * gst/playback/gstdecodebin.c: (pad_probe): diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index f0be51c3f0..3fa3be2940 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -925,7 +925,10 @@ gst_ximagesink_calculate_pixel_aspect_ratio (GstXContext * xcontext) {1, 1}, /* regular screen */ {16, 15}, /* PAL TV */ {11, 10}, /* 525 line Rec.601 video */ - {54, 59} /* 625 line Rec.601 video */ + {54, 59}, /* 625 line Rec.601 video */ + {64, 45}, /* 1280x1024 on 16:9 display */ + {5, 3}, /* 1280x1024 on 4:3 display */ + {4, 3} /* 800x600 on 16:9 display */ }; gint i; gint index; diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index b884849cd0..ba88508052 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -1184,7 +1184,10 @@ gst_xvimagesink_calculate_pixel_aspect_ratio (GstXContext * xcontext) {1, 1}, /* regular screen */ {16, 15}, /* PAL TV */ {11, 10}, /* 525 line Rec.601 video */ - {54, 59} /* 625 line Rec.601 video */ + {54, 59}, /* 625 line Rec.601 video */ + {64, 45}, /* 1280x1024 on 16:9 display */ + {5, 3}, /* 1280x1024 on 4:3 display */ + {4, 3} /* 800x600 on 16:9 display */ }; gint i; gint index; -- 2.34.1