diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-12-15 13:51:03 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-12-15 13:51:03 +0300 |
commit | 3a856f7967659983b4182f8cfc640f6daf3c23cf (patch) | |
tree | f9426d373fdeb96bf96672ecb6965a1d6198d2ac /source/blender/imbuf | |
parent | 6051b80dd2353d384d5c4197f8e721735f2534de (diff) |
Fix compile errors on windows.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/transform.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/imbuf/intern/transform.cc b/source/blender/imbuf/intern/transform.cc index b91ed90576e..82c8747d28d 100644 --- a/source/blender/imbuf/intern/transform.cc +++ b/source/blender/imbuf/intern/transform.cc @@ -310,20 +310,20 @@ class Sampler { if constexpr (Filter == IMB_FILTER_BILINEAR && std::is_same_v<StorageType, float> && NumChannels == 4) { - bilinear_interpolation_color_fl(source, nullptr, r_sample.begin(), wrapped_u, wrapped_v); + bilinear_interpolation_color_fl(source, nullptr, &r_sample[0], wrapped_u, wrapped_v); } else if constexpr (Filter == IMB_FILTER_NEAREST && std::is_same_v<StorageType, unsigned char> && NumChannels == 4) { - nearest_interpolation_color_char(source, r_sample.begin(), nullptr, wrapped_u, wrapped_v); + nearest_interpolation_color_char(source, &r_sample[0], nullptr, wrapped_u, wrapped_v); } else if constexpr (Filter == IMB_FILTER_BILINEAR && std::is_same_v<StorageType, unsigned char> && NumChannels == 4) { - bilinear_interpolation_color_char(source, r_sample.begin(), nullptr, wrapped_u, wrapped_v); + bilinear_interpolation_color_char(source, &r_sample[0], nullptr, wrapped_u, wrapped_v); } else if constexpr (Filter == IMB_FILTER_BILINEAR && std::is_same_v<StorageType, float>) { if constexpr (std::is_same_v<UVWrapping, WrapRepeatUV>) { BLI_bilinear_interpolation_wrap_fl(source->rect_float, - r_sample.begin(), + &r_sample[0], source->x, source->y, NumChannels, @@ -334,7 +334,7 @@ class Sampler { } else { BLI_bilinear_interpolation_fl(source->rect_float, - r_sample.begin(), + &r_sample[0], source->x, source->y, NumChannels, @@ -406,11 +406,11 @@ class ChannelConverter { BLI_STATIC_ASSERT(SourceNumChannels == 4, "Unsigned chars always have 4 channels."); BLI_STATIC_ASSERT(DestinationNumChannels == 4, "Unsigned chars always have 4 channels."); - copy_v4_v4_uchar(pixel_pointer.get_pointer(), sample.begin()); + copy_v4_v4_uchar(pixel_pointer.get_pointer(), &sample[0]); } else if constexpr (std::is_same_v<StorageType, float> && SourceNumChannels == 4 && DestinationNumChannels == 4) { - copy_v4_v4(pixel_pointer.get_pointer(), sample.begin()); + copy_v4_v4(pixel_pointer.get_pointer(), &sample[0]); } else if constexpr (std::is_same_v<StorageType, float> && SourceNumChannels == 3 && DestinationNumChannels == 4) { |