summaryrefslogtreecommitdiff
path: root/src/i965_decoder_utils.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-04-23 17:23:21 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-04-24 11:28:27 +0200
commit61fbb1bba1ad8a41ffae4fd1ba90391adf819b6e (patch)
tree676948fcaf4315b2f002985ab52f3edddbadf41a /src/i965_decoder_utils.h
parent0d3462360f624750233d77771d55f48bc00039e5 (diff)
downloadlibva-intel-driver-61fbb1bba1ad8a41ffae4fd1ba90391adf819b6e.tar.gz
vp8: fix support for segmentation-enabled streams.
If segmentation is enabled, then the segmentation map shall be live across frames until the current frame updates the segment ids. This means that the driver needs to maintain the segmentation map buffer allocation and enable writes (resp. reads) whenever necessary. This fixes decoding of 00-comprehensive-010. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'src/i965_decoder_utils.h')
-rw-r--r--src/i965_decoder_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i965_decoder_utils.h b/src/i965_decoder_utils.h
index 8f64dfb7..b7b72b3e 100644
--- a/src/i965_decoder_utils.h
+++ b/src/i965_decoder_utils.h
@@ -106,4 +106,8 @@ intel_update_vp8_frame_store_index(VADriverContextP ctx,
VAPictureParameterBufferVP8 *pic_param,
GenFrameStore frame_store[MAX_GEN_REFERENCE_FRAMES]);
+bool
+intel_ensure_vp8_segmentation_buffer(VADriverContextP ctx, GenBuffer *buf,
+ unsigned int mb_width, unsigned int mb_height);
+
#endif /* I965_DECODER_UTILS_H */