16732def37
Cleanup: Clang-Tidy modernize-use-nullptr
...
Replace `NULL` with `nullptr` in C++ code.
No functional changes.
2020-11-06 18:08:25 +01:00
190170d4cc
Cleanup: Clang-Tidy, readability-redundant-member-init
2020-11-06 11:54:53 +01:00
f453ee7d3a
Cleanup: Compositor, Clang-Tidy else-after-return fixes
...
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/compositor` module.
No functional changes.
2020-08-07 13:38:06 +02:00
9d412a92f5
Cleanup: incorrect spelling of 'manhattan'
2020-07-28 22:06:44 +10:00
3302fbaeb1
Cleanup: style, use braces for compositor
2019-04-23 11:22:25 +10:00
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
3316853323
Cleanup: conform headers to have license first
...
Also remove doxy comments for licenses and add missing GPL header.
2019-02-18 08:22:11 +11:00
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
d7f55c4ff5
Cleanup: comment block tabs
2018-11-14 17:10:56 +11:00
b372766816
Cleanup: trailing newlines
2018-06-29 09:23:51 +02:00
a262ea8c47
Cleanup: trailing space for compositor
2018-06-17 17:05:29 +02:00
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
2ada3512a2
Compositor: Code cleanup, prepare for strict C++ flags
2015-03-27 18:23:31 +05:00
6d78936c43
cleanup: style
2015-01-24 01:59:09 +11:00
35d3b6316b
D627: Memory usage optimization for the compositor.
...
The compostor used a fixed size of 4 floats to hold pixel data. this
patch will select size of a pixel based on its type.
It uses 1 float for Value, 3 float for vector and 4 floats for color
data types.
When benchmarking on shots (opening shot of caminandes) we get a
reduction of memory of 30% and a tiny speedup as less data
transformations needs to take place (but these are negligable.
More information of the patch can be found on
https://developer.blender.org/D627 and
http://wiki.blender.org/index.php/Dev:Ref/Proposals/Compositor2014_p1.1_TD
Developers: jbakker & mdewanchand
Thanks for Sergey for his indept review.
2015-01-19 18:17:50 +01:00
52296b941e
code cleanup: remove duplicate assignments
2013-10-14 07:15:59 +00:00
c6b3e0f8e4
style cleanup
2013-02-14 23:49:30 +00:00
f70d2c65d8
rename api functions...
...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-23 13:28:22 +00:00
45a0287f45
change I made gave a little nicer bleeding direction for inpaint but introduced dithering artifact.
2012-08-23 06:27:12 +00:00
3bc16fd60d
compositor: replace C++ new/delete with guardedalloc.
2012-08-16 12:32:48 +00:00
883e9df1cc
fix for bug reading past the buffer bounds for the inpaint node.
2012-08-16 12:13:01 +00:00
61eacb534e
inpaint node now blend inpaint pixels with existing alpha, this makes soft alpha blends inpaint look nicer.
...
also dont assign 1.0 alpha for parts of the image not inpaint'ed, this way you can maintain some alpha in the image.
2012-08-12 17:31:42 +00:00
b2fdb3f50e
avoid divide by zero for the inpaint node.
2012-08-12 17:10:56 +00:00
94a3945cf9
code cleanup: compositor - define size for executePixel function output float array
2012-08-10 14:07:24 +00:00
8ae89f4942
speedup to inpaint node in my tests was about ~30% for an optimized build.
...
also replace MIN/MAX2 with inline functions in transform.
2012-08-07 09:20:30 +00:00
2b8ac9bc61
inpaint node from tomato branch by Peter Schlaile
...
http://en.wikipedia.org/wiki/Inpainting
2012-08-06 13:45:11 +00:00