Page MenuHome

Compositor: Full frame Levels node
ClosedPublic

Authored by Manuel Castilla (manzanilla) on Jun 29 2021, 11:17 PM.

Details

Summary

Adds full frame implementation to this node operations.
No functional changes.
No performance changes.

Diff Detail

Repository
rB Blender
Branch
cmp-node-levels (branched from master)
Build Status
Buildable 15911
Build 15911: arc lint + arc unit

Event Timeline

Manuel Castilla (manzanilla) requested review of this revision.Jun 29 2021, 11:17 PM
Manuel Castilla (manzanilla) created this revision.
Jeroen Bakker (jbakker) requested changes to this revision.Jul 5 2021, 8:57 AM
Jeroen Bakker (jbakker) added inline comments.
source/blender/compositor/intern/COM_MultiThreadedOperation.cc
18 ↗(On Diff #38929)

Better have a setter for clarity and remove the parameter from functions.

source/blender/compositor/operations/COM_CalculateMeanOperation.cc
198

We could add a join code path to remove the mutex. (every thread works on their own instance of PixelsSum and at the end it would join them together.
We should add that as a feature of the ExecutionSystem so it could be reused by other operations.

This revision now requires changes to proceed.Jul 5 2021, 8:57 AM
  • Merge branch 'master' into cmp-node-levels
  • After merge fix
  • Add execute_work overload with join function and use it to sum results
Manuel Castilla (manzanilla) marked an inline comment as done.Jul 12 2021, 6:07 PM

I've added a execution system setter for NodeOperation on master and it's merge now.

Jeroen Bakker (jbakker) requested changes to this revision.Jul 19 2021, 10:20 AM
Jeroen Bakker (jbakker) added inline comments.
source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cc
111

Normally a reduce function has 2 parameters of the same type. Here (two PixelsSum) one is const, the other one is writable.
Better to pass the total as parameter to the exeute_work to make sure that the reduce matches what is expected.

This revision now requires changes to proceed.Jul 19 2021, 10:20 AM
  • Implement reduce function as review said
  • Merge branch 'master' into cmp-node-levels
  • Use iterators
  • Avoid zero division
Manuel Castilla (manzanilla) marked an inline comment as done.Jul 20 2021, 11:32 PM
This revision is now accepted and ready to land.Jul 26 2021, 11:26 AM
This revision was automatically updated to reflect the committed changes.