mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
Add GST_VAAPI_ID_FORMAT() and GST_VAAPI_ID_ARGS() helpers.
This commit is contained in:
parent
647621cf3c
commit
a09c84b04d
2 changed files with 24 additions and 0 deletions
|
@ -159,6 +159,8 @@ GST_VAAPI_VIDEO_BUFFER_GET_CLASS
|
|||
<FILE>gstvaapitypes</FILE>
|
||||
<TITLE>Basic data structures</TITLE>
|
||||
GstVaapiID
|
||||
GST_VAAPI_ID_FORMAT
|
||||
GST_VAAPI_ID_ARGS
|
||||
gst_vaapi_value_get_id
|
||||
gst_vaapi_value_set_id
|
||||
GstVaapiPoint
|
||||
|
|
|
@ -48,6 +48,28 @@ typedef guint64 GstVaapiID;
|
|||
# error "unsupported value for GST_VAAPI_TYPE_ID_SIZE"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* GST_VAAPI_ID_FORMAT:
|
||||
*
|
||||
* Can be used together with #GST_VAAPI_ID_ARGS to properly output an
|
||||
* integer value in a printf()-style text message.
|
||||
* <informalexample>
|
||||
* <programlisting>
|
||||
* printf("id: %" GST_VAAPI_ID_FORMAT "\n", GST_VAAPI_ID_ARGS(id));
|
||||
* </programlisting>
|
||||
* </informalexample>
|
||||
*/
|
||||
#define GST_VAAPI_ID_FORMAT "p"
|
||||
|
||||
/**
|
||||
* GST_VAAPI_ID_ARGS:
|
||||
* @id: a #GstVaapiID
|
||||
*
|
||||
* Can be used together with #GST_VAAPI_ID_FORMAT to properly output
|
||||
* an integer value in a printf()-style text message.
|
||||
*/
|
||||
#define GST_VAAPI_ID_ARGS(id) GUINT_TO_POINTER(id)
|
||||
|
||||
/**
|
||||
* GST_VAAPI_TYPE_ID:
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue