|
Blender V5.3
|
Namespaces | |
| namespace | partial_update |
| namespace | tests |
| namespace | transform |
Classes | |
| struct | MemoryBufferWriter |
| struct | ReadContext |
| struct | WriteContext |
Typedefs | |
| using | ChangesetID = int64_t |
Functions | |
| uchar4 | interpolate_nearest_border_byte (const ImBuf *in, float u, float v) |
| float4 | interpolate_nearest_border_fl (const ImBuf *in, float u, float v) |
| void | interpolate_nearest_border_byte (const ImBuf *in, uchar output[4], float u, float v) |
| void | interpolate_nearest_border_fl (const ImBuf *in, float output[4], float u, float v) |
| uchar4 | interpolate_nearest_wrap_byte (const ImBuf *in, float u, float v) |
| float4 | interpolate_nearest_wrap_fl (const ImBuf *in, float u, float v) |
| uchar4 | interpolate_bilinear_byte (const ImBuf *in, float u, float v) |
| float4 | interpolate_bilinear_fl (const ImBuf *in, float u, float v) |
| void | interpolate_bilinear_byte (const ImBuf *in, uchar output[4], float u, float v) |
| void | interpolate_bilinear_fl (const ImBuf *in, float output[4], float u, float v) |
| uchar4 | interpolate_bilinear_border_byte (const ImBuf *in, float u, float v) |
| float4 | interpolate_bilinear_border_fl (const ImBuf *in, float u, float v) |
| void | interpolate_bilinear_border_byte (const ImBuf *in, uchar output[4], float u, float v) |
| void | interpolate_bilinear_border_fl (const ImBuf *in, float output[4], float u, float v) |
| uchar4 | interpolate_bilinear_wrap_byte (const ImBuf *in, float u, float v) |
| float4 | interpolate_bilinear_wrap_fl (const ImBuf *in, float u, float v) |
| uchar4 | interpolate_cubic_bspline_byte (const ImBuf *in, float u, float v) |
| float4 | interpolate_cubic_bspline_fl (const ImBuf *in, float u, float v) |
| void | interpolate_cubic_bspline_byte (const ImBuf *in, uchar output[4], float u, float v) |
| void | interpolate_cubic_bspline_fl (const ImBuf *in, float output[4], float u, float v) |
| uchar4 | interpolate_cubic_mitchell_byte (const ImBuf *in, float u, float v) |
| void | interpolate_cubic_mitchell_byte (const ImBuf *in, uchar output[4], float u, float v) |
| template<typename T> | |
| static void | fill_all_channels (T *pixels, int width, int height, int components, T alpha) |
| template<typename T> | |
| static ImBuf * | load_pixels (ImageInput *in, int width, int height, int channels, ImBufFlags flags, bool use_all_planes) |
| static void | set_file_colorspace (ImFileColorSpace &r_colorspace, const ReadContext &ctx, const ImageSpec &spec, bool is_float) |
| static ImBuf * | get_oiio_ibuf (ImageInput *in, const ReadContext &ctx, ImFileColorSpace &r_colorspace) |
| static unique_ptr< ImageInput > | get_oiio_reader (const char *format, const ImageSpec &config, Filesystem::IOMemReader &mem_reader, ImageSpec &r_newspec) |
| bool | imb_oiio_check (const uchar *mem, size_t mem_size, const char *file_format) |
| ImBuf * | imb_oiio_read (const ReadContext &ctx, const ImageSpec &config, ImFileColorSpace &r_colorspace, ImageSpec &r_newspec) |
| static void | oiio_write_prepare (const ImageSpec &file_spec, ImageBuf &orig_buf, ImageBuf &final_buf) |
| bool | imb_oiio_write (const WriteContext &ctx, const char *filepath, const ImageSpec &file_spec) |
| Vector< uint8_t > | imb_oiio_write_buffer (const WriteContext &ctx, const ImageSpec &file_spec) |
| WriteContext | imb_create_write_context (const char *file_format, const ImBuf *ibuf, ImBufFlags flags, bool prefer_float) |
| ImageSpec | imb_create_write_spec (const WriteContext &ctx, int file_channels, TypeDesc data_format) |
| ImBuf * | imb_oiio_read (const ReadContext &ctx, const OIIO::ImageSpec &config, ImFileColorSpace &r_colorspace, OIIO::ImageSpec &r_newspec) |
| bool | imb_oiio_write (const WriteContext &ctx, const char *filepath, const OIIO::ImageSpec &file_spec) |
| Vector< uint8_t > | imb_oiio_write_buffer (const WriteContext &ctx, const OIIO::ImageSpec &file_spec) |
| OIIO::ImageSpec | imb_create_write_spec (const WriteContext &ctx, int file_channels, OIIO::TypeDesc data_format) |
| using blender::imbuf::ChangesetID = int64_t |
Definition at line 38 of file IMB_imbuf_types.hh.
|
static |
Definition at line 82 of file openimageio_support.cc.
References fill_all_channels(), and T.
Referenced by fill_all_channels(), and load_pixels().
|
static |
Get an ImBuf filled in with pixel data and associated metadata using the provided ImageInput.
Definition at line 194 of file openimageio_support.cc.
References CLOG_ERROR, ELEM, blender::imbuf::ReadContext::file_type, blender::ImbFormatOptions::flag, blender::ImBuf::flags, blender::imbuf::ReadContext::flags, blender::ImBuf::foptions, blender::ImBuf::ftype, get_oiio_ibuf(), blender::IMB_metadata_set_field(), blender::gpu::shader::metadata::in, load_pixels(), blender::LOG_READ, blender::Metadata, blender::ImBuf::metadata_for_write(), OPENEXR_HALF, blender::ImBuf::ppm, scale(), set_file_colorspace(), blender::imbuf::ReadContext::use_all_planes, and blender::Zero.
Referenced by get_oiio_ibuf(), and imb_oiio_read().
|
static |
Returns an #ImageInput for the precise format requested using the provided #IOMemReader. If successful, the #ImageInput will be opened and ready for operations. Null will be returned if the format was not found or if the open call fails.
Definition at line 273 of file openimageio_support.cc.
References get_oiio_reader(), and blender::gpu::shader::metadata::in.
Referenced by get_oiio_reader(), and imb_oiio_read().
| WriteContext blender::imbuf::imb_create_write_context | ( | const char * | file_format, |
| const ImBuf * | ibuf, | ||
| ImBufFlags | flags, | ||
| bool | prefer_float = true ) |
Create a WriteContext based on the provided ImBuf and format information.
If the provided ImBuf contains both byte and float buffers, the prefer_float flag controls which buffer to use. By default, if a float buffer exists it will be used.
Definition at line 440 of file openimageio_support.cc.
References blender::ImBuf::byte_data(), blender::ImBuf::channels, blender::imbuf::WriteContext::file_format, blender::imbuf::WriteContext::flags, blender::ImBuf::float_data(), blender::imbuf::WriteContext::ibuf, imb_create_write_context(), blender::imbuf::WriteContext::mem_span, blender::imbuf::WriteContext::mem_spec, blender::ImBuf::x, and blender::ImBuf::y.
Referenced by imb_create_write_context(), imb_oiio_write_buffer(), blender::prepare_save_avif(), blender::prepare_save_bmp(), blender::prepare_save_dpx(), blender::prepare_save_hdr(), blender::prepare_save_iris(), blender::prepare_save_png(), blender::prepare_save_tga(), blender::prepare_save_tiff(), and blender::prepare_save_webp().
| OIIO::ImageSpec blender::imbuf::imb_create_write_spec | ( | const WriteContext & | ctx, |
| int | file_channels, | ||
| OIIO::TypeDesc | data_format ) |
Returns an #ImageSpec filled in with all common attributes associated with the ImBuf provided as part of the WriteContext.
This includes optional metadata that has been attached to the ImBuf and which should be written to the new file as necessary.
References imb_create_write_spec().
| ImageSpec blender::imbuf::imb_create_write_spec | ( | const WriteContext & | ctx, |
| int | file_channels, | ||
| TypeDesc | data_format ) |
Definition at line 488 of file openimageio_support.cc.
References blender::ImBuf::byte_buffer, blender::ImBufByteBuffer::colorspace, blender::ImBufFloatBuffer::colorspace, blender::IDProperty::data, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), blender::imbuf::WriteContext::file_format, blender::ImBuf::float_buffer, blender::IDPropertyData::group, blender::imbuf::WriteContext::ibuf, blender::IDP_STRING, IDP_string_get, blender::Image, blender::IMB_colormanagement_space_to_cicp(), blender::IMB_colormanagement_space_to_icc_profile(), imb_create_write_spec(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::imbuf::WriteContext::mem_spec, blender::ImBuf::metadata(), blender::ImBuf::ppm, round, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), STREQ, blender::ImBuf::x, and blender::ImBuf::y.
Referenced by imb_create_write_spec(), imb_create_write_spec(), blender::prepare_save_avif(), blender::prepare_save_bmp(), blender::prepare_save_dpx(), blender::prepare_save_hdr(), blender::prepare_save_iris(), blender::prepare_save_png(), blender::prepare_save_tga(), blender::prepare_save_tiff(), and blender::prepare_save_webp().
| bool blender::imbuf::imb_oiio_check | ( | const uchar * | mem, |
| size_t | mem_size, | ||
| const char * | file_format ) |
Check to see if we can load and open the given file format.
Definition at line 294 of file openimageio_support.cc.
References imb_oiio_check(), and blender::gpu::shader::metadata::in.
Referenced by blender::imb_is_a_avif(), blender::imb_is_a_bmp(), blender::imb_is_a_dds(), blender::imb_is_a_dpx(), blender::imb_is_a_hdr(), blender::imb_is_a_iris(), blender::imb_is_a_png(), blender::imb_is_a_psd(), blender::imb_is_a_tga(), blender::imb_is_a_tiff(), blender::imb_is_a_webp(), and imb_oiio_check().
| ImBuf * blender::imbuf::imb_oiio_read | ( | const ReadContext & | ctx, |
| const ImageSpec & | config, | ||
| ImFileColorSpace & | r_colorspace, | ||
| ImageSpec & | r_newspec ) |
Definition at line 304 of file openimageio_support.cc.
References blender::imbuf::ReadContext::file_format, get_oiio_ibuf(), get_oiio_reader(), imb_oiio_read(), blender::gpu::shader::metadata::in, blender::imbuf::ReadContext::mem_size, and blender::imbuf::ReadContext::mem_start.
Referenced by blender::imb_load_avif(), blender::imb_load_bmp(), blender::imb_load_dds(), blender::imb_load_dpx(), blender::imb_load_hdr(), blender::imb_load_png(), blender::imb_load_psd(), blender::imb_load_tga(), blender::imb_load_tiff(), blender::imb_loadiris(), blender::imb_loadwebp(), imb_oiio_read(), and imb_oiio_read().
| ImBuf * blender::imbuf::imb_oiio_read | ( | const ReadContext & | ctx, |
| const OIIO::ImageSpec & | config, | ||
| ImFileColorSpace & | r_colorspace, | ||
| OIIO::ImageSpec & | r_newspec ) |
The primary method for reading data into an ImBuf.
During the ImBufFlags::Test phase of loading, the colorspace parameter will be populated with the appropriate colorspace name.
Upon return, the r_newspec parameter will contain image format information which can be inspected afterwards if necessary.
References imb_oiio_read().
| bool blender::imbuf::imb_oiio_write | ( | const WriteContext & | ctx, |
| const char * | filepath, | ||
| const ImageSpec & | file_spec ) |
Definition at line 381 of file openimageio_support.cc.
References CLOG_ERROR, blender::imbuf::WriteContext::file_format, imb_oiio_write(), blender::LOG_WRITE, blender::imbuf::WriteContext::mem_span, blender::imbuf::WriteContext::mem_spec, oiio_write_prepare(), and blender::gpu::shader::metadata::out.
Referenced by imb_oiio_write(), imb_oiio_write(), blender::imb_save_avif(), blender::imb_save_bmp(), blender::imb_save_dpx(), blender::imb_save_hdr(), blender::imb_save_png(), blender::imb_save_tga(), blender::imb_save_tiff(), blender::imb_saveiris(), and blender::imb_savewebp().
| bool blender::imbuf::imb_oiio_write | ( | const WriteContext & | ctx, |
| const char * | filepath, | ||
| const OIIO::ImageSpec & | file_spec ) |
The primary method for writing data from an ImBuf to a file.
The file_spec parameter will typically come from imb_create_write_spec.
References imb_oiio_write().
| Vector< uint8_t > blender::imbuf::imb_oiio_write_buffer | ( | const WriteContext & | ctx, |
| const ImageSpec & | file_spec ) |
Definition at line 409 of file openimageio_support.cc.
References blender::imbuf::MemoryBufferWriter::buffer, CLOG_ERROR, blender::imbuf::WriteContext::file_format, imb_oiio_write_buffer(), blender::LOG_WRITE, blender::imbuf::WriteContext::mem_span, blender::imbuf::WriteContext::mem_spec, oiio_write_prepare(), and blender::gpu::shader::metadata::out.
Referenced by imb_oiio_write_buffer(), imb_oiio_write_buffer(), blender::imb_save_buffer_avif(), blender::imb_save_buffer_bmp(), blender::imb_save_buffer_dpx(), blender::imb_save_buffer_hdr(), blender::imb_save_buffer_iris(), blender::imb_save_buffer_png(), blender::imb_save_buffer_tga(), blender::imb_save_buffer_tiff(), and blender::imb_save_buffer_webp().
| Vector< uint8_t > blender::imbuf::imb_oiio_write_buffer | ( | const WriteContext & | ctx, |
| const OIIO::ImageSpec & | file_spec ) |
The primary method for writing data from an ImBuf to an in-memory buffer.
The file_spec parameter will typically come from imb_create_write_spec.
References imb_create_write_context(), and imb_oiio_write_buffer().
|
inlinenodiscard |
Definition at line 76 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_bilinear_border_byte(), blender::math::interpolate_bilinear_border_byte(), and blender::v.
Referenced by interpolate_bilinear_border_byte(), interpolate_bilinear_border_byte(), blender::render::texturemargin::TextureMarginMap::lookup_pixels(), blender::TEST(), blender::TEST(), blender::TEST(), blender::TEST(), blender::TEST(), blender::TEST(), and blender::tracking_stabilize_frame_interpolation_cb().
|
inline |
Definition at line 84 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_bilinear_border_byte(), blender::math::interpolate_bilinear_border_byte(), output, and blender::v.
|
inline |
Definition at line 89 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_bilinear_border_fl(), blender::math::interpolate_bilinear_border_fl(), output, and blender::v.
|
inlinenodiscard |
Definition at line 80 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_bilinear_border_fl(), blender::math::interpolate_bilinear_border_fl(), and blender::v.
Referenced by interpolate_bilinear_border_fl(), interpolate_bilinear_border_fl(), blender::render::texturemargin::TextureMarginMap::lookup_pixels(), blender::TEST(), blender::TEST(), blender::TEST(), and blender::tracking_stabilize_frame_interpolation_cb().
|
inlinenodiscard |
Definition at line 55 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_bilinear_byte(), blender::math::interpolate_bilinear_byte(), and blender::v.
Referenced by interpolate_bilinear_byte(), interpolate_bilinear_byte(), blender::imbuf::transform::sample_image(), and blender::TEST().
|
inline |
Definition at line 63 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_bilinear_byte(), blender::math::interpolate_bilinear_byte(), output, and blender::v.
|
inline |
Definition at line 68 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_bilinear_fl(), blender::math::interpolate_bilinear_fl(), output, and blender::v.
|
inlinenodiscard |
Definition at line 59 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_bilinear_fl(), blender::math::interpolate_bilinear_fl(), and blender::v.
Referenced by interpolate_bilinear_fl(), interpolate_bilinear_fl(), blender::imbuf::transform::sample_image(), and blender::TEST().
|
inlinenodiscard |
Definition at line 97 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_bilinear_wrap_byte(), blender::math::interpolate_bilinear_wrap_byte(), and blender::v.
Referenced by interpolate_bilinear_wrap_byte(), blender::project_face_pixel(), blender::project_paint_PickColor(), blender::ed::sculpt_paint::sample_texture_paint_color(), and blender::TEST().
|
inlinenodiscard |
Definition at line 101 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_bilinear_wrap_fl(), blender::math::interpolate_bilinear_wrap_fl(), and blender::v.
Referenced by interpolate_bilinear_wrap_fl(), blender::project_face_pixel(), blender::project_paint_PickColor(), blender::ed::sculpt_paint::sample_texture_paint_color(), and blender::TEST().
|
inlinenodiscard |
Definition at line 108 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_cubic_bspline_byte(), blender::math::interpolate_cubic_bspline_byte(), and blender::v.
Referenced by blender::do_projectpaint_thread(), interpolate_cubic_bspline_byte(), interpolate_cubic_bspline_byte(), blender::imbuf::transform::sample_image(), blender::TEST(), blender::TEST(), blender::TEST(), and blender::tracking_stabilize_frame_interpolation_cb().
|
inline |
Definition at line 116 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_cubic_bspline_byte(), blender::math::interpolate_cubic_bspline_byte(), output, and blender::v.
|
inline |
Definition at line 121 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_cubic_bspline_fl(), blender::math::interpolate_cubic_bspline_fl(), output, and blender::v.
|
inlinenodiscard |
Definition at line 112 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_cubic_bspline_fl(), blender::math::interpolate_cubic_bspline_fl(), and blender::v.
Referenced by blender::do_projectpaint_thread(), interpolate_cubic_bspline_fl(), interpolate_cubic_bspline_fl(), blender::TEST(), blender::TEST(), and blender::tracking_stabilize_frame_interpolation_cb().
|
inlinenodiscard |
Definition at line 129 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_cubic_mitchell_byte(), blender::math::interpolate_cubic_mitchell_byte(), and blender::v.
Referenced by interpolate_cubic_mitchell_byte(), interpolate_cubic_mitchell_byte(), blender::imbuf::transform::sample_image(), blender::TEST(), blender::TEST(), and blender::TEST().
|
inline |
Definition at line 133 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_cubic_mitchell_byte(), blender::math::interpolate_cubic_mitchell_byte(), output, and blender::v.
|
inlinenodiscard |
Definition at line 25 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_nearest_border_byte(), blender::math::interpolate_nearest_border_byte(), and blender::v.
Referenced by interpolate_nearest_border_byte(), interpolate_nearest_border_byte(), blender::imbuf::transform::sample_image(), blender::TEST(), blender::TEST(), and blender::tracking_stabilize_frame_interpolation_cb().
|
inline |
Definition at line 33 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_nearest_border_byte(), blender::math::interpolate_nearest_border_byte(), output, and blender::v.
|
inline |
Definition at line 37 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_nearest_border_fl(), blender::math::interpolate_nearest_border_fl(), output, and blender::v.
|
inlinenodiscard |
Definition at line 29 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_nearest_border_fl(), blender::math::interpolate_nearest_border_fl(), and blender::v.
Referenced by interpolate_nearest_border_fl(), interpolate_nearest_border_fl(), blender::studiolight_calculate_radiance(), blender::studiolight_matcap_preview(), blender::TEST(), blender::TEST(), and blender::tracking_stabilize_frame_interpolation_cb().
|
inlinenodiscard |
Definition at line 44 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_nearest_wrap_byte(), blender::math::interpolate_nearest_wrap_byte(), and blender::v.
Referenced by interpolate_nearest_wrap_byte(), blender::project_paint_PickColor(), and blender::ed::sculpt_paint::sample_texture_paint_color().
|
inlinenodiscard |
Definition at line 48 of file IMB_interp.hh.
References blender::gpu::shader::metadata::in, interpolate_nearest_wrap_fl(), blender::math::interpolate_nearest_wrap_fl(), and blender::v.
Referenced by interpolate_nearest_wrap_fl(), blender::project_paint_PickColor(), and blender::ed::sculpt_paint::sample_texture_paint_color().
|
static |
Definition at line 107 of file openimageio_support.cc.
References blender::BW, blender::BW_A, blender::ImBuf::byte_data_for_write(), blender::ByteData, CLOG_ERROR, blender::ImBuf::color_mode, fill_all_channels(), blender::ImBuf::float_data_for_write(), blender::FloatData, blender::IMB_allocImBuf(), blender::IMB_freeImBuf(), blender::gpu::shader::metadata::in, load_pixels(), blender::LOG_READ, blender::RGB, blender::RGBA, T, blender::Test, blender::UninitializedPixels, and blender::Zero.
Referenced by get_oiio_ibuf(), and load_pixels().
|
static |
Definition at line 319 of file openimageio_support.cc.
References blender::IMB_colormanagement_get_luminance_coefficients(), and oiio_write_prepare().
Referenced by imb_oiio_write(), imb_oiio_write_buffer(), and oiio_write_prepare().
|
static |
Definition at line 165 of file openimageio_support.cc.
References blender::Image, blender::IMB_colormanagement_colorspace_get_name(), blender::IMB_colormanagement_space_from_cicp(), blender::ImFileColorSpace::is_hdr_float, blender::ImFileColorSpace::metadata_colorspace, set_file_colorspace(), STRNCPY_UTF8, and blender::imbuf::ReadContext::use_metadata_colorspace.
Referenced by get_oiio_ibuf(), and set_file_colorspace().