Commit 747edc03 for libheif
commit 747edc03467c166cd513d9efcc56796a2b6b87cc
Author: Dirk Farin <dirk.farin@gmail.com>
Date: Fri May 15 02:22:50 2026 +0200
use new names in color_conversion_fuzzer
diff --git a/fuzzing/color_conversion_fuzzer.cc b/fuzzing/color_conversion_fuzzer.cc
index 105706eb..208e7f79 100644
--- a/fuzzing/color_conversion_fuzzer.cc
+++ b/fuzzing/color_conversion_fuzzer.cc
@@ -70,11 +70,11 @@ static bool read_plane(BitstreamRange* range,
if (!range->prepare_read(static_cast<size_t>(width) * height)) {
return false;
}
- if (auto err = image->add_plane(channel, width, height, bit_depth, heif_get_disabled_security_limits())) {
+ if (auto err = image->add_channel(channel, width, height, bit_depth, heif_get_disabled_security_limits())) {
return false;
}
size_t stride;
- uint8_t* plane = image->get_plane(channel, &stride);
+ uint8_t* plane = image->get_channel_memory(channel, &stride);
assert(stride >= width);
auto stream = range->get_istream();
for (uint32_t y = 0; y < height; y++, plane += stride) {
@@ -96,11 +96,11 @@ static bool read_plane_interleaved(BitstreamRange* range,
if (!range->prepare_read(static_cast<size_t>(width) * height * comps)) {
return false;
}
- if (auto err = image->add_plane(channel, width, height, bit_depth, heif_get_disabled_security_limits())) {
+ if (auto err = image->add_channel(channel, width, height, bit_depth, heif_get_disabled_security_limits())) {
return false;
}
size_t stride;
- uint8_t* plane = image->get_plane(channel, &stride);
+ uint8_t* plane = image->get_channel_memory(channel, &stride);
assert(stride >= width * comps);
auto stream = range->get_istream();
for (uint32_t y = 0; y < height; y++, plane += stride) {