From 4daefab203836612065c01e84afef3512d33cd05 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Fri, 6 Jan 2023 16:31:57 +0100 Subject: [PATCH] keep API function with spelling typo in name until next major release --- libheif/heif_cxx.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libheif/heif_cxx.h b/libheif/heif_cxx.h index 92f5107f14..2fcbc249c0 100644 --- a/libheif/heif_cxx.h +++ b/libheif/heif_cxx.h @@ -286,6 +286,9 @@ namespace heif { void set_color_primaries(heif_color_primaries cp); + // DEPRECATED: typo in function name. Use set_color_primaries() instead. + void set_color_primaties(heif_color_primaries cp); + void set_transfer_characteristics(heif_transfer_characteristics tc); void set_matrix_coefficients(heif_matrix_coefficients mc); @@ -814,6 +817,9 @@ namespace heif { inline void ColorProfile_nclx::set_color_primaries(heif_color_primaries cp) { mProfile->color_primaries = cp; } + inline void ColorProfile_nclx::set_color_primaties(heif_color_primaries cp) + { set_color_primaries(cp); } + inline void ColorProfile_nclx::set_transfer_characteristics(heif_transfer_characteristics tc) { mProfile->transfer_characteristics = tc; }