diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2011-12-18 17:12:09 +0100 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-05-28 16:32:18 +0800 |
commit | 85953d9cdc1c234ccf027138666749c75f0f708a (patch) | |
tree | 1a927f4d95e7c21886580485061bfa9f774c7730 /va/va_vpp.h | |
parent | 0b49902044734704a1f429281bc01aadbb6317a6 (diff) | |
download | libva-85953d9cdc1c234ccf027138666749c75f0f708a.tar.gz |
vpp: explain filter flags more.
Diffstat (limited to 'va/va_vpp.h')
-rw-r--r-- | va/va_vpp.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/va/va_vpp.h b/va/va_vpp.h index 020efb2..3e18624 100644 --- a/va/va_vpp.h +++ b/va/va_vpp.h @@ -189,7 +189,7 @@ extern "C" { * pipeline_param->output_background_color = 0; * if (first surface to render) * pipeline_param->output_background_color = 0xff000000; // black - * pipeline_param->flags = VA_FILTER_SCALING_HQ; + * pipeline_param->filter_flags = VA_FILTER_SCALING_HQ; * pipeline_param->filters = filter_bufs; * pipeline_param->num_filters = num_filter_bufs; * vaUnmapBuffer(va_dpy, pipeline_buf); @@ -290,6 +290,8 @@ typedef enum _VAProcColorStandardType { typedef struct _VAProcPipelineCaps { /** \brief Video filter flags. See video pipeline flags. */ unsigned int flags; + /** \brief Extra filter flags. See VAProcPipelineParameterBuffer::filter_flags. */ + unsigned int filter_flags; /** \brief Number of forward reference frames that are needed. */ unsigned int num_forward_references; /** \brief Number of backward reference frames that are needed. */ @@ -382,9 +384,13 @@ typedef struct _VAProcPipelineParameterBuffer { */ unsigned int output_background_color; /** - * \brief Pipeline flags. See vaPutSurface() flags. + * \brief Extra filter flags. See vaPutSurface() flags. * - * Pipeline flags: + * Filter flags are used as a fast path, wherever possible, to use + * vaPutSurface() flags instead of explicit filter parameter buffers. + * + * Allowed filter flags API-wise. Use vaQueryVideoProcPipelineCaps() + * to check for implementation details: * - Bob-deinterlacing: \c VA_FRAME_PICTURE, \c VA_TOP_FIELD, * \c VA_BOTTOM_FIELD. Note that any deinterlacing filter * (#VAProcFilterDeinterlacing) will override those flags. @@ -394,7 +400,7 @@ typedef struct _VAProcPipelineParameterBuffer { * - Scaling: \c VA_FILTER_SCALING_DEFAULT, \c VA_FILTER_SCALING_FAST, * \c VA_FILTER_SCALING_HQ, \c VA_FILTER_SCALING_NL_ANAMORPHIC. */ - unsigned int flags; + unsigned int filter_flags; /** * \brief Array of filters to apply to the surface. * |