Add GST_VAAPI_ID_FORMAT() and GST_VAAPI_ID_ARGS() helpers.

This commit is contained in:
gb 2010-03-24 12:38:40 +00:00
parent 647621cf3c
commit a09c84b04d
2 changed files with 24 additions and 0 deletions

View file

@ -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

View file

@ -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:
*