From f39be2686446c41a5fbf93eba7fb40ca99efcc3a Mon Sep 17 00:00:00 2001 From: Mihael Koep Date: Tue, 9 Sep 2014 13:57:32 +0200 Subject: Add software roi feature to dexela plugin --- plugins/dexela/software-roi.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 plugins/dexela/software-roi.h (limited to 'plugins/dexela/software-roi.h') diff --git a/plugins/dexela/software-roi.h b/plugins/dexela/software-roi.h new file mode 100644 index 0000000..e2916f0 --- /dev/null +++ b/plugins/dexela/software-roi.h @@ -0,0 +1,18 @@ +#ifndef SOFTWAREROI_H +#define SOFTWAREROI_H +#include + +/** + * @brief apply_software_roi Extracts the pixels defined by x, y, roiWidth, roiHeight from + * the src array and writes them into the dest buffer + * @param src + * @param srcWidth + * @param dest + * @param x + * @param y + * @param roiWidth + * @param roiHeight + */ +void apply_software_roi(const guchar* src, guint srcWidth, guchar* dest, guint x, guint y, guint roiWidth, guint roiHeight); + +#endif // SOFTWAREROI_H -- cgit v1.2.3 From 718cb1e5d2059b5d88bfe34d8c8bcca6a4550249 Mon Sep 17 00:00:00 2001 From: Mihael Koep Date: Tue, 16 Sep 2014 11:34:47 +0200 Subject: Fix dexela software roi for multi-byte images --- plugins/dexela/software-roi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/dexela/software-roi.h') diff --git a/plugins/dexela/software-roi.h b/plugins/dexela/software-roi.h index e2916f0..3fb3b69 100644 --- a/plugins/dexela/software-roi.h +++ b/plugins/dexela/software-roi.h @@ -13,6 +13,6 @@ * @param roiWidth * @param roiHeight */ -void apply_software_roi(const guchar* src, guint srcWidth, guchar* dest, guint x, guint y, guint roiWidth, guint roiHeight); +void apply_software_roi(const guchar* src, guint srcWidth, guint bytesPerPixel, guchar* dest, guint x, guint y, guint roiWidth, guint roiHeight); #endif // SOFTWAREROI_H -- cgit v1.2.3