Skip to content

Bug: Issue with Watermark Image Blending #582

@oscaruitenbroek

Description

@oscaruitenbroek

Problem/Opportunity

A problem is reported on blending a .png watermark image on top of video playback we are not able to get the blending output as we expect. Following are the details of the issue:

Details:

  1. Our Watermark system support 2 types of Graphics blending methods.

        a) straight-alpha 
    
        b) pre-multiplied alpha. 
    
  2. A Translucent grey scale chessboard like .png image is drawn on top of the Video.

  3. We are on Lightning 2.8. With the understanding that WebGL defaults to Pe-Multiplied alpha we had tried blending the Watermark image.

  4. But the outcome of the blending was far from expected.

  5. To check if the issue is global to the STB, we tried doing similar blending on WPE Browser as HTML apps . Here the outcome was quite Similar to expectation.

  6. We tried both 2D Canvas and WebGL approach, both the outputs were off the expectation.

Snippet of the lightning config

"appSettings": {
"stage": {
"clearColor": "0x00000000",
"useImageWorker": true
},

Steps to reproduce

No response

Expected Behavior

Image

Actual Behavior

Image

Notes (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions