首页 > Linux操作系统 > Linux操作系统 > screenshot in Android - 3

screenshot in Android - 3

原创 Linux操作系统 作者:MagicProgram 时间:2012-06-13 09:36:39 0 删除 编辑
In the continued development, I found a error or a bug in screenshot application, and the detail is when I play some video on the android device, the screenshot will read a black hole rather than the video's image.


This occurs since many display controllers don't provide access to the hardware composed output, it goes directly to the display and never hits a memory buffer I can read from. So the screenshot code generally only read from the UI buffer and the overlay contents are missing. Not all hardware works this way, but many do.

My screenshot codes just take a copy of the frame. buffer, however, surfaces in an overlay ( often the case with video playback ) doesn't exist in the frame. buffer. So I can't get the video's mirror in my screenshot application.

来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

上一篇: Android下截屏-2


  • 博文量
  • 访问量