[android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-23 Thread worked
His name is Doug, not Donug. Get a clue. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-23 Thread Siji T G
Sorry for that typo. Actually it was a bug in my h264 video decoding native code ,which caused the problems And i am still a new be in C. As I now understand decodeByteArray() can decode compressed image data of format PNG and JPG and my image data is of type ARGB. Any way my problems solved.

[android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-22 Thread Doug
The API is declared in bitmap.h. You will have to learn how to use it on your own. Just make sure you have a Bitmap object and can set its pixels directly using the config it was created with. Your pixels array must exactly match what the config demands. Doug On Sep 19, 10:32 pm, Siji T G

Re: [android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-22 Thread Siji T G
.Donug, My issue is already solved. Thanks any way. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-19 Thread Siji T G
Thanks Donug, I think , this will help. Let me try... Regards Siji -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-19 Thread Siji T G
Donug, You mean to use bitmap.h ?? Could you please provide me some sample code in C for setting pixels of bitmap. I have data in jbyteArray out_buf. How to set out_buf as pixels of bitmap?? Thanks in advance. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-17 Thread Doug
Create the Bitmap in native code and return it to the java layer. The NDK supports this starting beginning with Android 2.2. Doug On Sep 16, 12:02 am, Siji T G s...@techgentsia.com wrote: Thanks for the reply Zsolt. My data stream comes from h264 video decoder , which is native. Format of

Re: [android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-17 Thread nageswara rao rajana
Hi, Try this to convert byte array to bitmap Bitmap bMap = BitmapFactory.decodeByteArray(data, 0, data.length);//(Byte[] data) On Sat, Sep 17, 2011 at 11:56 AM, Doug beafd...@gmail.com wrote: Create the Bitmap in native code and return it to the java layer. The NDK supports this

[android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-16 Thread Zsolt Vasvari
Where is it documented as to the format of your data stream? From what I can gather from the docs is that if the data cannot be decoded, you get NULL back. On Sep 16, 2:02 pm, Siji T G s...@techgentsia.com wrote:  Hello Oscar, Thanks for the reply. But I already  tried this approach.

Re: [android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-16 Thread Siji T G
Thanks for the reply Zsolt. My data stream comes from h264 video decoder , which is native. Format of this data stream is ARGB. Please note that I could display this image correctly using Bitmap. createBitmap() and setPixels () . Regards Siji -- You received this message because you are