android-ndk-gif icon indicating copy to clipboard operation
android-ndk-gif copied to clipboard

GifEncoder.EncodingType.ENCODING_TYPE_STABLE_HIGH_MEMORY give me 0kb gif file

Open didikeeLunaon opened this issue 7 years ago • 0 comments

there is part of my code:

if (gifEncoder != null) {
            Bitmap bitmap = createBitmapFromPixelsBuffer();
            bitmap = Bitmap.createScaledBitmap(bitmap, scaleWidth, scaleHeight, true);
            gifEncoder.encodeFrame(bitmap, delay);
            // just for check log
            if (bitmap == null){
                Log.e(TAG, "encodeFrame:  is null" + delay);
            }else {
                Log.e(TAG, "encodeFrame:  not null" + delay);
            }
        }

when i set other two type,it work will,just in ENCODING_TYPE_STABLE_HIGH_MEMORY type,it's give me empty gif file,what's wrong?

didikeeLunaon avatar Oct 17 '17 01:10 didikeeLunaon