After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732415 - video: Add videoconvert and videoscale API
video: Add videoconvert and videoscale API
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal enhancement
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 699181 732464 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-06-29 10:27 UTC by Sebastian Dröge (slomo)
Modified: 2015-08-28 18:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2014-06-29 10:27:35 UTC
+++ This bug was initially created as a clone of Bug #728443 +++

Patches in the other bug, these probably need to be cleaned up a bit like hiding implementation details (e.g. gstcms.[ch] and the struct content) but should generally be fine. See last comment there.

For videoscale a similar API already exists inside the plugin and can also be moved while we're at it.
Comment 1 Sebastian Dröge (slomo) 2014-06-30 09:21:25 UTC
*** Bug 732464 has been marked as a duplicate of this bug. ***
Comment 2 Wim Taymans 2014-06-30 09:29:16 UTC
I think we should try to make a generic API like this

GstVideoConvert * gst_video_convert_new (GstVideoInfo *in, GstVideoInfo *out, GstStructure *options);

gst_video_convert_frame (GstVideoConvert * convert, GstVideoFrame *in, GstVideoFrame *out);

gst_video_convert_free (GstVideoConvert * convert);

We would have to implement scaling and conversion in two steps with the existing code but we can combine them in one step later on if we want. But the API should be enough to get all the hard bits such as interlacing, chroma, colorspaces etc handled.
Comment 3 Wim Taymans 2014-06-30 09:31:25 UTC
Ah, possibly something to check if we can do in-place conversion for the given converter (and maybe GstVideoFrames).
Comment 4 Sebastian Dröge (slomo) 2014-09-23 20:22:00 UTC
*** Bug 699181 has been marked as a duplicate of this bug. ***
Comment 5 Sebastian Dröge (slomo) 2014-09-23 20:23:04 UTC
Vincent, would you like to update your patches? Or Wim, would you like to work on this?

I think this should be done for 1.6, having this code duplicated in different places is just not good.
Comment 6 Wim Taymans 2014-09-24 07:30:44 UTC
I want to take this before 1.6.
Comment 7 Wim Taymans 2014-09-24 14:01:42 UTC
commit b2fd20c41677e93d1b41f435738cfdeaf08b304f
Author: Wim Taymans <wtaymans@redhat.com>
Date:   Wed Sep 24 15:49:42 2014 +0200

    video: move videoconvert code to video library
    
    Move the conversion code used in videoconvert to the video library
    and expose a simple but generic API to do arbitrary conversion. It can
    currently do colorspace conversion but the plan is to add videoscale to
    it as well.
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=732415
Comment 8 Wim Taymans 2014-09-24 14:11:06 UTC
mh.. I think the proper spelling is converter, not convertor. Will need to fix.
Comment 9 Edward Hervey 2014-10-20 10:10:04 UTC
is this done ?
Comment 10 Sebastian Dröge (slomo) 2014-10-20 10:10:53 UTC
not completely, the scaling is not merged yet
Comment 11 Wim Taymans 2014-10-20 14:53:45 UTC
getting there, code is here: http://cgit.freedesktop.org/~wtay/gst-plugins-base/log/?h=video-scaler
Comment 12 Wim Taymans 2015-01-27 10:00:29 UTC
Should be done now.