|
Blender V4.5
|
Namespaces | |
| namespace | tests |
| namespace | transform |
Classes | |
| class | ImBufMemWriter |
| struct | ReadContext |
| struct | WriteContext |
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, int 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 *formatformat, 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) |
| bool | imb_oiio_write (const WriteContext &ctx, const char *filepath, const ImageSpec &file_spec) |
| WriteContext | imb_create_write_context (const char *file_format, ImBuf *ibuf, int 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) |
| OIIO::ImageSpec | imb_create_write_spec (const WriteContext &ctx, int file_channels, OIIO::TypeDesc data_format) |
|
static |
Definition at line 75 of file openimageio_support.cc.
References fill_all_channels(), i, 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 161 of file openimageio_support.cc.
References ELEM, blender::imbuf::ReadContext::file_type, ImbFormatOptions::flag, blender::imbuf::ReadContext::flags, ImBuf::flags, ImBuf::foptions, ImBuf::ftype, get_oiio_ibuf(), IB_metadata, IMB_metadata_ensure(), IMB_metadata_set_field(), in, load_pixels(), ImBuf::metadata, IDProperty::name, OPENEXR_HALF, ImBuf::ppm, set_file_colorspace(), and blender::imbuf::ReadContext::use_all_planes.
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 235 of file openimageio_support.cc.
References get_oiio_reader(), and in.
Referenced by get_oiio_reader(), and imb_oiio_read().
| WriteContext blender::imbuf::imb_create_write_context | ( | const char * | file_format, |
| ImBuf * | ibuf, | ||
| int | 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 365 of file openimageio_support.cc.
References ImBuf::byte_buffer, ImBuf::channels, ImBufByteBuffer::data, ImBufFloatBuffer::data, blender::imbuf::WriteContext::file_format, blender::imbuf::WriteContext::flags, ImBuf::float_buffer, blender::imbuf::WriteContext::ibuf, imb_create_write_context(), blender::imbuf::WriteContext::mem_spec, blender::imbuf::WriteContext::mem_start, blender::imbuf::WriteContext::mem_xstride, blender::imbuf::WriteContext::mem_ystride, ImBuf::x, and ImBuf::y.
Referenced by imb_create_write_context(), imb_oiio_write(), imb_save_bmp(), imb_save_dpx(), imb_save_hdr(), imb_save_png(), imb_save_tga(), and imb_save_tiff().
| 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 399 of file openimageio_support.cc.
References IDProperty::data, blender::imbuf::WriteContext::file_format, IDPropertyData::group, blender::imbuf::WriteContext::ibuf, IDP_STRING, IDP_String, imb_create_write_spec(), LISTBASE_FOREACH, ImBuf::metadata, ImBuf::ppm, round, STREQ, ImBuf::x, and ImBuf::y.
Referenced by imb_create_write_spec(), imb_create_write_spec(), imb_save_bmp(), imb_save_dpx(), imb_save_hdr(), imb_save_png(), imb_save_tga(), and imb_save_tiff().
| 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 256 of file openimageio_support.cc.
References imb_oiio_check(), and in.
Referenced by imb_is_a_bmp(), imb_is_a_dds(), imb_is_a_dpx(), imb_is_a_hdr(), imb_is_a_png(), imb_is_a_psd(), imb_is_a_tga(), imb_is_a_tiff(), 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 266 of file openimageio_support.cc.
References blender::imbuf::ReadContext::file_format, get_oiio_ibuf(), get_oiio_reader(), imb_oiio_read(), in, blender::imbuf::ReadContext::mem_size, and blender::imbuf::ReadContext::mem_start.
Referenced by imb_load_bmp(), imb_load_dds(), imb_load_dpx(), imb_load_hdr(), imb_load_png(), imb_load_psd(), imb_load_tga(), imb_load_tiff(), 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 IB_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 281 of file openimageio_support.cc.
References blender::imbuf::WriteContext::file_format, blender::imbuf::WriteContext::flags, i, IB_mem, blender::imbuf::WriteContext::ibuf, imb_addencodedbufferImBuf(), IMB_colormanagement_get_luminance_coefficients(), imb_oiio_write(), blender::imbuf::WriteContext::mem_spec, blender::imbuf::WriteContext::mem_start, blender::imbuf::WriteContext::mem_xstride, blender::imbuf::WriteContext::mem_ystride, and out.
Referenced by imb_oiio_write(), imb_oiio_write(), imb_save_bmp(), imb_save_dpx(), imb_save_hdr(), imb_save_png(), imb_save_tga(), and imb_save_tiff().
| 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 either a physical or in-memory destination.
The file_spec parameter will typically come from imb_create_write_spec.
References imb_create_write_context(), and imb_oiio_write().
|
inlinenodiscard |
Definition at line 74 of file IMB_interp.hh.
References in, interpolate_bilinear_border_byte(), blender::math::interpolate_bilinear_border_byte(), and v.
Referenced by interpolate_bilinear_border_byte(), interpolate_bilinear_border_byte(), blender::render::texturemargin::TextureMarginMap::lookup_pixels(), tracking_stabilize_frame_interpolation_cb(), and blender::seq::transform_image().
|
inline |
Definition at line 82 of file IMB_interp.hh.
References in, interpolate_bilinear_border_byte(), blender::math::interpolate_bilinear_border_byte(), output, and v.
|
inline |
Definition at line 87 of file IMB_interp.hh.
References in, interpolate_bilinear_border_fl(), blender::math::interpolate_bilinear_border_fl(), output, and v.
|
inlinenodiscard |
Definition at line 78 of file IMB_interp.hh.
References in, interpolate_bilinear_border_fl(), blender::math::interpolate_bilinear_border_fl(), and v.
Referenced by interpolate_bilinear_border_fl(), interpolate_bilinear_border_fl(), blender::render::texturemargin::TextureMarginMap::lookup_pixels(), tracking_stabilize_frame_interpolation_cb(), and blender::seq::transform_image().
|
inlinenodiscard |
Definition at line 53 of file IMB_interp.hh.
References in, interpolate_bilinear_byte(), blender::math::interpolate_bilinear_byte(), and v.
Referenced by interpolate_bilinear_byte(), interpolate_bilinear_byte(), blender::imbuf::transform::sample_image(), and scale_bilinear_func().
|
inline |
Definition at line 61 of file IMB_interp.hh.
References in, interpolate_bilinear_byte(), blender::math::interpolate_bilinear_byte(), output, and v.
|
inline |
Definition at line 66 of file IMB_interp.hh.
References in, interpolate_bilinear_fl(), blender::math::interpolate_bilinear_fl(), output, and v.
|
inlinenodiscard |
Definition at line 57 of file IMB_interp.hh.
References in, interpolate_bilinear_fl(), blender::math::interpolate_bilinear_fl(), and v.
Referenced by interpolate_bilinear_fl(), interpolate_bilinear_fl(), and blender::imbuf::transform::sample_image().
|
inlinenodiscard |
Definition at line 95 of file IMB_interp.hh.
References in, interpolate_bilinear_wrap_byte(), blender::math::interpolate_bilinear_wrap_byte(), and v.
Referenced by interpolate_bilinear_wrap_byte(), paint_sample_color(), project_face_pixel(), and project_paint_PickColor().
|
inlinenodiscard |
Definition at line 99 of file IMB_interp.hh.
References in, interpolate_bilinear_wrap_fl(), blender::math::interpolate_bilinear_wrap_fl(), and v.
Referenced by interpolate_bilinear_wrap_fl(), paint_sample_color(), project_face_pixel(), and project_paint_PickColor().
|
inlinenodiscard |
Definition at line 106 of file IMB_interp.hh.
References in, interpolate_cubic_bspline_byte(), blender::math::interpolate_cubic_bspline_byte(), and v.
Referenced by do_projectpaint_thread(), interpolate_cubic_bspline_byte(), interpolate_cubic_bspline_byte(), blender::imbuf::transform::sample_image(), tracking_stabilize_frame_interpolation_cb(), and blender::seq::transform_image().
|
inline |
Definition at line 114 of file IMB_interp.hh.
References in, interpolate_cubic_bspline_byte(), blender::math::interpolate_cubic_bspline_byte(), output, and v.
|
inline |
Definition at line 119 of file IMB_interp.hh.
References in, interpolate_cubic_bspline_fl(), blender::math::interpolate_cubic_bspline_fl(), output, and v.
|
inlinenodiscard |
Definition at line 110 of file IMB_interp.hh.
References in, interpolate_cubic_bspline_fl(), blender::math::interpolate_cubic_bspline_fl(), and v.
Referenced by do_projectpaint_thread(), interpolate_cubic_bspline_fl(), interpolate_cubic_bspline_fl(), tracking_stabilize_frame_interpolation_cb(), and blender::seq::transform_image().
|
inlinenodiscard |
Definition at line 127 of file IMB_interp.hh.
References in, interpolate_cubic_mitchell_byte(), blender::math::interpolate_cubic_mitchell_byte(), and v.
Referenced by interpolate_cubic_mitchell_byte(), interpolate_cubic_mitchell_byte(), and blender::imbuf::transform::sample_image().
|
inline |
Definition at line 131 of file IMB_interp.hh.
References in, interpolate_cubic_mitchell_byte(), blender::math::interpolate_cubic_mitchell_byte(), output, and v.
|
inlinenodiscard |
Definition at line 23 of file IMB_interp.hh.
References in, interpolate_nearest_border_byte(), blender::math::interpolate_nearest_border_byte(), and v.
Referenced by IMB_sampleImageAtLocation(), interpolate_nearest_border_byte(), interpolate_nearest_border_byte(), blender::imbuf::transform::sample_image(), tracking_stabilize_frame_interpolation_cb(), and blender::seq::transform_image().
|
inline |
Definition at line 31 of file IMB_interp.hh.
References in, interpolate_nearest_border_byte(), blender::math::interpolate_nearest_border_byte(), output, and v.
|
inline |
Definition at line 35 of file IMB_interp.hh.
References in, interpolate_nearest_border_fl(), blender::math::interpolate_nearest_border_fl(), output, and v.
|
inlinenodiscard |
Definition at line 27 of file IMB_interp.hh.
References in, interpolate_nearest_border_fl(), blender::math::interpolate_nearest_border_fl(), and v.
Referenced by IMB_sampleImageAtLocation(), interpolate_nearest_border_fl(), interpolate_nearest_border_fl(), studiolight_calculate_radiance(), studiolight_matcap_preview(), tracking_stabilize_frame_interpolation_cb(), and blender::seq::transform_image().
|
inlinenodiscard |
Definition at line 42 of file IMB_interp.hh.
References in, interpolate_nearest_wrap_byte(), blender::math::interpolate_nearest_wrap_byte(), and v.
Referenced by interpolate_nearest_wrap_byte(), paint_sample_color(), and project_paint_PickColor().
|
inlinenodiscard |
Definition at line 46 of file IMB_interp.hh.
References in, interpolate_nearest_wrap_fl(), blender::math::interpolate_nearest_wrap_fl(), and v.
Referenced by interpolate_nearest_wrap_fl(), paint_sample_color(), and project_paint_PickColor().
|
static |
Definition at line 100 of file openimageio_support.cc.
References ImBuf::byte_buffer, ImBufByteBuffer::data, ImBufFloatBuffer::data, fill_all_channels(), ImBuf::float_buffer, IB_byte_data, IB_float_data, IB_test, IB_uninitialized_pixels, IMB_allocImBuf(), IMB_freeImBuf(), in, load_pixels(), and T.
Referenced by get_oiio_ibuf(), and load_pixels().
|
static |
Definition at line 143 of file openimageio_support.cc.
References ImFileColorSpace::is_hdr_float, ImFileColorSpace::metadata_colorspace, set_file_colorspace(), STRNCPY(), and blender::imbuf::ReadContext::use_metadata_colorspace.
Referenced by get_oiio_ibuf(), and set_file_colorspace().