Skip to content

Commit

Permalink
add support for SD1
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Karlsson committed Sep 25, 2011
1 parent 88a495a commit 8afd541
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/x3f_io.c
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions src/x3f_io.h
Expand Up @@ -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)
Expand Down

0 comments on commit 8afd541

Please sign in to comment.