开发者

Creating a Bitmap from RGB video frames in Android

开发者 https://www.devze.com 2023-03-21 21:45 出处:网络
I have RGB video frames coming from native code, I have read somewhere its possible to convert RGB format frames into Bitmaps, Can anybody please help in telling how to achieve this in the application

I have RGB video frames coming from native code, I have read somewhere its possible to convert RGB format frames into Bitmaps, Can anybody please help in telling how to achieve this in the application side (开发者_StackOverflowJAVA layer) in Android??


Try this:

Bitmap bmp= Bitmap.createBitmap(rgb, size.width,size.height, Bitmap.Config.ARGB_8888);
0

精彩评论

暂无评论...
验证码 换一张
取 消