Search found 7 matches

by panzm
2016-04-20T01:59:28-07:00
Forum: Magick++
Topic: Image slow in Multi-thread
Replies: 9
Views: 15627

Re: Image slow in Multi-thread

I'm on Linux. [fsdevops@localhost lib64]$ Magick++-config --ldflags --libs -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16 -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16 [fsdevops@localhost lib64]$ ldd libMagick++-6.Q16.so linux-vdso.so.1 (0x00007fffccda6000) libMagickWand-6.Q16.so.2 ...
by panzm
2016-04-18T20:49:19-07:00
Forum: Magick++
Topic: Image slow in Multi-thread
Replies: 9
Views: 15627

Re: Image slow in Multi-thread

I want to deal a lot of image in parallel.
how can i do that efficiently?
thanks.
by panzm
2016-04-18T20:43:49-07:00
Forum: Magick++
Topic: Image slow in Multi-thread
Replies: 9
Views: 15627

Re: Image slow in Multi-thread

i read a small image,40X40,but didn`t get 'enter Thread ID' intermixed with 'Thread ID'. i find this code in github: void Magick::Image::write(Blob *blob_) { size_t length=0; void *data; modifyImage(); GetPPException; data=[b]ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);[/b] if ...
by panzm
2016-04-18T07:12:32-07:00
Forum: Magick++
Topic: Image slow in Multi-thread
Replies: 9
Views: 15627

Re: Image slow in Multi-thread

the output is: enter Thread ID: 139942202099456 enter Thread ID: 139942193706752 Thread ID: 139942202099456execute time:422.408 Thread ID: 139942193706752execute time:388.353 but if i set #define NUM_THREADS 20 the output is: enter Thread ID: 140502406002432 enter Thread ID: 140502397609728 enter ...
by panzm
2016-04-18T07:08:31-07:00
Forum: Magick++
Topic: Image slow in Multi-thread
Replies: 9
Views: 15627

Re: Image slow in Multi-thread

here is my code: #include <Magick++.h> #include <iostream> #include <unistd.h> #include <time.h> #include <pthread.h> using namespace std; using namespace Magick; #define NUM_THREADS 2 void *testGM(void *ptr) { long tid= pthread_self(); cout << "enter Thread ID: " << tid << endl; Image watermark ...
by panzm
2016-04-18T02:28:06-07:00
Forum: Magick++
Topic: Image slow in Multi-thread
Replies: 9
Views: 15627

Image slow in Multi-thread

1. Blob blob(data,len);
2. Image image(blob);
code above running in Multi-thread,Line 2 will run sequentially. is because image(blob) is a I/O operation and blocked?
i need deal with a lot of pictures,may i deal with them concurrently?
by panzm
2016-03-17T04:58:27-07:00
Forum: Magick++
Topic: how to add watermark with Magick++?
Replies: 1
Views: 9709

how to add watermark with Magick++?

how to add watermark with Magick++?