[cairo-bugs] [Bug 10151] New: Add mediaLib support

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 1 23:15:01 PST 2007


http://bugs.freedesktop.org/show_bug.cgi?id=10151

           Summary: Add mediaLib support
           Product: cairo
           Version: 1.3.9
          Platform: SPARC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: brian.cameron at sun.com
         QAContact: cairo-bugs at cairographics.org


I wrote the attached patch that adds mediaLib support to cairo and makes a big
difference speeding up evince.  The following is some performance stats showing
percentage of time in various functions while starting up evince with a big
complicated pdf document and scrolling down about 50 pages.

before

15.19% fbCombineInU
10.30% fbFetchTransformed
 9.15% GfxImageColorMap::getRGBLine
 6.51% fbCombineOverU
 5.12% GfxDeviceGrayColorSpace::getRGBLine
 3.26% fbFetch_a8
 2.64% fbFetchPixel_x8r8g8b8
 2.62% fbCombineMaskU
 1.35% fbStore_a8 

after also now doing inline

16.82 fbFetchTransformed
 9.90 GfxImageColorMap
 6.97 GfxDeviceGrayColorSpace
 6.85 mlib_ImageBlend_ZERO_DA
 3.07 fbFetchPixel_x8r8g8b8
 2.23 fbFetch_a8
 1.67 mlib_VideoColorRGBint_to_BGRAint
 1.26 mlib_ImageBlend_ONE_OMDA
 0.06 mlib_ImageSetStruct
 0.05 mlib_ImageChannelExtract
 0.02 mlib_ImageBlend_SA_ZERO

I suspect that before the maintainers would accept this patch that they would
want the mediaLib functions to be separated more like the fbmmx.[ch] files. 
But before I do that extra work, I wanted to see if you would accept this
patch.

Note that I am also working on a GTK+ mediaLib integration patch which the GTK
maintainers say they will accept sometime soon.

  http://bugzilla.gnome.org/show_bug.cgi?id=344813

I reference this only because some of the discussion in that bug explains
answers to questions you may have about what mediaLib is and that it is
appropriate for integration.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list