From 61fbb1bba1ad8a41ffae4fd1ba90391adf819b6e Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Wed, 23 Apr 2014 17:23:21 +0200 Subject: 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 --- src/i965_decoder_utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/i965_decoder_utils.h') 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 */ -- cgit v1.2.1