screenshot in Android - 3

MagicProgram發表於2012-06-13
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.

Why?

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部落格 ” ,連結:http://blog.itpub.net/25432352/viewspace-732634/,如需轉載,請註明出處,否則將追究法律責任。

相關文章