summaryrefslogtreecommitdiffstats
path: root/ext/libpng/gstpng.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-07-06 20:49:52 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-07-06 20:49:52 +0000
commit292fec2a0bd1f221a46ad69c5100995d04c01057 (patch)
tree658db299e0e03b2454ff840730569d79539e67c4 /ext/libpng/gstpng.c
parenta8183e9a3fa87cf4247c7df16207f440ea4069c0 (diff)
New mimetypes gone into effect today - this commit changes all old mimetypes over to the new mimetypes spec as descri...
Original commit message from CVS: New mimetypes gone into effect today - this commit changes all old mimetypes over to the new mimetypes spec as described in the previous commit's document. Note: some plugins will break, some pipelines will break, expect HEAD to be broken or at least not 100% working for a few days, but don't forget to report bugs
Diffstat (limited to 'ext/libpng/gstpng.c')
-rw-r--r--ext/libpng/gstpng.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/ext/libpng/gstpng.c b/ext/libpng/gstpng.c
index 5a5da081..f3ac003c 100644
--- a/ext/libpng/gstpng.c
+++ b/ext/libpng/gstpng.c
@@ -18,6 +18,7 @@
#include <string.h>
#include <gst/gst.h>
+#include <gst/video/video.h>
#include "gstpngenc.h"
@@ -26,7 +27,13 @@ extern GstElementDetails gst_pngenc_details;
static GstCaps*
png_caps_factory (void)
{
- return gst_caps_new ( "png_png", "video/png", NULL);
+ return gst_caps_new ( "png_png",
+ "video/x-png",
+ gst_props_new (
+ "width", GST_PROPS_INT_RANGE (16, 4096),
+ "height", GST_PROPS_INT_RANGE (16, 4096),
+ "framerate", GST_PROPS_FLOAT_RANGE (0, G_MAXFLOAT),
+ NULL));
}
@@ -34,17 +41,9 @@ static GstCaps*
raw_caps_factory (void)
{
return gst_caps_new ( "png_raw",
- "video/raw",
- gst_props_new (
- "format", GST_PROPS_FOURCC (GST_STR_FOURCC ("RGB ")),
- "bpp", GST_PROPS_INT (24),
- "red_mask", GST_PROPS_INT (0xff),
- "green_mask", GST_PROPS_INT (0xff00),
- "blue_mask", GST_PROPS_INT (0xff0000),
- "width", GST_PROPS_INT_RANGE (16, 4096),
- "height", GST_PROPS_INT_RANGE (16, 4096),
- NULL )
- );
+ "video/x-raw-rgb",
+ GST_VIDEO_RGB_PAD_TEMPLATE_PROPS_24
+ );
}
static gboolean