ofxGifEncoder
ofxGifEncoder copied to clipboard
No matching member function for call to 'addFrame' in OF 0.98
Hi, jesusgollonet。 When i use this addon in OF 0.98. It reported " No matching member function for call to 'addFrame' "。but work succeed in OF 0.93~
void ofxGifEncoder::addFrame(ofImage & img, float _duration) {
if(img.getWidth() != w || img.getHeight() != h) {
ofLog(OF_LOG_WARNING, "ofxGifEncoder::addFrame image dimensions don't match, skipping frame");
return;
}
// Bugs below
addFrame(img.getPixels(), w, h, img.getPixels().getBitsPerPixel(), _duration);
}
I found the solution finally.Something changed in the recent oF releases.
addFrame(img.getPixels().getData(), w, h, img.getPixels().getBitsPerPixel(), _duration);
This will be ok
Hey! Glad you found a solution. Unfortunately I don't have the time to maintain the addon anymore so sorry about the lack of response. I added a note in the readme so that's clear from now on.
Cheers, J
Thanks for reply.That's a wonderfull addons : )