Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f84b61

Browse files
committed
remove to_string_argb
Signed-off-by: Issam Arabi <[email protected]>
1 parent e1e94a0 commit 3f84b61

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/_backend_agg.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,6 @@
55
#include "_backend_agg.h"
66
#include "mplutils.h"
77

8-
void BufferRegion::to_string_argb(uint8_t *buf)
9-
{
10-
unsigned char *pix;
11-
unsigned char tmp;
12-
size_t i, j;
13-
14-
memcpy(buf, data, (size_t) height * stride);
15-
16-
for (i = 0; i < (size_t)height; ++i) {
17-
pix = buf + i * stride;
18-
for (j = 0; j < (size_t)width; ++j) {
19-
// Convert rgba to argb
20-
tmp = pix[2];
21-
pix[2] = pix[0];
22-
pix[0] = tmp;
23-
pix += 4;
24-
}
25-
}
26-
}
27-
288
RendererAgg::RendererAgg(unsigned int width, unsigned int height, double dpi)
299
: width(width),
3010
height(height),

0 commit comments

Comments
 (0)