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
2020-10-05Move sequencer sources from blenkernelRichard Antalik
This is first step of refactoring task T77580. Next step will be breaking up files into smaller ones. Reviewed By: sergey, brecht Differential Revision: https://developer.blender.org/D8492
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-08-01Cleanup: use term init instead of initialize/initialiseCampbell Barton
The abbreviation 'init' is brief, unambiguous and already used in thousands of places, also initialize is often accidentally written with British spelling.
2020-07-13Cleanup: quiet warnings by adding const in some placesJacques Lucke
The warnings were introduced in rB725973485a909c2b732c5.
2020-07-13Clang Tidy: enable readability-non-const-parameter warningJacques Lucke
Clang Tidy reported a couple of false positives. I disabled those `NOLINTNEXTLINE`. Differential Revision: https://developer.blender.org/D8199
2020-06-18Cleanup: doxy sections for walk/fly operatorsCampbell Barton
2020-06-16Cleanup: doxy sections for camera, collections, text & seqmodifierCampbell Barton
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2019-11-11Fix T71489: Video editor crashDalai Felinto
Bug introduced on rBb77da65e8c4d. Differential Revision: https://developer.blender.org/D6223
2019-10-15Fix T68700: Incorrect 'absolute' timing of animated masks in the VideoPhilipp Oeser
Sequence Editor Code in 'seq_render_mask' will effectively do BKE_mask_evaluate(mask_temp, mask->sfra + (cfra - fra_offset), true) where 'fra_offset' is zero for absolute and seq->start for relative. If we really want the scene's current frame (as advertised) if Mask Time is set to Absolute (effectively ignoring the Mask Settings start/end) we need to change the fra_offset from zero to mask->sfra. Also BKE_animsys_evaluate_animdata should take mask->sfra into account as well (otherwise mask animation [points] and other animation [e.g. opacity] will run out of sync) Reviewers: campbellbarton, ISS Maniphest Tasks: T68700 Differential Revision: https://developer.blender.org/D5495
2019-08-06Cleanup: use BKE_ prefix for BKE_colortools.hCampbell Barton
2019-08-02BrightContrast not working correctly with negative contrastPhilipp Oeser
followup to rB8dd95abb2ff9 (which fixed this for the Compositor node), turns out this was also wrong for the VSE modifier and in vertex color operator. - also adjust min/max for VSE modifier - also guard against division by zero Reviewers: brecht Maniphest Tasks: T67808 Differential Revision: https://developer.blender.org/D5398
2019-04-22Cleanup: style, use braces for blenkernelCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
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-16Cleanup: trailing commasCampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
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.
2018-10-19Partial revert '#if 0' cleanupCampbell Barton
Partially revert 41216d5ad4c722e2ad9f15c968af454fc7566d5e Some of this code had comments to be left as is for readability, or comment the code should be kept. Other functions were only for debugging.
2018-10-18Cleanup: Remove more #if 0 blocksJacques Lucke
Continuation of https://developer.blender.org/D3802 Reviewers: brecht Differential Revision: https://developer.blender.org/D3808
2018-05-07Cleanup: rename char/float conversion functionsCampbell Barton
- FTOCHAR -> unit_float_to_uchar_clamp - F3TOCHAR3 -> unit_float_to_uchar_clamp_v3 (swap args) - F4TOCHAR4 -> unit_float_to_uchar_clamp_v4 (swap args) - FTOUSHORT -> unit_float_to_ushort_clamp - USHORTTOUCHAR -> unit_ushort_to_uchar
2017-05-19Fix T51556: Sequencer - White Balance Modifier - Masking is not honoredSergey Sharybin
2017-01-16Cleanup/refactor: Add new BLI_string_util.Bastien Montagne
Things like `BLI_uniquename` had nothing, but really nothing to do in BLI_path_util files! Also, got rid of length limitation in `BLI_uniquename_cb`, we can use alloca here to avoid overhead of malloc while keeping free size (within reasonable limits of course).
2016-02-23Fix white balance sequencer modifierCampbell Barton
- division often visibly clipped channels. - division by zero caused NAN pixel values.
2016-02-15Fix white balance, was doing unnecessary linear conversionsCampbell Barton
This made byte & float images behave differently, where other modifiers remain the same. Also remove scene from the modifier (should have been passed as arg but no longer needed).
2016-01-25Sequencer: Add option to use absolute mask animation timeSergey Sharybin
This is handy for cases when mask is created on top of the edit and used for tasks like color grading and other enhancement. That was the main purpose of the masks which was totally broken in 6786ef6. Now it's possible to have masks created as both a part of input movie roto process (which then better be re-mapped to the strip timing) and as a grading tool (which should be using scene timing for the animation). Thanks artists from the Nieve for screaming about such a broken case.
2016-01-24Cleanup: styleCampbell Barton
2016-01-19Sequencer: Implement Tone Map strip modifierSergey Sharybin
Behaves same exact way as compositor node, but could be applied in the sequencer and used as a grading tool. Requested by the Nieve project artists.
2016-01-11Fix error in white-balance w/ float bufferCampbell Barton
2015-12-31Fix T47094: Crash w/ sequencer white-balanceCampbell Barton
2015-12-28Cleanup: style, indentationCampbell Barton
2015-12-28White Balance modifier for the VSEThomas Beck
This snippet creates a white balance modifier for the video sequence editor. It is useful for everyone who likes to set a new white point in the video source (easily via the eyedropper). Just select a point in the source file where you know that it should be white. The algorithm will then shift the colors towards your new white point. See attached the image for a quick demo. {F270576} Reviewers: psy-fi Reviewed By: psy-fi Subscribers: Blendify Projects: #bf_blender Differential Revision: https://developer.blender.org/D1698
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-03-30Cleanup: use const for typeinfoCampbell Barton
2015-03-20Fix T43986: VSE Mask Modifier don't move with video-Clip.Bastien Montagne
Now mask animation is offset to start of strip, instead of staying at frame 1! Warning: this may break existing files, in case some would be using (hacking around!) current bad behavior...
2015-03-18Fix for crash adding mask modifierCampbell Barton
2014-04-26Code cleanup: use 'const' for arrays (blenkernel)Campbell Barton
2014-03-20Code cleanup: use true/false in sequencer functionsSergey Sharybin
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell 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-05-08Mask modifier for sequencesSergey Sharybin
This modifier uses a mask set in the modifier settings and multiplies strip by it. Alpha channel will also be multiplied by mask, which makes it easy to mask some objects on footage and alpha-over them in sequencer. Actually, this modifier sets alpha for byte strips directly (since byte is always straight alpha) and multiplies float buffer by mask (flaots are premulled) so in both cases masked strip could be easy alpha-overed without any artifacts. It uses own structure with only SequenceModifierData property in to preserve both forward and backwards compatibilities (using new structure ensures modifier will be ignored on load in older blenders, the same happens for mesh modifiers actually). Request from Pablo Vazquez.
2013-04-13code cleanup: use `const char` for args and replace wm_keyconfig_list_find() ↵Campbell Barton
-> BLI_findstring()
2013-03-25More new data names translation (most cases should be covered now).Bastien Montagne
Also done a few cleanup here and there...
2013-02-27Fix #34439: Strip modifier - Mask multiply failureSergey Sharybin
2013-02-04style cleanup: spaces -> tabsCampbell Barton
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-11-30Fix #33357: Strip modificator Bright/Contrast doesn't work correct for byte ↵Sergey Sharybin
images
2012-11-09style cleanup: indentationCampbell 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-15quiet -Wmissing-prototypes warnings, and enable this warning by default for ↵Campbell Barton
C with gcc. helps for finding unused functions and making functions static, also did some minor code cleanup.