Author Topic: framebuffer.getpixels and screen recorder  (Read 6536 times)

Offline MichaelJPCT

  • float
  • ****
  • Posts: 267
    • View Profile
framebuffer.getpixels and screen recorder
« on: August 25, 2023, 09:32:01 am »
i have an A53@2.3G + mali T830 device and used the screen recorder built in the Android7 system. i get almost 30fps video recording my 3D app. (res 1920x1080)
that means Android can read the screen into system RAM at high rate. but the image was produced in GPU. does that mean there is a faster way than fb.getPixels ?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12297
    • View Profile
    • http://www.jpct.net
Re: framebuffer.getpixels and screen recorder
« Reply #1 on: August 25, 2023, 05:38:29 pm »
Not sure what the screen recorder does. Maybe the built-in video encoder can encode screen content directly? No idea...getPixels() is as slow as OpenGL ES. Plus the conversion into jPCT-AE internal format, which requires some byte flipping.

Offline MichaelJPCT

  • float
  • ****
  • Posts: 267
    • View Profile
Re: framebuffer.getpixels and screen recorder
« Reply #2 on: August 27, 2023, 08:41:26 am »
i think it uses the video encode/decode processor to do the encoding in vram then transfer the data stream to system ram/network/storage, just like recording video from physical camera.