ffmpeg - Android Samsung Galaxy S2 / S3 device bitmap rendering to ImageView issue -
i stuck in strange bitmap
rendering issue samsung android devices. let me discuss in brief have done.
i taking frame video , rendering in imageview
using ffmpeg. following code gives me bitmap object in return jni
callback.
img_convert_ctx = sws_getcontext(pcodecctx->width, pcodecctx->height, pcodecctx->pix_fmt, target_width, target_height, pix_fmt_rgb24, sws_bicubic, null, null,null); sws_scale(img_convert_ctx,(const uint8_t* const *) pframe->data,pframe->linesize, 0, pcodecctx->height,pframergb->data, pframergb->linesize);
next, i'm setting bitmap
imageview
. issue bitmap
rendering in maximum devices except samsung s2/s3.
a>working in :- screen shot 1
- nexus 4
- htc 1 / htc 1 x
- lg optimus
- sony experia
- samsung galaxy s plus / samsung exhibit (android 2.3)
issue :- b>samsung galaxy s2 & s3 : second screen shot.
for case b, part of video rendering @ right side if notice.
i have tried saving bitmap
jni
jpg in sd card , read again set imageview
, works. don't understand going wrong raw bitmap jni
callback, samsung s2 hardware ? please me on this.
Comments
Post a Comment