[Bug 731204] androidmedia: Implement zerocopy rendering

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jun 25 04:01:10 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=731204
  GStreamer | gst-plugins-bad | git

--- Comment #23 from Andoni Morales <ylatuya at gmail.com> 2014-06-25 11:01:05 UTC ---
Something like:

public class GstAmcVideodecOnFrameAvailableListener implements
OnFrameAvailableListener
{
  native void gst_amc_video_dec_frame_available (SurfaceTexture
surfaceTexture);

  private synchronized void emitFrameReady (SurfaceTexture surfaceTexture)
  {
    gst_amc_video_dec_frame_available (surfaceTexture);
  }

  @Override
  public void onFrameAvailable(SurfaceTexture surfaceTexture)
  {
    emitFrameReady (surfaceTexture);
  }
}

This makes it a bit more complicated to use the element. When the element is
created, you will need to try to create an instance of
GstAmcVideodecOnFrameAvailableListener and if it fails disable direct
rendering.

Another option options is to delay rendering until the next frame is decoded
and do it right before decoding the next frame introducing an extra latency of
1/fps.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list