summaryrefslogtreecommitdiffstats
path: root/plugins/dexela/software-roi.h
blob: 3fb3b69c1a63363dfe02bde37e517b7f24ead050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef SOFTWAREROI_H
#define SOFTWAREROI_H
#include <glib.h>

/**
 * @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, guint bytesPerPixel, guchar* dest, guint x, guint y, guint roiWidth, guint roiHeight);

#endif // SOFTWAREROI_H