Skip to content

Commit

Permalink
docs: fix references and descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
  • Loading branch information
dvrogozh authored and XinfengZhang committed Jun 1, 2023
1 parent e42500d commit f4c4c03
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
21 changes: 14 additions & 7 deletions va/va.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ typedef int VAStatus; /** Return status type from functions */
*/
const char *vaErrorStr(VAStatus error_status);

/** \brief Structure to describe rectangle. */
typedef struct _VARectangle {
int16_t x;
int16_t y;
Expand All @@ -410,12 +411,18 @@ typedef struct _VARectangle {

/** \brief Generic motion vector data structure. */
typedef struct _VAMotionVector {
/** \mv0[0]: horizontal motion vector for past reference */
/** \mv0[1]: vertical motion vector for past reference */
/** \mv1[0]: horizontal motion vector for future reference */
/** \mv1[1]: vertical motion vector for future reference */
int16_t mv0[2]; /* past reference */
int16_t mv1[2]; /* future reference */
/** \brief Past reference
*
* - \c [0]: horizontal motion vector for past reference
* - \c [1]: vertical motion vector for past reference
*/
int16_t mv0[2];
/** \brief Future reference
*
* - \c [0]: horizontal motion vector for future reference
* - \c [1]: vertical motion vector for future reference
*/
int16_t mv1[2];
} VAMotionVector;

/** Type of a message callback, used for both error and info log. */
Expand Down Expand Up @@ -1771,7 +1778,7 @@ typedef struct _VASurfaceAttribExternalBuffers {
* \brief Queries surface attributes for the supplied config.
*
* This function queries for all supported attributes for the
* supplied VA @config. In particular, if the underlying hardware
* supplied VA \c config. In particular, if the underlying hardware
* supports the creation of VA surfaces in various formats, then
* this function will enumerate all pixel formats that are supported.
*
Expand Down
6 changes: 3 additions & 3 deletions va/va_vpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,22 +480,22 @@ typedef struct _VABlendState {
/**
* \brief Global alpha value.
*
* Valid if \flags has VA_BLEND_GLOBAL_ALPHA.
* Valid if \ref flags has VA_BLEND_GLOBAL_ALPHA.
* Valid range is 0.0 to 1.0 inclusive.
*/
float global_alpha;
/**
* \brief Minimum luma value.
*
* Valid if \flags has VA_BLEND_LUMA_KEY.
* Valid if \ref flags has VA_BLEND_LUMA_KEY.
* Valid range is 0.0 to 1.0 inclusive.
* \ref min_luma shall be set to a sensible value lower than \ref max_luma.
*/
float min_luma;
/**
* \brief Maximum luma value.
*
* Valid if \flags has VA_BLEND_LUMA_KEY.
* Valid if \ref flags has VA_BLEND_LUMA_KEY.
* Valid range is 0.0 to 1.0 inclusive.
* \ref max_luma shall be set to a sensible value larger than \ref min_luma.
*/
Expand Down

0 comments on commit f4c4c03

Please sign in to comment.