Mesa (master): st/va: MPEG4 populate the SPS structure
Leo Liu
leoliu at kemper.freedesktop.org
Mon Nov 10 15:30:00 UTC 2014
Module: Mesa
Branch: master
Commit: fa9e46196750d1c8f3d61724182334e77828643b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa9e46196750d1c8f3d61724182334e77828643b
Author: Michael Varga <Michael.Varga at amd.com>
Date: Thu Oct 23 10:36:52 2014 -0500
st/va: MPEG4 populate the SPS structure
Signed-off-by: Michael Varga <Michael.Varga at amd.com>
---
src/gallium/state_trackers/va/picture.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c
index 327c33d..ff13bc6 100644
--- a/src/gallium/state_trackers/va/picture.c
+++ b/src/gallium/state_trackers/va/picture.c
@@ -344,6 +344,7 @@ static void
handleSliceParameterBuffer(vlVaContext *context, vlVaBuffer *buf)
{
VASliceParameterBufferH264 *h264;
+ VASliceParameterBufferMPEG4 *mpeg4;
switch (u_reduce_video_profile(context->decoder->profile)) {
case PIPE_VIDEO_FORMAT_MPEG4_AVC:
@@ -354,7 +355,12 @@ handleSliceParameterBuffer(vlVaContext *context, vlVaBuffer *buf)
context->desc.h264.num_ref_idx_l1_active_minus1 =
h264->num_ref_idx_l1_active_minus1;
break;
+ case PIPE_VIDEO_FORMAT_MPEG4:
+ assert(buf->size >= sizeof(VASliceParameterBufferMPEG4) && buf->num_elements == 1);
+ mpeg4 = buf->data;
+ context->mpeg4.quant_scale = mpeg4->quant_scale;
+ break;
default:
break;
}
More information about the mesa-commit
mailing list