[Bug 756211] New: Porting gst_video_sink_center_rect to gst_util_uint64_scale_int

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Oct 7 16:13:33 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=756211

            Bug ID: 756211
           Summary: Porting gst_video_sink_center_rect to
                    gst_util_uint64_scale_int
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: philipp-dev at knechtges.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

So far, gst_video_sink_center_rect had only a few fixed points. More
specifically,
the returned destination rectangle was equal to the input rectangle if and only
if
the src and dst scaling ratios were identical. The current commit changes the
implementation in the way that for every dst height there exists a
corresponding
width, such that the resulting rectangle constitutes a fixed point.
Furthermore, this rectangle has an aspect ratio that deviates
at most one pixel from a rectangle with the "true" source aspect ratio.

One advantage of this change is that gstreamer applications may use the
fixed points in order to strip black margins around videos.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list