Permalink
Browse files

add support for SD1

  • Loading branch information...
1 parent 88a495a commit 8afd541618b44de52044db678987d9ded451ed65 Roland Karlsson committed Sep 25, 2011
Showing with 7 additions and 0 deletions.
  1. +4 −0 src/x3f_io.c
  2. +3 −0 src/x3f_io.h
View
@@ -1005,6 +1005,9 @@ static x3f_directory_entry_t *x3f_get(x3f_t *x3f,
if ((DE = x3f_get(x3f, X3F_SECi, X3F_IMAGE_RAW_TRUE)) != NULL)
return DE;
+ if ((DE = x3f_get(x3f, X3F_SECi, X3F_IMAGE_RAW_TRUE_SD1)) != NULL)
+ return DE;
+
return NULL;
}
@@ -1604,6 +1607,7 @@ static void x3f_load_image(x3f_info_t *I, x3f_directory_entry_t *DE)
switch (ID->type_format) {
case X3F_IMAGE_RAW_TRUE:
+ case X3F_IMAGE_RAW_TRUE_SD1:
x3f_load_true(I, DE);
break;
case X3F_IMAGE_RAW_HUFFMAN_10BIT:
View
@@ -47,6 +47,9 @@
#define X3F_CMbM (uint32_t)(0x4d624d43)
#define X3F_CMb (uint32_t)(0x00624d43)
+/* TODO: bad name */
+#define X3F_IMAGE_RAW_TRUE_SD1 (uint32_t)(0x0001001e)
+
#define X3F_IMAGE_RAW_TRUE (uint32_t)(0x0003001e)
#define X3F_IMAGE_RAW_HUFFMAN_10BIT (uint32_t)(0x00030006)
#define X3F_IMAGE_THUMB (uint32_t)(0x00020003)

0 comments on commit 8afd541

Please sign in to comment.