Error: SkImageDecoder::Factory returned null
I am working on a project which is using mpeg2 codec for decoding of a video. My codec is in C. After decoding a video it is returning unsigned char pointer of RGB buffer which is a pointer to an image bits which are stored as an byte Array. My display function is in Android. So I have to send that information to Android using JNI. So Before calling to display function I have copied that RGB buffer data in to byte Array and pass it to display function.

    BitmapFactory.Options opt = new BitmapFactory.Options();
        opt.inDither = false;
        opt.inPreferredConfig = Bitmap.Config.RGB_565;
 Bitmap bit=BitmapFactory.decodeByteArray(data, 0, data.length,opt);`canvas.drawBitmap(bit, draw_x, draw_y, null);`

But when I am running the application the message is coming DEBUG/skia(327):SkImageDecoder::Factory returned null. I don't know why bitmapFactory is returning null. Since I am biggner of Android. I Dont know too much about Android programming. Can anybody Please help me..

Thanks in Advance

Error: SkImageDecoder::Factory returned null
===

I am working on a project which is using mpeg2 codec for decoding of a video. My codec is in C. After decoding a video it is returning unsigned char pointer of RGB buffer which is a pointer to an image bits which are stored as an byte Array. My display function is in Android. So I have to send that information to Android using JNI. So Before calling to display function I have copied that RGB buffer data in to byte Array and pass it to display function.

    BitmapFactory.Options opt = new BitmapFactory.Options();
        opt.inDither = false;
        opt.inPreferredConfig = Bitmap.Config.RGB_565;
 Bitmap bit=BitmapFactory.decodeByteArray(data, 0, data.length,opt);`canvas.drawBitmap(bit, draw_x, draw_y, null);`

But when I am running the application the message is coming DEBUG/skia(327):SkImageDecoder::Factory returned null. I don't know why bitmapFactory is returning null. Since I am biggner of Android. I Dont know too much about Android programming. Can anybody Please help me..

Thanks in Advance
