[Webkit-unassigned] [Bug 172405] New: [CG] Use the SPI CGImageSourceGetTypeWithData() to get the typeIdentifierHint of an image

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 19 17:57:30 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=172405

            Bug ID: 172405
           Summary: [CG] Use the SPI CGImageSourceGetTypeWithData() to get
                    the typeIdentifierHint of an image
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com

I tried using CGImageSourceGetTypeWithURL() to get the typeIdentifierHint of an image. The typeIdentifierHint helps the CGImageSource choose the correct decoder from the beginning. This function works but it was very costly since it opens or loads the image file and read its header to guess its type. Opening and reading a local file takes many cycles to finish. Requesting the image resource through the network doubles the network traffic. Since we create the ImageDecoder when we first receive data from the network layer, we can use CGImageSourceGetTypeWithData() instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170520/891a88c1/attachment.html>


More information about the webkit-unassigned mailing list