mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
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:
parent
44b5a2a85c
commit
643499378c
1 changed files with 6 additions and 2 deletions
|
@ -259,7 +259,11 @@ theora_enc_chain (GstPad * pad, GstData * data)
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("video/x-theora", NULL);
|
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);
|
gst_caps_free (caps);
|
||||||
|
|
||||||
/* first packet will get its own page automatically */
|
/* first packet will get its own page automatically */
|
||||||
|
@ -364,7 +368,7 @@ theora_enc_get_property (GObject * object, guint prop_id,
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case ARG_BITRATE:
|
case ARG_BITRATE:
|
||||||
g_value_set_int (value, enc->video_bitrate);
|
g_value_set_int (value, enc->video_bitrate / 1000);
|
||||||
break;
|
break;
|
||||||
case ARG_QUALITY:
|
case ARG_QUALITY:
|
||||||
g_value_set_int (value, enc->video_quality);
|
g_value_set_int (value, enc->video_quality);
|
||||||
|
|
Loading…
Reference in a new issue