|
Blender
V2.93
|
#include "render/merge.h"#include "util/util_array.h"#include "util/util_map.h"#include "util/util_system.h"#include "util/util_time.h"#include "util/util_unique_ptr.h"#include <OpenImageIO/filesystem.h>#include <OpenImageIO/imageio.h>Go to the source code of this file.
Classes | |
| struct | MergeImagePass |
| struct | MergeImageLayer |
| struct | MergeImage |
Enumerations | |
| enum | MergeChannelOp { MERGE_CHANNEL_NOP , MERGE_CHANNEL_COPY , MERGE_CHANNEL_SUM , MERGE_CHANNEL_AVERAGE } |
Functions | |
| static MergeChannelOp | parse_channel_operation (const string &pass_name) |
| static bool | split_last_dot (string &in, string &suffix) |
| static bool | parse_channel_name (string name, string &renderlayer, string &pass, string &channel, bool multiview_channels) |
| static bool | parse_channels (const ImageSpec &in_spec, vector< MergeImageLayer > &layers, string &error) |
| static bool | open_images (const vector< string > &filepaths, vector< MergeImage > &images, string &error) |
| static void | merge_render_time (ImageSpec &spec, const vector< MergeImage > &images, const string &name, const bool average) |
| static void | merge_layer_render_time (ImageSpec &spec, const vector< MergeImage > &images, const string &layer_name, const string &time_name, const bool average) |
| static void | merge_channels_metadata (vector< MergeImage > &images, ImageSpec &out_spec, vector< int > &channel_total_samples) |
| static void | alloc_pixels (const ImageSpec &spec, array< float > &pixels) |
| static bool | merge_pixels (const vector< MergeImage > &images, const ImageSpec &out_spec, const vector< int > &channel_total_samples, array< float > &out_pixels, string &error) |
| static bool | save_output (const string &filepath, const ImageSpec &spec, const array< float > &pixels, string &error) |
| enum MergeChannelOp |
Definition at line 352 of file merge.cpp.
References height, array< T, alignment >::resize(), and width.
Referenced by merge_pixels().
|
static |
Definition at line 286 of file merge.cpp.
References MergeImagePass::channel_name, MergeImagePass::format, MERGE_CHANNEL_COPY, MERGE_CHANNEL_NOP, merge_layer_render_time(), MergeImagePass::merge_offset, merge_render_time(), MergeImageLayer::name, MergeImagePass::op, MergeImageLayer::passes, MergeImageLayer::samples, and string_printf().
Referenced by ImageMerger::run().
|
static |
Definition at line 265 of file merge.cpp.
References average(), time, time_human_readable_from_seconds(), and time_human_readable_to_seconds().
Referenced by merge_channels_metadata().
|
static |
Definition at line 362 of file merge.cpp.
References alloc_pixels(), array< T, alignment >::data(), error(), float(), MERGE_CHANNEL_AVERAGE, MERGE_CHANNEL_COPY, MERGE_CHANNEL_NOP, MERGE_CHANNEL_SUM, MergeImagePass::merge_offset, MergeImagePass::offset, MergeImagePass::op, MergeImageLayer::passes, MergeImageLayer::samples, array< T, alignment >::size(), stride, and t.
Referenced by ImageMerger::run().
|
static |
Definition at line 246 of file merge.cpp.
References average(), time, time_human_readable_from_seconds(), and time_human_readable_to_seconds().
Referenced by merge_channels_metadata().
|
static |
Definition at line 202 of file merge.cpp.
References error(), MergeImage::filepath, MergeImage::in, MergeImage::layers, and parse_channels().
Referenced by ImageMerger::run().
|
static |
Definition at line 108 of file merge.cpp.
References split_last_dot(), and view.
Referenced by parse_channels().
|
static |
Definition at line 76 of file merge.cpp.
References MERGE_CHANNEL_AVERAGE, MERGE_CHANNEL_COPY, MERGE_CHANNEL_SUM, and string_startswith().
Referenced by parse_channels().
|
static |
Definition at line 130 of file merge.cpp.
References MergeImagePass::channel_name, error(), MergeImagePass::format, if(), MergeImagePass::merge_offset, MergeImageLayer::name, MergeImagePass::offset, MergeImagePass::op, parse_channel_name(), parse_channel_operation(), MergeImageLayer::samples, and string_printf().
Referenced by open_images().
|
static |
Definition at line 424 of file merge.cpp.
References array< T, alignment >::data(), error(), and unique_name().
Referenced by ImageMerger::run().
|
static |