ofxGifEncoder icon indicating copy to clipboard operation
ofxGifEncoder copied to clipboard

No matching member function for call to 'addFrame' in OF 0.98

Open Wenzy-- opened this issue 7 years ago • 3 comments

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);

}

Wenzy-- avatar Mar 06 '17 07:03 Wenzy--

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

Wenzy-- avatar Apr 25 '17 06:04 Wenzy--

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

jesusgollonet avatar Apr 25 '17 08:04 jesusgollonet

Thanks for reply.That's a wonderfull addons : )

Wenzy-- avatar Apr 26 '17 02:04 Wenzy--