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-02-28Changed a way how RGB images are saving from RGBASergey Sharybin
Before alpha channel was simply ignored causing bad looking straight colors which is pretty much useless. Now saving RGB would alpha-over image on top of black color, which makes final image look really nice. It's also very such the same what other graphics software does this. In the future we could easily support configurable backdrop color, which would be really the same as other SW does it. Also, it'll probably worth adding the same mode to RGB display of image editor.
2013-02-27Fix various warnings with clang build, and adjust cmake clang warnings flagsBrecht Van Lommel
to include a few more that gcc is using too.
2013-02-25style cleanupCampbell Barton
2013-02-22Fix #34359: 2.66 crashes when using output nodeSergey Sharybin
16bit PNG and Jpeg2K exporters were not aware of the simple fact that float buffer could have only 3 or 1 channels.
2013-02-19Remove define which is not actually needed and could have beenSergey Sharybin
conflicted with one from IMB_colormanagement.h
2013-02-19minor change to own recent commit with transform fcurve centers and some ↵Campbell Barton
style edits and typo corrections.
2013-02-18Force movie clips always use default alpha mode, before this straightSergey Sharybin
alpha was used for them which doesn't work for cleaned footage stored in EXR file format. Perhaps we need to support configurable alpha mode for clips, but that's for later (maybe even after release),
2013-02-12Fix for own multilayer EXR fix, should not have caused any issues might as wellBrecht Van Lommel
make sure it works if this function gets called from other places.
2013-02-12Bug fix #34213 (2)Ton Roosendaal
Adding non-RGBA float buffers as texture crashes MipMap code. Images with less than 4 channels not supported (yet). Not sure if we ever should even... normals, Z, vectors, UV, Index, all don't like downsampling.
2013-02-12Fix #34213: crash loading openexr multilayer with use alpha disabled.Brecht Van Lommel
2013-02-11Implemented delayed partial rect update for image buffersSergey Sharybin
Used by image painting mode, so every brush step would mark area if affected on, but actual color space conversion would happen later when actually displaying image. Implemented as a rcti stored in ImBuf which is getting merged with partial rect passed to IMB_partial_display_buffer_update_delayed. This makes painting as fast as it currently possible and finally solves #33935: Texture painting slow down with mouse, but not with tablet
2013-02-10style cleanupCampbell Barton
2013-02-09Bug fix #34174Ton Roosendaal
Multilayer files saved from Maya (and I bet others) store the 'primary' layer without layer or pass name, just as R G B A. Allows viewers to show stuff too, I guess. Blender now reads this as well, just allowing an empty string for the layer and pass.
2013-02-08Fix part #33935: Texture painting slow down with mouse, but not with tabletSergey Sharybin
Issue is solved for painting on byte buffer with default sRGB display enabled. In this case it is possible to skip any color space transform and just apply dither if needed. Still not sure if there's a regression in painting on flaots or not, will continue investigation.
2013-02-07Fix #34145: 'Save Image' incorrect file type.Sergey Sharybin
Own mistake in 16bit PNG support, wrong bitmask for custom flags ftype really needs cleanup..
2013-02-07Fix #34139: render display did not convert to straight alpha when dithering ↵Brecht Van Lommel
was enabled.
2013-02-04fix for rangefunc being unused for int & int array.Campbell Barton
also cast strlen to an int to avoid overflow.
2013-02-04style cleanup: spaces -> tabsCampbell Barton
2013-01-19style cleanupCampbell Barton
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