On 09/01/17 23:59, lucky chou wrote:
> Hi,
> As far as I know, it seems that androidmedia plugin can only use OpenGL
> output video, right?
> I hope similar to nuplayer, Video frame be displayed on surface which is
> passed down by MediaPlayer, how to do it?
> AMediaCodec_configure (codec,format, surface,
> NULL, flags)
>
> Because in some devices, especially on TV device,
> direct surface output video usually has hardware acceleration.
androidmedia can currently only use OpenGL for accelerated video
display, yes. It uses the SurfaceTexture API to retrieve the OpenGL
texture to render the resulting video frame to the screen.
The other possibility (that's not currently implemented) is to pass a
SurfaceView based Surface into MediaCodec for decoding to render the
resulting video frames. To do so, one would need a special sink element
as well as modifications to the androidmedia decoder to allow setting
the Surface from outside. All doable though :)
Cheers
-Matt
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel