[Libva] [PATCH][RFC] Add vaQuery{Get,Put}ImageFormats()

Bian, Jonathan jonathan.bian at intel.com
Tue Nov 23 11:02:23 PST 2010


Hi Gwenole,

I thought that the intent of vaQueryImageFormats() is to return formats that can be used for va{Create, Get, Put)Image(). Are there implementations that can only support GetImage but not PutImage or vice versa? 

Regards,
Jonathan

-----Original Message-----
From: libva-bounces+jonathan.bian=intel.com at lists.freedesktop.org [mailto:libva-bounces+jonathan.bian=intel.com at lists.freedesktop.org] On Behalf Of Gwenole Beauchesne
Sent: Tuesday, November 23, 2010 12:55 AM
To: libva at lists.freedesktop.org
Subject: [Libva] [PATCH][RFC] Add vaQuery{Get,Put}ImageFormats()

Hi,

vaQueryImageFormats() returns the image formats supported by vaCreateImage(). However, some implementations may not support
vaGetImage() or vaPutImage() with a particular format. In that case, it may be interesting to know about it beforehand, instead of having the user test the outcome of va{Get,Put}Image() and try another format.

It should also be possible to provide a default implementation right into va/va.c.

WDYT?

Regards,
Gwenole.


More information about the Libva mailing list