[vlc-devel] [PATCH 1/3] vout: fail if the display module can't handle the projection_mode

Rémi Denis-Courmont remi at remlab.net
Thu Nov 24 11:08:06 CET 2016


On November 24, 2016 10:59:50 AM GMT+02:00, Thomas Guillem <thomas at gllm.fr> wrote:
>
>
>On Thu, Nov 24, 2016, at 09:56, Steve Lhomme wrote:
>> On Thu, Nov 24, 2016 at 9:48 AM, Thomas Guillem <thomas at gllm.fr>
>wrote:
>> > Question,
>> >
>> > Do I push this patch like it is ? Or I fix the core to trigger a
>> > conversion (that will fail since we don't plan to add a projection
>> > filter) when projection_mode from vd->source/vd->fmt are différent
>?
>> 
>> If we have VR support by default vout on all platforms, this is not
>> necessary (for now). It is currently not the case as Direct3D9 lacks
>> VR support. And since we don't use shaders there it may not happen at
>> all. It seems it's not supported on Android yet either. But I don't
>> know if it's good to push this, knowing it may be irrelevant soon.
>
>Not all vouts will be able to handle projection, like the one used for
>MediaCodec with zero copy. And I don't know if VDPAU can handle it.
>
>> 
>> > On Thu, Nov 17, 2016, at 10:06, Jean-Baptiste Kempf wrote:
>> >> Hello,
>> >>
>> >> On Wed, 16 Nov 2016, at 21:56, Rémi Denis-Courmont wrote:
>> >>
>> >> > Not to even mention that J-B wants to remove most old video
>outputs in
>> >> > 4.0.
>> >>
>> >> Well, what I would like is that we focus on a few video outputs,
>(OpenGL
>> >> and D3D11 IMHO), because we will need to implement rotation, HDR,
>Stereo
>> >> and 360, and it would be nice to not redo that 10 times.
>> >>
>> >> So I mostly speak about all the vout that are specific to hw
>> >> accelerations or crap like D2D.
>> >>
>> >> Best,
>> >>
>> >> --
>> >> Jean-Baptiste Kempf -  President
>> >> +33 672 704 734
>> >> _______________________________________________
>> >> vlc-devel mailing list
>> >> To unsubscribe or modify your subscription options:
>> >> https://mailman.videolan.org/listinfo/vlc-devel
>> > _______________________________________________
>> > vlc-devel mailing list
>> > To unsubscribe or modify your subscription options:
>> > https://mailman.videolan.org/listinfo/vlc-devel
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

VDPAU can export to OpenGL. But for that to work we first need:
- to expose OpenGL pictures as opaque hardware surfaces,
- to add an OpenGL shader to convert from VDPAU pixel format to usable RGB,
- to actually convert VDPAU video surfaces into OpenGL buffers in the VDPAU chroma filter.

When all that is done, we can kill the VDPAU video output plugin.

Otherwise, there are no custom shaders in VDPAU per se.
-- 
Rémi Denis-Courmont


More information about the vlc-devel mailing list