Skip to content

Commit

Permalink
keep API function with spelling typo in name until next major release
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Jan 6, 2023
1 parent 643ca81 commit 4daefab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libheif/heif_cxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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; }

Expand Down

0 comments on commit 4daefab

Please sign in to comment.