[Bug 770030] New: [PATCH] avfvideosrc: account for retina displays when capturing screens

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Aug 17 11:29:21 UTC 2016


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

            Bug ID: 770030
           Summary: [PATCH] avfvideosrc: account for retina displays when
                    capturing screens
    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: fzwoch at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 333486
  --> https://bugzilla.gnome.org/attachment.cgi?id=333486&action=edit
fixes retina screen support

This patch supports "retina" (high DPI) displays for screen capture. On
"retina" displays width and height reported by CGDisplayBounds are not the
correct values pixel wise for the captured image.

Instead the correct ones can be calculated by taking the "backingScalingFactor"
into account from the screen being captured.

Without this patch the element will capture only capture the top left quarter
of the display. That is because current retina displays have a
backingScalingFactor of 2.0. So instead of 1920*2x1200*2 only 1920x1200 is
being captured.

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