hardware/intel/libva
Revisão | 919dbe57a005f5eb3f4d59591467e18683c70d59 (tree) |
---|---|
Hora | 2013-05-28 17:32:18 |
Autor | Gwenole Beauchesne <gwenole.beauchesne@inte...> |
Commiter | Xiang, Haihao |
vpp: add pipeline flags.
@@ -280,6 +280,23 @@ typedef enum _VAProcColorStandardType { | ||
280 | 280 | VAProcColorStandardGenericFilm, |
281 | 281 | } VAProcColorStandardType; |
282 | 282 | |
283 | +/** @name Video pipeline flags */ | |
284 | +/**@{*/ | |
285 | +/** \brief Specifies whether to apply subpictures when processing a surface. */ | |
286 | +#define VA_PROC_PIPELINE_SUBPICTURES 0x00000001 | |
287 | +/** | |
288 | + * \brief Specifies whether to apply power or performance | |
289 | + * optimizations to a pipeline. | |
290 | + * | |
291 | + * When processing several surfaces, it may be necessary to prioritize | |
292 | + * more certain pipelines than others. This flag is only a hint to the | |
293 | + * video processor so that it can omit certain filters to save power | |
294 | + * for example. Typically, this flag could be used with video surfaces | |
295 | + * decoded from a secondary bitstream. | |
296 | + */ | |
297 | +#define VA_PROC_PIPELINE_FAST 0x00000002 | |
298 | +/**@}*/ | |
299 | + | |
283 | 300 | /** @name Video filter flags */ |
284 | 301 | /**@{*/ |
285 | 302 | /** \brief Specifies whether the filter shall be present in the pipeline. */ |
@@ -290,6 +307,8 @@ typedef enum _VAProcColorStandardType { | ||
290 | 307 | typedef struct _VAProcPipelineCaps { |
291 | 308 | /** \brief Video filter flags. See video pipeline flags. */ |
292 | 309 | unsigned int flags; |
310 | + /** \brief Pipeline flags. See VAProcPipelineParameterBuffer::pipeline_flags. */ | |
311 | + unsigned int pipeline_flags; | |
293 | 312 | /** \brief Extra filter flags. See VAProcPipelineParameterBuffer::filter_flags. */ |
294 | 313 | unsigned int filter_flags; |
295 | 314 | /** \brief Number of forward reference frames that are needed. */ |
@@ -384,6 +403,14 @@ typedef struct _VAProcPipelineParameterBuffer { | ||
384 | 403 | */ |
385 | 404 | unsigned int output_background_color; |
386 | 405 | /** |
406 | + * \brief Pipeline filters. See video pipeline flags. | |
407 | + * | |
408 | + * Flags to control the pipeline, like whether to apply subpictures | |
409 | + * or not, notify the driver that it can opt for power optimizations, | |
410 | + * should this be needed. | |
411 | + */ | |
412 | + unsigned int pipeline_flags; | |
413 | + /** | |
387 | 414 | * \brief Extra filter flags. See vaPutSurface() flags. |
388 | 415 | * |
389 | 416 | * Filter flags are used as a fast path, wherever possible, to use |