[Webkit-unassigned] [Bug 102161] New: WebGL: Avoid unnecessary memory copy or conversion in texImage2D and texSubImage2D for HTMLVideoElement

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 13 17:59:07 PST 2012


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

           Summary: WebGL: Avoid unnecessary memory copy or conversion in
                    texImage2D and texSubImage2D for HTMLVideoElement
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebGL
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jun.a.jiang at intel.com


In texImage2D(..., HTMLVideoElement*, ...) and texSubImage2D(...,HTMLVideoElement*, ...), there are several memory copy or conversion involved. The data path involves following transforms:
1. Paint Video data(YUV format) to ImageBuffer(RGBA or BGRA format) in m_videoCache.
2. Copy Image from ImageBuffer in m_videoCache with BackingStore copied.
3. extract the data from Image returned by 2) to a vector. There are two steps involved:
   3.1. unpack the data from Image to an intermediate format.
   3.2  pack the data in intermediate format to the destination format according to the format and alphaOp.
4. pass the extracted data to GL through gltexImage2D(...) or gltexSubImage2D(...).

There are several cases in steps 2-4 that we can avoid memory copy or conversions by taking account of alpha value of Video and GL extension.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list