ext/gdk_pixbuf/: Add new pixbufscale element to scale RGB video using gdk_pixbuf, because gdk_pixbuf does BILINEAR an...

Original commit message from CVS:
* ext/gdk_pixbuf/Makefile.am:
* ext/gdk_pixbuf/gstgdkpixbuf.c: (plugin_init):
* ext/gdk_pixbuf/gstgdkpixbuf.h:
Add new pixbufscale element to scale RGB video
using gdk_pixbuf, because gdk_pixbuf does BILINEAR
and HYPER interpolation correctly.
* ext/theora/theoraenc.c: (theora_enc_chain),
Discard buffer and return if explicit caps could not be set
(theora_enc_get_property):
Make _get return kbps for the bitrate consistent with
the _set function.
This commit is contained in:
Jan Schmidt 2004-05-15 12:09:11 +00:00
parent 44b5a2a85c
commit 643499378c

View file

@ -259,7 +259,11 @@ theora_enc_chain (GstPad * pad, GstData * data)
GstCaps *caps;
caps = gst_caps_new_simple ("video/x-theora", NULL);
gst_pad_set_explicit_caps (enc->srcpad, caps);
if (!gst_pad_set_explicit_caps (enc->srcpad, caps)) {
gst_caps_free (caps);
gst_data_unref (data);
return;
}
gst_caps_free (caps);
/* first packet will get its own page automatically */
@ -364,7 +368,7 @@ theora_enc_get_property (GObject * object, guint prop_id,
switch (prop_id) {
case ARG_BITRATE:
g_value_set_int (value, enc->video_bitrate);
g_value_set_int (value, enc->video_bitrate / 1000);
break;
case ARG_QUALITY:
g_value_set_int (value, enc->video_quality);