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
2013-01-15Jpeg2000 should be saved with straight alphaSergey Sharybin
2013-01-15Follow general mathutils rules for naming straight<->premul functionsSergey Sharybin
2013-01-15fix [#33781] Confusing units in displacement modifier parametersCampbell Barton
16bit PNG images were not doing any conversions when saving linear float buffers, but would always load them as SRGB. apply the same method used for 16bit images from floats as used in jpeg2000.
2013-01-15write 16 bit PNG files even when there is no float buffer,Campbell Barton
the existence of a float buffer can depend on the image being used in the compositor for example, so better give the user what they expect - 16bit png if its selected from the UI.
2013-01-12Patch #33837: ffmpeg1.1 and libav9.1 compatibility updateSergey Sharybin
Patch makes it possible to compile blender with recent ffmpeg and libav libraries, mainly by getting rid of deprecated API. Original patch by Campbell Barton with own modifications to support compilation with older ffmpeg versions. This patch could break compatibility of FFV1 videos playing back in older players, mainly because of alpha support changes. Preserving compatibility with such players became a headache and think it's high time to get rid of workarounds here.
2013-01-09style cleanupCampbell Barton
2013-01-09Style cleanup in OCIO areaSergey Sharybin
Also fixed typo in function name.
2013-01-09Fix #33809: Wrong exposure affect after alpha premul changesSergey Sharybin
Exposure shouldn't affect on alpha channel, only RGB shall be affected by exposure. Was a regression since recent alpha premul pipeline changes.
2013-01-08Remove unused IMB function which wasn't ported to new color managementSergey Sharybin
Also marked some TODOs as actually solved.
2013-01-08style cleanupCampbell Barton
2013-01-05Changes for opengl render to reflect new alpha premul pipelineSergey Sharybin
without hurting quick texture painting - ED_view3d_draw_offscreen will now output buffer with transparent alpha, if sky needed it should be alpha-undered later. - ED_view3d_draw_offscreen_imbuf now accepts alpha mode as an argument which could be either R_ADDSKY or R_PREMULALPHA - OpenGL render and sequencer's opengl preview will now reflect scene's Alpha Mode - Quick Edit will use OpenGL with transparent alpha mode
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-31Fix for saving 8bit PNG images when there's no byte buffer in ImBufSergey Sharybin
Misunderstand flag of file filter, should work fine now.
2012-12-31code cleanup: warningCampbell 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-12-3016 bit PNG write supportSergey Sharybin
This commit adds a support of saving 16bit PNG files. Alpha for such files would be premultiplied, would be corrected with an upcoming alpha premul cleanup (it's not the only format which will output 16bit image with premul alpha).
2012-12-29style cleanupCampbell Barton
2012-12-28style cleanupCampbell Barton
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-12-23Added support of J2K codec for Jpeg2000 writingSergey Sharybin
This codec is absolutely needed to generate DCP using OpenDCP, before that external application to convert JP2 to J2K was used which slowed down export a lot. New codec is exposed to image format settings panel and called Codec. Default one is JP2 which creates files with .jp2 extension, new one is called J2K which creates with .j2c extension. Other changes: - Fixed avi jpeg warning which was treating as error here. - Made it so extension is detecting from ImageFormatData instead of image file type, which makes it possible to have different extension for the same file type depending on it's settings. IRIS format should still be changed (depending on number of channels it'll be .bw, .rgb or .rgba extension) - Default image format settings would be set from image buffer when re-saving it. Makes it possible to easily open .j2c file and save it using J2K codec (without this change it'll save as .jp2 using JP2 codec)
2012-12-20Fix #33629: DDS DXT5 with alpha not loaded correctly, Y flipping code was wrong.Brecht Van Lommel
2012-12-19patch [#33306] Default file format: PNG, 90%Campbell Barton
2012-12-18style cleanupCampbell Barton
2012-12-17Added GPL header to sconscripts!Bastien Montagne
Also changed shebang to '#!/usr/bin/env python', this is more portable across unixes...
2012-12-11code cleanup: neareast -> nearestCampbell Barton
2012-12-07Fix #33433: Importing video files into movie clip editor crashes BlenderSergey Sharybin
This was a regression in svn rev52718 caused by the fact that we can not free packet fun until we've finished all manipulation with decoded frame since frame and packet could share same pointers. For now restored old behavior of next_packet which seems to be well tested and better not do bigger refactoring here so close to release. Memory leak fixed by that revision was fixed by calling av_free_packet just before avcodec_decode_video2 in cases we're at the end of file. Tested with valgrind and could not see any memory leaks in ffmpeg area.
2012-12-02Silent a bunch of gcc warnings (usually dummy, but noisy!).Bastien Montagne
2012-12-02== FFMPEG ==Peter Schlaile
This fixes a memory leak caused by the last packet on stream EOF not freed. (Memory leak occurs on ffmpeg heap managed by av_malloc / av_free, so it is invisible to Blender) Also: clean up the code a little bit (anim->next_packet was never really used, so could be moved into a local variable)
2012-11-27CMake: hide some unnecessary LLVM/OSL/EXR prints.Brecht Van Lommel
2012-11-24cineonlib.c: Quieted warning, inconsistency between printf format (%lu) and ↵Jason Wilkins
the type of an argument (uintptr_t??) The struct member is an unsigned int, not a pointer, so it is mysterious why the orignal code cast it to an uintptr_t. I changed the code to cast it to an unsigned long so that it matches the format.
2012-11-23ifdef'd gcc diagnostic pragma's to quiet msvc and others.Campbell Barton
2012-11-21Fix #33222: When rendering DPX it's flipped in the Image EditorSergey Sharybin
Avoid using IMB_flipy from image save callback. It will use a bit more memory but wold be thread-safe.
2012-11-19* Fix Windows compile. #ifdef _MSC_VER was misspelled. Thomas Dinges
2012-11-19Improved FFmpeg error reports when audio stream failed to be allocatedSergey Sharybin
Also fixed crash using --debug-ffmpeg caused by BLI_vsnprintf modifies va_list -- need to create copy of list if this list is gonna to be reused.
2012-11-19Windows Libs: move OpenEXR headers to same directory structure as other ↵Brecht Van Lommel
platforms.
2012-11-18style cleanup: if's on the same line.Campbell Barton
2012-11-18style cleanup: comments & spellingCampbell Barton
2012-11-14Fix #33166: Wrong profile name in config.ocio causes crashSergey Sharybin
In this case we can not validate OCIO configuration and the only way to fix such issues is to add NULL-pointer checks..
2012-11-14buildsystem cleanup: remove duplicate source & includes for scons,Campbell Barton
add a check for duplicates in BlenderLib()m, if 0'd now.
2012-11-13code cleanup: use ptrdiff_t when comparing pointers and tag event as an ↵Campbell Barton
unused arg to move_to_layer_invoke()
2012-11-13Bugfix #33161Ton Roosendaal
The new node that outputs multilayer was using longer names than default. Caused old code that truncated pass names to 11 chars to fail on loading exr. This was an old limit in openexr - but that got fixed long ago. On todo: check current openexr name lenghts, and all code in Blender that defines pass/layer names.
2012-11-13Correction to YCCK and CNYK jpeg images loading into blenderSergey Sharybin
There was incorrect formula applied on color components, used the same as gimp uses. It makes image looking nicer in blender, however it's still not 100% correct. Seems lots of software are handling profiles from jpeg file nicely. But that's another topic.
2012-11-12code cleanup: spelling,Campbell Barton
also initialize bmesh-bevel settings struct to zero to avoid possible uninitialized memory later.
2012-11-11Code de-duplication in imageprocess.c -- made it use interpolation functions ↵Sergey Sharybin
from blenlib
2012-11-10fix for crashes running the BGE without colorspace enabled.Campbell Barton
2012-11-09code cleanup: double promotion warnings, also allow cmake to build SDL ↵Campbell Barton
without audaspace.
2012-11-09style cleanup: indentationCampbell Barton
2012-11-08code cleanup: unused defines & some formatting.Campbell Barton