# HG changeset patch # User magedrifaat # Date 1661884370 -7200 # Node ID f8baeb850b3697005d87431b71eff42085283ca9 # Parent 0cdb7f35641e00fcd0c1ecf4e8eec7720d92aaba Tiff: Moved PKG_ADD logic to Tiff.m. diff -r 0cdb7f35641e -r f8baeb850b36 libinterp/corefcn/__tiff__.cc --- a/libinterp/corefcn/__tiff__.cc Sun Aug 28 21:34:03 2022 +0200 +++ b/libinterp/corefcn/__tiff__.cc Tue Aug 30 20:32:50 2022 +0200 @@ -142,7 +142,7 @@ } // A map of tag names supported by matlab, there are some differences - // than LibTIFF's names (e.g. Photometric vs PhotometricInerpretation) + // than LibTIFF's names (e.g. Photometric vs PhotometricInterpretation) static const std::map tag_name_map = { {"SubFileType", 254}, {"ImageWidth", 256}, diff -r 0cdb7f35641e -r f8baeb850b36 scripts/io/Tiff.m --- a/scripts/io/Tiff.m Sun Aug 28 21:34:03 2022 +0200 +++ b/scripts/io/Tiff.m Tue Aug 30 20:32:50 2022 +0200 @@ -1,3 +1,17 @@ +## PKG_ADD: ## Discard result to avoid polluting workspace with ans at startup. +## PKG_ADD: if __have_feature__ ("TIFF") +## PKG_ADD: [~] = imformats("update", "tif", +## PKG_ADD: struct ("read", @__tiff_imread__, +## PKG_ADD: "write", @__tiff_imwrite__, +## PKG_ADD: "info", @__tiff_imfinfo__, +## PKG_ADD: "ext", {{"tif", "tiff"}}, +## PKG_ADD: "isa", @__tiff_isa__, +## PKG_ADD: "alpha", true, +## PKG_ADD: "multipage", true, +## PKG_ADD: "description", "Tagged Image File Format", +## PKG_ADD: "coder", "TIFF")); +## PKG_ADD: endif + classdef Tiff properties (Constant = true) TagID = __tiff_make_tagid__ ();