Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-09-24Cleanup: use float versions of functions when in/output are floatsCampbell Barton
2014-09-11Fix related to T41780, sequencer weirdness with alpha under effectAntony Riakiotakis
Fix alpha under equation according to porter-duff and user docs that state that effect should invert he order of channels and reduce to alpha over when factor is 1.0. BTW, we don't really expose any factor here...lost feature from 2.49?
2014-07-20Sequencer: Fix wrong blur result when one of the sizes is zeroSergey Sharybin
2014-07-20Early out from gaussian blur if both sizes are zeroSergey Sharybin
2014-07-19Sequencer: Add gaussian blur effectSergey Sharybin
Currently this gaussian blur implementation accumulates values in the square kernel rather that doing X direction and then Y direction because of the lack of using multiple-staged filters. Once we can we'll implement a way to apply filter as multiple stages we can optimize hell of a lot in here. Another thing we can do is to use SSE2 instructions here.
2014-06-14Replace sqrt with hypot for wipe-effect & transform codeCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-28Code cleanup: use sqrtf when input and output are floatCampbell Barton
2014-03-20Code cleanup: use true/false in sequencer functionsSergey Sharybin
2014-03-05Fix for negative gamma correction rounding to intCampbell Barton
2014-03-01Code cleanup: correct abs use and quiet warningsCampbell Barton
2014-03-01Fix for sequencer invalid rounding, double wipe at 0 angleCampbell Barton
2014-01-18Send sequencer render context as const pointer rather than as valueSergey Sharybin
No functional changes just creepy to send rather huge structure by value.
2013-12-03Cleanup: Internal degrees removal.Bastien Montagne
This patch changes most of the reamining degrees usage in internal code into radians. I let a few which I know off asside, for reasons explained below - and I'm not sure to have found out all of them. WARNING: this introduces forward incompatibility, which means files saved from this version won't open 100% correctly in previous versions (a few angle properties would use radians values as degrees...). Details: - Data: -- Lamp.spotsize: Game engine exposed this setting in degrees, to not break the API here I kept it as such (using getter/setter functions), still using radians internally. -- Mesh.smoothresh: Didn't touch to this one, as we will hopefully replace it completely by loop normals currently in dev. - Modifiers: -- EdgeSplitModifierData.split_angle, BevelModifierData.bevel_angle: Done. - Postprocessing: -- WipeVars.angle (sequencer's effect), NodeBokehImage.angle, NodeBoxMask.rotation, NodeEllipseMask.rotation: Done. - BGE: -- bConstraintActuator: Orientation type done (the minloc[0] & maxloc[0] cases). Did not touch to 'limit location' type, it can also limit rotation, but it exposes through RNA the same limit_min/limit_max, which hence can be either distance or angle values, depending on the mode. Will leave this to BGE team. -- bSoundActuator.cone_outer_angle_3d, bSoundActuator.cone_inner_angle_3d: Done (note I kept degrees in BGE itself, as it seems this is the expected value here...). -- bRadarSensor.angle: Done. Reviewers: brecht, campbellbarton, sergey, gaiaclary, dfelinto, moguri, jbakker, lukastoenne, howardt Reviewed By: brecht, campbellbarton, sergey, gaiaclary, moguri, jbakker, lukastoenne, howardt Thanks to all! Differential Revision: http://developer.blender.org/D59
2013-04-28warning cleanup: assignment to unused vars, r56359 changes how brush falloff ↵Campbell Barton
is used slightly but this isn't so important so just remove falloff adjustment.
2013-04-09Fixes for sequencer effectsSergey Sharybin
- Add and subtract effects will now affect on only RGB channels, and alpha of first input is used as an alpha for the result. Also solved creepyness with straight->premul->straight conversion in byte versions of add/subtract. - Solved issue with multiply modifier, which lead to white*white not being white (was off by 1.0/255) due to wrong optimization of division by 255 with shr by 8. According to Ton this issue goes back to 2000! This fixes #34811: Wrong result of add/subtract effects
2013-03-28code cleanup: python/pep8 and double-promotion warnings.Campbell Barton
2013-03-28Fix #34782: Video Editor - Substract after transform failsSergey Sharybin
Couple of precision issues here: - Interpolation was rounding trunkcating colors, and because of some precision issues value 254.999 became 254 leading to troubles later. Now color interpolaiton will do rounding to nearest int. - Subtract was setting channels to something negative which confused color management (especially negative alpha), Now subtract effect will clamp channels to 0 from bottom and also do some tricks to prevent small alpha which could also confuse color management.
2013-03-09code cleanup: favor braces when blocks have mixed brace use.Campbell Barton
2013-01-18Fix #33910: Wipe effect starts and stops to early with blur enabled.Sergey Sharybin
Made small tweaks which now limits blur width in a way it can not be wider than distance between frame boundary and wipe effect center. It eliminates weirdeness of how blur appears/disappears in cases effect fac is close to 0/1. Could be tweaked further but will require effect rewrite it seems.
2013-01-07style cleanupCampbell Barton
2012-12-31Removed byte glow effect from sequencer in favor of float one.Sergey Sharybin
Byte glow was disabled in previous commit and code is removed now in separate commit for easier revert if that'd be needed.
2012-12-31Alpha premul pipeline cleanupSergey Sharybin
This assumptions are now made: - Internally float buffers are always linear alpha-premul colors - Readers should worry about delivering float buffers with that assumptions. - There's an input image setting to say whether it's stored with straight/premul alpha on the disk. - Byte buffers are now assumed have straight alpha, readers should deliver straight alpha. Some implementation details: - Removed scene's color unpremultiply setting, which was very much confusing and was wrong for default settings. Now all renderers assumes to deliver premultiplied alpha. - IMB_buffer_byte_from_float will now linearize alpha when converting from buffer. - Sequencer's effects were changed to assume bytes have got straight alpha. Most of effects will work with bytes still, however for glow it was more tricky to avoid data loss, so there's a commented out glow implementation which converts byte buffer to floats first, operates on floats and returns bytes back. It's slower and not sure if it should actually be used -- who're using glow on alpha anyway? - Sequencer modifiers should also be working nice with straight bytes now. - GLSL preview will predivide float textures to make nice shading, shading with byte textures worked nice (GLSL was assuming straight alpha). - Blender Internal will set alpha=1 to the whole sky. The same happens in Cycles and there's no way to avoid this -- sky is neither straight nor premul and doesn't fit color pipeline well. - Straight alpha mode for render result was also eliminated. - Conversion to correct alpha need to be done before linearizing float buffer. - TIFF will now load and save files with proper alpha mode setting in file meta data header. - Remove Use Alpha from texture mapping and replaced with image datablock setting. Behaves much more predictable and clear from code point of view and solves possible regressions when non-premultiplied images were used as textures with ignoring alpha channel.
2012-12-11code cleanup: neareast -> nearestCampbell Barton
2012-11-21Fix #33252: VSE preview displays wrong color spaceSergey Sharybin
Early output was not setting image buffer float color space
2012-10-27style cleanupCampbell Barton
2012-10-23rename api functions...Campbell Barton
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-21style cleanup: trailing tabs & expand some non prefix tabs into spaces.Campbell Barton
2012-10-20style cleanupCampbell Barton
2012-10-04style cleanup: comment blocksCampbell Barton
2012-09-15Color Management, Stage 2: Switch color pipeline to use OpenColorIOSergey Sharybin
Replace old color pipeline which was supporting linear/sRGB color spaces only with OpenColorIO-based pipeline. This introduces two configurable color spaces: - Input color space for images and movie clips. This space is used to convert images/movies from color space in which file is saved to Blender's linear space (for float images, byte images are not internally converted, only input space is stored for such images and used later). This setting could be found in image/clip data block settings. - Display color space which defines space in which particular display is working. This settings could be found in scene's Color Management panel. When render result is being displayed on the screen, apart from converting image to display space, some additional conversions could happen. This conversions are: - View, which defines tone curve applying before display transformation. These are different ways to view the image on the same display device. For example it could be used to emulate film view on sRGB display. - Exposure affects on image exposure before tone map is applied. - Gamma is post-display gamma correction, could be used to match particular display gamma. - RGB curves are user-defined curves which are applying before display transformation, could be used for different purposes. All this settings by default are only applying on render result and does not affect on other images. If some particular image needs to be affected by this transformation, "View as Render" setting of image data block should be set to truth. Movie clips are always affected by all display transformations. This commit also introduces configurable color space in which sequencer is working. This setting could be found in scene's Color Management panel and it should be used if such stuff as grading needs to be done in color space different from sRGB (i.e. when Film view on sRGB display is use, using VD16 space as sequencer's internal space would make grading working in space which is close to the space using for display). Some technical notes: - Image buffer's float buffer is now always in linear space, even if it was created from 16bit byte images. - Space of byte buffer is stored in image buffer's rect_colorspace property. - Profile of image buffer was removed since it's not longer meaningful. - OpenGL and GLSL is supposed to always work in sRGB space. It is possible to support other spaces, but it's quite large project which isn't so much important. - Legacy Color Management option disabled is emulated by using None display. It could have some regressions, but there's no clear way to avoid them. - If OpenColorIO is disabled on build time, it should make blender behaving in the same way as previous release with color management enabled. More details could be found at this page (more details would be added soon): http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Color_Management -- Thanks to Xavier Thomas, Lukas Toene for initial work on OpenColorIO integration and to Brecht van Lommel for some further development and code/ usecase review!
2012-09-04code cleanup: move file string defines into BLI_path_utils.h, ↵Campbell Barton
BKE_utildefines is now unused but keep incase we want to add defines there later.
2012-08-26Sequencer: typo fixSergey Sharybin
2012-08-18Silencing compiler warningsJoshua Leung
2012-08-11Sequencer: support for masked color balanceSergey Sharybin
This implements option which could be used to color balance only specified area. Currently done by adding Mask input to Adjustment effect. Affects on color balance and multiply settings. Supporting masked saturation control is in the list, not supported in this commit. Also show value slider in the right of color wheel.
2012-08-10Fix infinite recursion when using adjustment strip placed to channel 1Sergey Sharybin
2012-08-08Sequencer: initial implementation of multithreaded effectsSergey Sharybin
Added a framework to run effects in several threads. Port most of effects to this new framework. Still some work to be done here (some effects are not so easy to port)
2012-08-08Code cleanup: use defines instead of magic constantsSergey Sharybin
2012-08-08Code cleanup: BKE_ prefix for public sequencer functionsSergey Sharybin
2012-08-08Code cleanup: remove redundant struct and some space cleanupSergey Sharybin
2012-08-08Style cleanup: white spaceSergey Sharybin
2012-07-17code cleanup: spellingCampbell Barton
2012-07-08style cleanupCampbell Barton
2012-06-07remove casts to short when allocating new imbufs.Campbell Barton
2012-06-07code cleanup: rename sequencer types to SEQ_TYPE_*** and use enums rather ↵Campbell Barton
then defines.
2012-05-29finish cleanup for pluginsCampbell Barton
2012-05-29Massive Code cleanup:Thomas Dinges
* Remove all code for Texture and Sequencer plugin system, this never worked in 2.5x / 2.6x and is therefore not needed anymore. * DNA structures are kept, all read/writefile code is gone.
2012-05-27style cleanupCampbell Barton
2012-05-27style cleanupCampbell Barton