summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-07-08 17:40:09 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-07-08 17:40:09 +0000
commit157e821a37a5ef35f763101f0f78cc6d2e9995d6 (patch)
treeb86e52724da4cc392e1e68ec07c4e3bde09d5351 /ext
parent56c066d6190859424224ee68407ac5a86f34387d (diff)
downloadgst-plugins-bad-157e821a37a5ef35f763101f0f78cc6d2e9995d6.tar.gz
gst-plugins-bad-157e821a37a5ef35f763101f0f78cc6d2e9995d6.tar.bz2
gst-plugins-bad-157e821a37a5ef35f763101f0f78cc6d2e9995d6.zip
Implement mpeg-delimited framerate lists instead of (too wide) ranges
Original commit message from CVS: Implement mpeg-delimited framerate lists instead of (too wide) ranges
Diffstat (limited to 'ext')
-rw-r--r--ext/libfame/gstfamedec.c18
-rw-r--r--ext/libfame/gstlibfame.c18
2 files changed, 30 insertions, 6 deletions
diff --git a/ext/libfame/gstfamedec.c b/ext/libfame/gstfamedec.c
index 3cfa2869..20bcc79b 100644
--- a/ext/libfame/gstfamedec.c
+++ b/ext/libfame/gstfamedec.c
@@ -67,11 +67,23 @@ GST_PAD_TEMPLATE_FACTORY (sink_template_factory,
"sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
- gst_caps_new (
+ GST_CAPS_NEW (
"famedec_sink_caps",
"video/x-raw-yuv",
- GST_VIDEO_YUV_PAD_TEMPLATE_PROPS (
- GST_PROPS_FOURCC (GST_MAKE_FOURCC ('I','4','2','0')))
+ "format",
+ GST_PROPS_FOURCC (GST_MAKE_FOURCC ('I','4','2','0')),
+ "width", GST_PROPS_INT_RANGE (16, 4096),
+ "height", GST_PROPS_INT_RANGE (16, 4096),
+ "framerate", GST_PROPS_LIST (
+ GST_PROPS_FLOAT (24/1.001),
+ GST_PROPS_FLOAT (24.),
+ GST_PROPS_FLOAT (25.),
+ GST_PROPS_FLOAT (30/1.001),
+ GST_PROPS_FLOAT (30.),
+ GST_PROPS_FLOAT (50.),
+ GST_PROPS_FLOAT (60/1.001),
+ GST_PROPS_FLOAT (60.)
+ )
)
)
diff --git a/ext/libfame/gstlibfame.c b/ext/libfame/gstlibfame.c
index 5d7be473..6c5f1015 100644
--- a/ext/libfame/gstlibfame.c
+++ b/ext/libfame/gstlibfame.c
@@ -67,11 +67,23 @@ GST_PAD_TEMPLATE_FACTORY (sink_template_factory,
"sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
- gst_caps_new (
+ GST_CAPS_NEW (
"fameenc_sink_caps",
"video/x-raw-yuv",
- GST_VIDEO_YUV_PAD_TEMPLATE_PROPS (
- GST_PROPS_FOURCC (GST_MAKE_FOURCC ('I','4','2','0')))
+ "format",
+ GST_PROPS_FOURCC (GST_MAKE_FOURCC ('I','4','2','0')),
+ "width", GST_PROPS_INT_RANGE (16, 4096),
+ "height", GST_PROPS_INT_RANGE (16, 4096),
+ "framerate", GST_PROPS_LIST (
+ GST_PROPS_FLOAT (24/1.001),
+ GST_PROPS_FLOAT (24.),
+ GST_PROPS_FLOAT (25.),
+ GST_PROPS_FLOAT (30/1.001),
+ GST_PROPS_FLOAT (30.),
+ GST_PROPS_FLOAT (50.),
+ GST_PROPS_FLOAT (60/1.001),
+ GST_PROPS_FLOAT (60.)
+ )
)
)