aboutsummaryrefslogtreecommitdiff
path: root/project/src/lib-image.h
diff options
context:
space:
mode:
authorWiimm <wiimm@wiimm.de>2023-01-14 08:17:36 +0100
committerWiimm <wiimm@wiimm.de>2023-01-14 08:17:36 +0100
commitf978a965248a5a082d6801ef394bdebb55c78e4f (patch)
treefcf73a3829d81be281361fbc34c19d0e4bf706b3 /project/src/lib-image.h
parent7d8344f3637d59b982c2ca0b1d8fd2889ec5d4a6 (diff)
SZS v2.33a
Diffstat (limited to 'project/src/lib-image.h')
-rw-r--r--project/src/lib-image.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/project/src/lib-image.h b/project/src/lib-image.h
index e7fc84b..98c50c3 100644
--- a/project/src/lib-image.h
+++ b/project/src/lib-image.h
@@ -17,7 +17,7 @@
* This file is part of the SZS project. *
* Visit https://szs.wiimm.de/ for project details and sources. *
* *
- * Copyright (c) 2011-2022 by Dirk Clemens <wiimm@wiimm.de> *
+ * Copyright (c) 2011-2023 by Dirk Clemens <wiimm@wiimm.de> *
* *
***************************************************************************
* *
@@ -380,10 +380,31 @@ enumError SaveIMG
);
///////////////////////////////////////////////////////////////////////////////
+// [[tpl_raw_t]]
+
+typedef struct tpl_raw_t
+{
+ bool valid; // 'data' is valid
+ mem_t data; // raw data, alloced
+ int n_image; // number of images including mainn image
+ struct mipmap_info_t *mmi; // 'n_images' info recored, alloced
+ const endian_func_t *endian; // endian functions
+}
+tpl_raw_t;
+
+void ResetRawTPL ( tpl_raw_t *raw );
+
+enumError CreateRawTPL
+(
+ tpl_raw_t * raw, // results with alloced data
+ Image_t * src_img // pointer to valid source img
+);
+
+//-----------------------------------------------------------------------------
enumError SaveTPL
(
- Image_t * src_img, // pointer to valid source img
+ Image_t *src_img, // pointer to valid source img
FILE *f, // output file, if NULL then use fname+overwrite
ccp fname, // filename of source
bool overwrite // true: force overwriting