Wrong documentation in VASurfaceAttribPixelFormat
- Dominant language
- C
- Stars
- 784
- Forks
- 314
- PR merge metrics
- No merged PRs in 30d
Description
The documentation for VASurfaceAttribPixelFormat looks like wrong:
https://github.com/intel/libva/blob/master/va/va.h#L1253
/**
* \brief Pixel format (fourcc).
*
* The value is meaningful as input to vaQuerySurfaceAttributes().
* If zero, the driver returns the optimal pixel format for the
* specified config. Otherwise, if non-zero, the value represents
* a pixel format (FOURCC) that is kept as is on output, if the
* driver supports it. Otherwise, the driver sets the value to
* zero and drops the \c VA_SURFACE_ATTRIB_SETTABLE flag.
*/
VASurfaceAttribPixelFormat,
The VASurfaceAttrib in vaQuerySurfaceAttributes() should be **output** argument rather **input**.
Contributor guide
Assessment
This issue has not been assessed yet.