[Mesa-dev] vlVaQueryImageFormats and vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities also return unsupported formats

Christian K├Ânig deathsimple at vodafone.de
Fri Aug 21 10:31:35 PDT 2015


On 21.08.2015 18:30, Ilia Mirkin wrote:
> On Fri, Aug 21, 2015 at 12:22 PM, Julien Isorce <julien.isorce at gmail.com> wrote:
>> What is the purpose of checking PIPE_VIDEO_PROFILE_UNKNOWN :
>> http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nouveau_vp3_video.c#n486
>> and
>> http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/radeon/radeon_video.c#n323
>> ?
> The st calls nouveau_vp3_screen_video_supported with UNKNOWN at some
> point (see src/gallium/state_trackers/vdpau). Basically VDPAU can do a
> lot of things. One of them is video decoding, for which only NV12 is
> supported. But it also supports other things, for which the st
> supports the various other formats. No idea if that's useful, but at
> least that's the idea.
Yes, exactly.

Querying with unknown is for checking if we can create video buffers 
with that format in general.

Querying with a specific profile/entrypoint is for checking if we can 
create video buffers and decode into them.

Regards,
Christian.

>
>    -ilia
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list