[Bug 765194] New: caopengllayersink renders blurry content on HiDPI screens because contentsScale is ignored

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Apr 18 06:59:31 UTC 2016


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

            Bug ID: 765194
           Summary: caopengllayersink renders blurry content on HiDPI
                    screens because contentsScale is ignored
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Mac OS
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: hfink at toolsonair.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 326218
  --> https://bugzilla.gnome.org/attachment.cgi?id=326218&action=edit
gl/caopengllayer: Apply layer.contentsScale to viewport

On HiDPI screens, using caopengllayersink results in blurry content. The reason
for this is that we ignore the layer's contentsScale property. Quote from Apple
docs: 

"The contentsScale property of the CALayer class defines the mapping between
the coordinate space of the layer (measured in points) and the backing store
(measured in pixels). You can change this value as needed to indicate to Core
Animation that the bitmap of the backing layer needs to be bigger or smaller."

Attached is (1) a patch that adds the contentScale to be respected in the
layer's OpenGL viewport dimensions, and (2) a small bugfix that prevents the
caopengllayersink to unnecessarily reset its viewport for each frame that I
discovered while working on the first patch.

-- 
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