GNOME Bugzilla – Bug 332557
FFmpeg video scale port to 0.10
Last modified: 2006-03-01 15:08:33 UTC
The attached patch ports ffmpeg video scale to gst-0.10. Some code is taken from videoscale element. The actual work was done by Martin Zlomek (added to copyright notice)
Created attachment 60112 [details] [review] FFvideoscale port
No major objections, seems to work. What seems weird is that it's just doing straightforward nearest-neighbour rescaling. Isn't there other modes ? If not we already have videoscale in -base.
Hello, the source code of the rescaler states that it does "High quality image resampling with polyphase filters" I have done two tests by gst-launch videotestsrc ! video/x-raw-yuv,width=320,height=200 ! ffvideoscale ! video/x-raw-yuv,width=160,height=100 ! ffmpegcolorspace ! ximagesink and gst-launch videotestsrc ! video/x-raw-yuv,width=320,height=200 ! ffvideoscale ! video/x-raw-yuv,width=640,height=400 ! ffmpegcolorspace ! ximagesink In both cases, the picture is interpolated. Why do you think that your setup does just nearest-neighbour rescaling?
Commited in CVS. Thanks, 2006-03-01 Michal Benes <michal dot benes at xeris dot cz> Reviewed by : Edward Hervey <edward@fluendo.com> * ext/ffmpeg/Makefile.am: * ext/ffmpeg/gstffmpeg.c: (plugin_init): * ext/ffmpeg/gstffmpegscale.c: (gst_ffmpegscale_base_init), (gst_ffmpegscale_class_init), (gst_ffmpegscale_init), (gst_ffmpegscale_finalize), (gst_ffmpegscale_transform_caps), (gst_ffmpegscale_fixate_caps), (gst_ffmpegscale_get_unit_size), (gst_ffmpegscale_set_caps), (gst_ffmpegscale_transform), (gst_ffmpegscale_handle_src_event), (gst_ffmpegscale_register): Port of ffvideoscale to 0.10. Closes #332557