mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 13:11:06 +00:00
add a ; and an example
Original commit message from CVS: add a ; and an example
This commit is contained in:
parent
6a80d3c4ea
commit
96b8d069e5
2 changed files with 17 additions and 3 deletions
|
@ -37,7 +37,7 @@ DirectFB PAL TV output:
|
||||||
|
|
||||||
4) playing an NTSC vob on PAL TV
|
4) playing an NTSC vob on PAL TV
|
||||||
|
|
||||||
NTSC VOB:
|
NTSC VOB (4/3):
|
||||||
- video size: 720x480
|
- video size: 720x480
|
||||||
- pixel aspect ratio: 8/9
|
- pixel aspect ratio: 8/9
|
||||||
|
|
||||||
|
@ -52,3 +52,13 @@ NTSC VOB:
|
||||||
|
|
||||||
--> 720 x ( 720 * 4 / 5) = 720 x 576
|
--> 720 x ( 720 * 4 / 5) = 720 x 576
|
||||||
|
|
||||||
|
|
||||||
|
5) other examples
|
||||||
|
- 720 x 480, 32/27 on a square display
|
||||||
|
-> intended DAR: DAR = 720/480 * 32/27 = 80/3 * 1/15 = 16/9
|
||||||
|
|
||||||
|
keeping w constant:
|
||||||
|
720/h * 1/1 = 16/9 -> h = 720/16 * 9 = 45 * 9 = 405
|
||||||
|
|
||||||
|
keeping h constant:
|
||||||
|
w/480 * 1/1 = 16/9 -> w = 480 * 16 / 9 = 160 / 3 * 16 = 853.33
|
||||||
|
|
|
@ -177,7 +177,10 @@ GST_START_TEST (test_watch)
|
||||||
|
|
||||||
gst_object_unref ((GstObject *) test_bus);
|
gst_object_unref ((GstObject *) test_bus);
|
||||||
}
|
}
|
||||||
GST_END_TEST static gint messages_seen = 0;
|
|
||||||
|
GST_END_TEST;
|
||||||
|
|
||||||
|
static gint messages_seen = 0;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
message_func (GstBus * bus, GstMessage * message, gpointer data)
|
message_func (GstBus * bus, GstMessage * message, gpointer data)
|
||||||
|
@ -224,7 +227,8 @@ GST_START_TEST (test_watch_with_poll)
|
||||||
|
|
||||||
gst_object_unref (test_bus);
|
gst_object_unref (test_bus);
|
||||||
}
|
}
|
||||||
GST_END_TEST Suite * gstbus_suite (void)
|
GST_END_TEST Suite *
|
||||||
|
gstbus_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("GstBus");
|
Suite *s = suite_create ("GstBus");
|
||||||
TCase *tc_chain = tcase_create ("stresstest");
|
TCase *tc_chain = tcase_create ("stresstest");
|
||||||
|
|
Loading…
Reference in a new issue