summaryrefslogtreecommitdiffstats
path: root/src/libmime/images.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-09 18:47:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-09 18:47:32 +0000
commit3fc07e7cbbeb9470a27d4d011a88a08f0dddb668 (patch)
tree2fd0cc212d397ca60a56deeaafab32cc0790548b /src/libmime/images.h
parentae78cac6dc23367df1df09aee9ea9fade9b7a937 (diff)
downloadrspamd-3fc07e7cbbeb9470a27d4d011a88a08f0dddb668.tar.gz
rspamd-3fc07e7cbbeb9470a27d4d011a88a08f0dddb668.zip
[Feature] Cache and simplify DCT and jpeg decode
Diffstat (limited to 'src/libmime/images.h')
-rw-r--r--src/libmime/images.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libmime/images.h b/src/libmime/images.h
index 1ac6c8786..1ad73f69e 100644
--- a/src/libmime/images.h
+++ b/src/libmime/images.h
@@ -7,6 +7,8 @@ struct html_image;
struct rspamd_task;
struct rspamd_mime_part;
+#define RSPAMD_DCT_LEN (64 * 64)
+
enum rspamd_image_type {
IMAGE_TYPE_PNG = 0,
IMAGE_TYPE_JPG,
@@ -24,7 +26,7 @@ struct rspamd_image {
guint32 width;
guint32 height;
gboolean is_normalized;
- gdouble *dct;
+ guchar *dct;
};
/*