diff --git a/libheif/image-items/overlay.cc b/libheif/image-items/overlay.cc index b4b17a6a2c..fb84689133 100644 --- a/libheif/image-items/overlay.cc +++ b/libheif/image-items/overlay.cc @@ -390,6 +390,15 @@ int ImageItem_Overlay::get_chroma_bits_per_pixel() const } +Error ImageItem_Overlay::get_coded_image_colorspace(heif_colorspace* out_colorspace, heif_chroma* out_chroma) const +{ + *out_colorspace = heif_colorspace_RGB; + *out_chroma = heif_chroma_444; + + return Error::Ok; +} + + Result> ImageItem_Overlay::add_new_overlay_item(HeifContext* ctx, const ImageOverlay& overlayspec) { if (overlayspec.get_num_offsets() > 0xFFFF) { diff --git a/libheif/image-items/overlay.h b/libheif/image-items/overlay.h index e3d42c2817..2d00501f33 100644 --- a/libheif/image-items/overlay.h +++ b/libheif/image-items/overlay.h @@ -103,6 +103,8 @@ class ImageItem_Overlay : public ImageItem int get_chroma_bits_per_pixel() const override; + Error get_coded_image_colorspace(heif_colorspace* out_colorspace, heif_chroma* out_chroma) const override; + Result encode(const std::shared_ptr& image, struct heif_encoder* encoder, const struct heif_encoding_options& options,