summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2013-05-08 13:21:38 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-06-19 14:46:09 +0800
commit5c05f8757628aeff94c605838ab3c29381fd08e7 (patch)
treef14e35ab7d1908aa43d20cfbda5c6ef0c78bbeff
parentf5ced7eb08e6ab15e7d0a41bf42ad9bf5dd48c80 (diff)
vatrace: print VAEncPackedHeaderParameterBufferType
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 82ffa4b5bfb6cf59e90eedadbdfe3efdaced35e0)
-rw-r--r--va/va_trace.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/va/va_trace.c b/va/va_trace.c
index d21c65c..3587350 100644
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -1585,6 +1585,31 @@ static void va_TraceVAEncSliceParameterBufferH264(
return;
}
+
+static void va_TraceVAEncPackedHeaderParameterBufferType(
+ VADisplay dpy,
+ VAContextID context,
+ VABufferID buffer,
+ VABufferType type,
+ unsigned int size,
+ unsigned int num_elements,
+ void *data)
+{
+ VAEncPackedHeaderParameterBuffer* p = (VAEncPackedHeaderParameterBuffer*)data;
+ DPY2INDEX(dpy);
+ int i;
+
+ if (!p)
+ return;
+ va_TraceMsg(idx, "VAEncPackedHeaderParameterBuffer\n");
+ va_TraceMsg(idx, "\ttype=%d = %d\n", p->type);
+ va_TraceMsg(idx, "\tbit_length = %d\n", p->bit_length);
+ va_TraceMsg(idx, "\thas_emulation_bytes = %d = %d\n", p->has_emulation_bytes);
+ va_TraceMsg(idx, NULL);
+
+ return;
+}
+
static void va_TraceVAEncMiscParameterBuffer(
VADisplay dpy,
VAContextID context,
@@ -2035,6 +2060,9 @@ static void va_TraceH263Buf(
case VAEncSliceParameterBufferType:
va_TraceVAEncSliceParameterBuffer(dpy, context, buffer, type, size, num_elements, pbuf);
break;
+ case VAEncPackedHeaderParameterBufferType:
+ va_TraceVAEncPackedHeaderParameterBufferType(dpy, context, buffer, type, size, num_elements, pbuf);
+ break;
default:
va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf);
break;