tbeu / matio

MATLAB MAT File I/O Library
https://matio.sourceforge.io
BSD 2-Clause "Simplified" License
330 stars 97 forks source link

compression field not populated when reading MAT v7.3 variable info #166

Closed rafal-c closed 3 years ago

rafal-c commented 3 years ago

Consider matio test file matio/test/datasets/matio_test_cases_compressed_hdf_le.mat. h5dump for this file shows

DATASET "var70" {
      ...
      FILTERS {
         COMPRESSION DEFLATE { LEVEL 3 }
      }
      ...

meaning that the variable is compressed, but if you open this variable with Mat_VarReadInfo the compression field in the matvar structure is set to MAT_COMPRESSION_NONE.

tbeu commented 3 years ago

Resolved by ffaf07e by using var70 of matio_test_cases_compressed_hdf_le.mat as test.