openstf / minicap

Stream real-time screen capture data out of Android devices.
Other
1.72k stars 620 forks source link

Remote debugging screen color distortion #131

Open guixiangzi19 opened 6 years ago

guixiangzi19 commented 6 years ago

I debug the phone(Hisense M30T) remotely on the stf platform, the screen color is distorted. Adb screenshot is a real display of the phone

The Phone model:Hisense M30T, android 6.0.1

Minicap is the latest version

this is minicap screen capture: minicap screencap

this is adb screen capture(adb shell /system/bin/screencap -p /sdcard/test.png): adb screencap

739988940 commented 6 years ago

解决了吗?我也遇到这个问题, 输出的图片和用screencap命令 获取的明显颜色不对.

sorccu commented 6 years ago

I don't have that phone so I can't try it out. My guess is that the device lies about its color format. It might be BGRA instead of RGBA, for example. Try modifying the code and see if something changes.

739988940 commented 6 years ago

tim 20180626152739 minicap screencap i think this not about its color format,this is my Original Image and difference of them,and myphone is nexus 6

739988940 commented 6 years ago

I have already find the cause of this problem,it's because minicap use turbojpeg , it can convert rgb to yuv,so it looks like distortion. could you use a lib instead turbojpeg to Keep original colors, and keep high speed. thanks

sorccu commented 6 years ago

Which lib do you mean?

739988940 commented 6 years ago

I don't know , I have no idea