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

  1. nexus 4
  2. htc 1 / htc 1 x
  3. lg optimus
  4. sony experia
  5. 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.

with nexus 4/htc/xolo/sony/samsung s plus

with samsung s3/s3


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -