Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Kdenlive Kdenlive
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 452
    • Issues 452
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MultimediaMultimedia
  • KdenliveKdenlive
  • Issues
  • #1512
Closed
Open
Issue created Aug 30, 2022 by Farid Abdelnour@frdbr🎥Reporter

Fix alpha blending

Adding this issue to brainstorm a fix. Related to BUG: 422918. Apply fix to qtblend maybe?

According to Aurélien Pierre from Darktable: "You can't do alpha blending properly in 8 bits uint because gamma needs to be decoded for alpha to mean occlusion as in the Porter & Duff paper. The consequence is most of the transitions are pretty ugly and ill-blended."

https://t.me/kdenlive/57812

More info about alpha compositing: https://en.wikipedia.org/wiki/Alpha_compositing#Gamma_correction

Possible solution https://t.me/kdenlive_dev/12877:

  1. step one would be to use at least float16
  2. then undo gamma for every RGB
  3. then compose, then redo gamma on RGB
  4. also it composes in YUV, which is its own problem

Issue reported upstream: https://github.com/mltframework/mlt/issues/864

Edited Jan 27, 2023 by Farid Abdelnour
Assignee
Assign to
Time tracking