|
Blender V5.3
|
Classes | |
| struct | TransformContext |
Functions | |
| static bool | should_discard (const TransformContext &ctx, const float2 &uv) |
| template<typename T> | |
| static T * | init_pixel_pointer (ImBuf *image, int x, int y) |
| template<> | |
| uchar * | init_pixel_pointer (ImBuf *image, int x, int y) |
| template<> | |
| float * | init_pixel_pointer (ImBuf *image, int x, int y) |
| static float | wrap_uv (float value, int size) |
| template<eIMBInterpolationFilterMode Filter, typename T, int NumChannels, bool WrapUV> | |
| static void | sample_image (const ImBuf *source, float u, float v, T *r_sample) |
| static void | add_subsample (const float src[4], float dst[4]) |
| static void | add_subsample (const uchar src[4], float dst[4]) |
| static void | store_premul_float_sample (const float sample[4], float dst[4]) |
| static void | store_premul_float_sample (const float sample[4], uchar dst[4]) |
| template<int SrcChannels> | |
| static void | store_sample (const uchar *sample, uchar *dst) |
| template<int SrcChannels> | |
| static void | store_sample (const float *sample, float *dst) |
| template<eIMBInterpolationFilterMode Filter, typename T, int SrcChannels, bool CropSource, bool WrapUV> | |
| static void | process_scanlines (const TransformContext &ctx, IndexRange y_range) |
| template<eIMBInterpolationFilterMode Filter, typename T, int SrcChannels> | |
| static void | transform_scanlines (const TransformContext &ctx, IndexRange y_range) |
| template<eIMBInterpolationFilterMode Filter> | |
| static void | transform_scanlines_filter (const TransformContext &ctx, IndexRange y_range) |
| static float | calc_coverage (float2 pos, int2 ipos, float2 delta, bool is_steep) |
| static void | edge_aa (const TransformContext &ctx) |
Definition at line 194 of file imbuf/intern/transform.cc.
References add_subsample(), and blender::add_v4_v4().
Referenced by add_subsample(), add_subsample(), and process_scanlines().
Definition at line 199 of file imbuf/intern/transform.cc.
References add_subsample(), blender::add_v4_v4(), and blender::straight_uchar_to_premul_float().
|
static |
Definition at line 367 of file imbuf/intern/transform.cc.
References calc_coverage(), blender::math::clamp(), and fabsf.
Referenced by calc_coverage(), and edge_aa().
|
static |
Definition at line 394 of file imbuf/intern/transform.cc.
References blender::math::abs(), blender::ImBuf::byte_data_for_write(), calc_coverage(), blender::imbuf::transform::TransformContext::dst, edge_aa(), fabsf, blender::ImBuf::float_data_for_write(), length(), blender::math::max(), roundf, blender::imbuf::transform::TransformContext::src_corners, blender::ImBuf::x, and blender::ImBuf::y.
Referenced by edge_aa().
Definition at line 106 of file imbuf/intern/transform.cc.
References init_pixel_pointer(), blender::x, and y.
Definition at line 102 of file imbuf/intern/transform.cc.
References init_pixel_pointer(), blender::x, and y.
|
static |
References init_pixel_pointer(), T, blender::x, and y.
Referenced by init_pixel_pointer(), and process_scanlines().
|
static |
Definition at line 248 of file imbuf/intern/transform.cc.
References add_subsample(), blender::imbuf::transform::TransformContext::add_x, blender::imbuf::transform::TransformContext::add_y, blender::math::clamp(), blender::imbuf::transform::TransformContext::dst, blender::imbuf::transform::TransformContext::dst_region_x_range, blender::bke::Filter, blender::IndexRange::first(), blender::IMB_FILTER_BOX, blender::IMB_FILTER_NEAREST, init_pixel_pointer(), blender::math::length(), blender::mul_v4_v4fl(), output, process_scanlines(), roundf, sample, sample_image(), should_discard(), blender::imbuf::transform::TransformContext::src, blender::imbuf::transform::TransformContext::start_uv, store_premul_float_sample(), store_sample(), and T.
Referenced by process_scanlines(), and transform_scanlines().
|
static |
Definition at line 125 of file imbuf/intern/transform.cc.
References BLI_assert_unreachable, blender::bke::Filter, blender::ImBuf::float_data(), blender::IMB_FILTER_BILINEAR, blender::IMB_FILTER_CUBIC_BSPLINE, blender::IMB_FILTER_CUBIC_MITCHELL, blender::IMB_FILTER_NEAREST, blender::imbuf::interpolate_bilinear_byte(), blender::imbuf::interpolate_bilinear_fl(), blender::math::interpolate_bilinear_fl(), blender::math::interpolate_bilinear_wrapmode_fl(), blender::imbuf::interpolate_cubic_bspline_byte(), blender::math::interpolate_cubic_bspline_fl(), blender::imbuf::interpolate_cubic_mitchell_byte(), blender::math::interpolate_cubic_mitchell_fl(), blender::imbuf::interpolate_nearest_border_byte(), blender::math::interpolate_nearest_border_fl(), blender::math::Repeat, sample_image(), T, blender::v, wrap_uv(), blender::ImBuf::x, and blender::ImBuf::y.
Referenced by process_scanlines(), and sample_image().
|
static |
Definition at line 95 of file imbuf/intern/transform.cc.
References should_discard(), blender::imbuf::transform::TransformContext::src_crop, blender::rctf::xmax, blender::rctf::xmin, blender::rctf::ymax, and blender::rctf::ymin.
Referenced by process_scanlines(), and should_discard().
|
static |
Definition at line 206 of file imbuf/intern/transform.cc.
References blender::copy_v4_v4(), sample, and store_premul_float_sample().
Referenced by process_scanlines(), store_premul_float_sample(), and store_premul_float_sample().
|
static |
Definition at line 211 of file imbuf/intern/transform.cc.
References blender::premul_float_to_straight_uchar(), sample, and store_premul_float_sample().
|
static |
Definition at line 222 of file imbuf/intern/transform.cc.
References BLI_assert_unreachable, blender::copy_v4_fl4(), blender::copy_v4_v4(), sample, and store_sample().
|
static |
Definition at line 216 of file imbuf/intern/transform.cc.
References blender::BLI_STATIC_ASSERT(), blender::copy_v4_v4_uchar(), sample, and store_sample().
Referenced by process_scanlines(), store_sample(), and store_sample().
|
static |
Definition at line 320 of file imbuf/intern/transform.cc.
References BLI_assert_unreachable, blender::IMB_TRANSFORM_MODE_CROP_SRC, blender::IMB_TRANSFORM_MODE_REGULAR, blender::IMB_TRANSFORM_MODE_WRAP_REPEAT, blender::imbuf::transform::TransformContext::mode, process_scanlines(), and transform_scanlines().
Referenced by transform_scanlines(), and transform_scanlines_filter().
|
static |
Definition at line 339 of file imbuf/intern/transform.cc.
References blender::ImBuf::byte_data(), blender::ImBuf::channels, blender::imbuf::transform::TransformContext::dst, blender::ImBuf::float_data(), blender::imbuf::transform::TransformContext::src, transform_scanlines(), and transform_scanlines_filter().
Referenced by blender::IMB_transform(), and transform_scanlines_filter().
Definition at line 111 of file imbuf/intern/transform.cc.
References floorf, wrap_uv(), and blender::x.
Referenced by sample_image(), and wrap_uv().