[Android] [PATCH] Replace HW acceleration checkbox by a list allowing the user to choose which mode to use

XilasZ xilasz at gmail.com
Wed Jan 22 08:29:59 CET 2014


On Wed, Jan 22, 2014 at 8:17 AM, Felix Abecassis
<felix.abecassis at gmail.com>wrote:

> 2014/1/22 XilasZ <xilasz at gmail.com>:
> >
> >> > I would rather take the opposite approach, can we find a device in the
> >> > 4.1 to 4.2 range which does not work correctly with opaque rendering?
> >> > Please test the Hardware Acceleration option if you have such devices!
> >>
> >> That's pretty dangerous, seeing the number of crappy devices...
> >> And seeing the number of hi-ref-frames files people can use...
> >
> >
> > At least on my HTC One X (tegra3, android 4.2.2), we can't enable it by
> > default yet.
> > Here some tests i did, with a simple 720p h264 mkv (a show) :
> >
> > - SW
> >   => everything plays fine, both frames and subtitles and both vouts
> >
> > - HW without DR
> >   => it works, both frames and subtitles and both vouts, but way too
> slow,
> > probably because of slow memory and limited bandwith
> >
> > - HW + DR
> >   => with surface vout, works from video list, but without any subtitles
> >           lots of "blend blend: no matching alpha blending routine
> (chroma:
> > RGBA -> ANOP)" in the logs
> This is "normal" since the patch for subtitles hasn't been merged yet.
> I have a patch for simply hiding this error but it does not enable
> subtitles.
> I suggest we wait for the subtitles patch, I just have one issue left to
> solve.
>
> But the real question here is: are the performance better than SW in this
> case?
>

Ah ok, cool then, everything is working as expected.
And yes, perf is way better than SW, also less battery usage.



>  >
> >   => with opengles vout, playback starts, but the UI switchs to audio
> only
> > because vouts fails to start :
> >           01-22 07:50:18.251: E/libEGL(20227): EGLNativeWindowType
> > 0x6016f980 already connected to another API
> >           01-22 07:50:18.251: E/libEGL(20227): eglCreateWindowSurface:407
> > error 300b (EGL_BAD_NATIVE_WINDOW)
> >           01-22 07:50:18.251: E/VLC(20227): egl_android gl: cannot create
> > EGL window surface
> These two modes are not compatible, I will submit a patch so that the
> OpenGL vout cannot be activated if HW+DR is picked from the list.
>

ok.


>  >
> >   => when starting from directoryview, it freeze when starting,  feels
> like
> > a deadlock
> I'm confused, how is this mode different from the above one?
>

Didn't check, but probably because directoryview opens everything through
AudioService, and switch to Videoplayer is there is a vout.
Since the vout may be waiting for a surface from videoplayer, which will
only be there is there is a vout in this case, it gets stuck.
The whole switch between audio and video is not stable, and it's not new,
it's also causing weird stuff when openning from outside vlc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20140122/416756ce/attachment-0001.html>


More information about the Android mailing list