mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
libs: re-introduce a GST_VAAPI_ID_INVALID value.
Re-introduce a GST_VAAPI_ID_INVALID value that represents a non-zero and invalid id. This is useful to have a value that is still invalid for cases where zero could actually be a valid value.
This commit is contained in:
parent
fd775b4400
commit
f270838515
1 changed files with 15 additions and 0 deletions
|
@ -37,6 +37,21 @@ G_BEGIN_DECLS
|
||||||
*/
|
*/
|
||||||
typedef gsize GstVaapiID;
|
typedef gsize GstVaapiID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GST_VAAPI_ID:
|
||||||
|
* @id: an arbitrary integer value
|
||||||
|
*
|
||||||
|
* Macro that creates a #GstVaapiID from @id.
|
||||||
|
*/
|
||||||
|
#define GST_VAAPI_ID(id) ((GstVaapiID)(id))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GST_VAAPI_ID_INVALID:
|
||||||
|
*
|
||||||
|
* Macro that evaluates to an invalid #GstVaapiID value.
|
||||||
|
*/
|
||||||
|
#define GST_VAAPI_ID_INVALID GST_VAAPI_ID((gssize)(gint32)-1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_VAAPI_ID_FORMAT:
|
* GST_VAAPI_ID_FORMAT:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue