Skip to content

Commit e622503

Browse files
committed
Consistently output X-Binary-Size-Third-Dimension: 1 for two-dimensional data
Addresses failures in _CTest_ tests: * cmp-cif2cbf_packed.cbf-makecbf.cbf * cmp-cif2cbf_packed.cbf-img2cif_packed.cbf * cmp-cif2cbf_canonical.cbf-img2cif_canonical.cbf * cmp-makecbf.cbf-cif2cbf_encp.cbf
1 parent f351b8d commit e622503

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/img2cif.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,12 +912,12 @@ int main (int argc, char *argv [])
912912
cbf_failnez (cbf_set_integerarray_wdims_fs (cbf, compression, 1,
913913
img_pixelptr (img, 0, 0), sizeof (int), 1,
914914
img_rows (img) * img_columns (img),
915-
"little_endian",dimension[0],dimension[1],0,0 ))
915+
"little_endian",dimension[0],dimension[1],1,0 ))
916916
} else {
917917
cbf_failnez (cbf_set_integerarray_wdims_fs (cbf, compression, 1,
918918
img_pixelptr (img, 0, 0), sizeof (int), 1,
919919
img_rows (img) * img_columns (img),
920-
"little_endian",dimension[1],dimension[0],0,0 ))
920+
"little_endian",dimension[1],dimension[0],1,0 ))
921921
}
922922

923923

examples/makecbf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ int main (int argc, char *argv [])
563563
cbf_failnez (cbf_set_integerarray_wdims_fs (cbf, CBF_PACKED|CBF_FLAT_IMAGE, 1,
564564
img_pixelptr (img, 0, 0), sizeof (int), 1,
565565
img_rows (img) * img_columns (img),
566-
"little_endian",img_rows (img),img_columns (img),0,0 ))
566+
"little_endian",img_rows (img),img_columns (img),1,0 ))
567567

568568

569569
/* Write the new file */

0 commit comments

Comments
 (0)