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
2021-07-23Cleanup: code comments punctuation / spacingCampbell Barton
2021-07-18Fix T89868: Crash showing thumbnail of wide-aspect imageJesse Yurkovich
Scaling down images could create images with a width or height of zero. Clamp at 1 to prevent a crash, also add an assert to scaling functions. Ref D11956
2021-07-16Fix T70356: Scaling up 1x1 pixel image reads past buffer boundsCampbell Barton
Also resolve a crash when when displaying thumbnails, see T89868.
2020-10-10Cleanup: use C comments for descriptive textCampbell Barton
Follow our code style guide by using C-comments for text descriptions.
2020-09-30Cleanup: convert gforge task ID's to phabricator formatValentin
Cleanup old tracker task format to the new. e.g: [#34039] to T34039 Ref D8718
2020-09-04Cleanup: Clang-Tidy bugprone-incorrect-roundings fixesSybren A. Stüvel
Should cause no noticeable difference.
2020-08-08Cleanup: use array syntax for sizeof with fixed valuesCampbell Barton
Also order sizeof(..) first to promote other values to size_t.
2020-08-08Cleanup: remove redundant return parenthesisCampbell Barton
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2019-08-16Cleanup: spellingCampbell Barton
2019-04-23Cleanup: style, use braces for imbufCampbell Barton
2019-04-21Cleanup: comments (long lines) in imbufCampbell 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-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-11-14Cleanup: comment block tabsCampbell Barton
2018-06-17Cleanup: trailing space for imbuf moduleCampbell Barton
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
2018-05-07Cleanup: move unit char/short/float to functionsCampbell Barton
This caused GCC 8.1 to crash at build time, but was also not very nice use of macros.
2018-04-02Cleanup: remove redundant imbuf return valuesCampbell Barton
Some functions always returned the input argument which was never used. This made code read as if there might be a leak. Now return a boolean (true the imbuf is modified).
2016-01-19Fix T47203: Render Crash due to missing zbuf_float handling in IMB scaling.Bastien Montagne
2015-09-03ImBuf: Fix crash generating preview for really huge imageSergey Sharybin
In fact, any user of IMB_scalefastImBuf() is now robust against working with really hires images.
2015-02-23Move allocation of imbuf from array to allocimbuf.Antony Riakiotakis
Skip allocation of temporary imbuf
2015-02-23After discussion on irc change new function to only allocate from aAntony Riakiotakis
buffer only. scaling can be done separately
2015-02-23IMB library: Add function that scales an array of byte or float pixels.Antony Riakiotakis
Function just wraps the array in an imbuf and does regular imbuf scaling.
2014-11-29Cleanup: unused headersCampbell Barton
2014-08-18Correction to the mipmaps generationSergey Sharybin
Seem we've always were wrong with multiplying alpha by 255, other channels seems to be multiplied by 256 with the shift operations.
2014-08-13Fix out of bounds read when recalculating mipmaps, error reported byAntony Riakiotakis
address sanitizer. This was strangely only triggered when float buffers were used.
2014-08-11Fix T40744: MIP Map is generating strange noise in texture, Blender InternalSergey Sharybin
2014-07-30Fix T41241: VSE: cropping strips puts a transparent line through the image.Bastien Montagne
2014-04-27Code cleanup: const args and arraysCampbell Barton
2014-04-26Code cleanup: use 'const' for arrays (blenloader, gpu, imbuf, makesdna, ↵Campbell Barton
modifiers, nodes)
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-02-03Code cleanup: use bools where possibleCampbell Barton
2013-05-28move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)Campbell Barton
remove MEM_sys_types.h which was a duplicate.
2013-03-22code cleanup: use NULL rather then 0 for pointers, and make vars static ↵Campbell Barton
where possible. also found unintentionally defined enum/struct variables that where only meant to be defining the type.
2013-03-15Multi-threaded frame calculation for movie clip proxiesSergey Sharybin
This commit implements multi-threaded calculation of frames when building proxies. Both scaling and undistortion steps are now threaded. Frames and proxy resolution are still handled one-by-one, saving files after every single step. So if HDD is not so fast, this commit could have not so much benefit. Internal changes: - Added IMB_scaleImBuf_threaded which scales given image buffer in multiple threads and uses bilinear filtering. - libmv's camera intrinsics now have SetThreads() method which is used to specify how many OpenMP threads to use for buffer distortion/undistortion. And yeah, this code is using OpenMP for threading. - Reshuffled a bit libmv-capi calls and added function BKE_tracking_distortion_set_threads to specify number of threads used by intrinscis.
2013-01-05There was a typo in previous commitSergey Sharybin
Additional changes: - Made mipmapping operate with unsigned short instead of char which allowed to eliminate extra division by 255, so prevision should be a bit better now. - Actually, this is not real unsigned short range, but it's a range of 255*255 which is more convenient for mipmapping, so made conversion functions private for scaling.c Not sure it worth making this functions operate in 65535 range, for now current behavior seems to be just fine.
2013-01-04Optimization for speed regression in mipmap generationSergey Sharybin
Regression was caused by alpha premul cleanup commit and the reason of slowdown was uchar <-> float conversion which is slow. Replaced with uchar <-> int conversion which seeps to be accurate enough and mostly eliminates slowdown. Slowdown was easy to notice when movie clip is used for 3d vierport background and undistortion is enabled. In this case every frame will re-calculate mipmaps. It's still a nit slower than mipmap generation before cleanup commit, but couldn't think about extra boost here atm.
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-28Yesterday's memory free error fix in IMB_onehalf was wrong, it should Ton Roosendaal
be fixed in the icons code!
2012-12-27Function IMB_onehalf was not freeing memory.Ton Roosendaal
(Used for icon mipmap)
2012-11-18style cleanup: if's on the same line.Campbell Barton
2012-11-09style cleanup: indentationCampbell Barton
2012-09-16style cleanupCampbell Barton
2012-08-23style cleanup: indentation, also quiet double promotion warnings for ↵Campbell Barton
despeckle node.
2012-08-13code cleanup: includes for imbuf, also remove double promotion.Campbell Barton
2012-08-08Fix logic error in mipmap filter and refactor scaling routine to lower self ↵Sv. Lockal
cost by ~30%
2012-08-02code cleanup: remove redundant float castsCampbell Barton