hardware/intel/libva
Revision | 5c05f8757628aeff94c605838ab3c29381fd08e7 (tree) |
---|---|
Time | 2013-06-19 15:46:09 |
Author | Austin Yuan <shengquan.yuan@inte...> |
Commiter | Xiang, Haihao |
vatrace: print VAEncPackedHeaderParameterBufferType
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 82ffa4b5bfb6cf59e90eedadbdfe3efdaced35e0)
@@ -1585,6 +1585,31 @@ static void va_TraceVAEncSliceParameterBufferH264( | ||
1585 | 1585 | return; |
1586 | 1586 | } |
1587 | 1587 | |
1588 | + | |
1589 | +static void va_TraceVAEncPackedHeaderParameterBufferType( | |
1590 | + VADisplay dpy, | |
1591 | + VAContextID context, | |
1592 | + VABufferID buffer, | |
1593 | + VABufferType type, | |
1594 | + unsigned int size, | |
1595 | + unsigned int num_elements, | |
1596 | + void *data) | |
1597 | +{ | |
1598 | + VAEncPackedHeaderParameterBuffer* p = (VAEncPackedHeaderParameterBuffer*)data; | |
1599 | + DPY2INDEX(dpy); | |
1600 | + int i; | |
1601 | + | |
1602 | + if (!p) | |
1603 | + return; | |
1604 | + va_TraceMsg(idx, "VAEncPackedHeaderParameterBuffer\n"); | |
1605 | + va_TraceMsg(idx, "\ttype=%d = %d\n", p->type); | |
1606 | + va_TraceMsg(idx, "\tbit_length = %d\n", p->bit_length); | |
1607 | + va_TraceMsg(idx, "\thas_emulation_bytes = %d = %d\n", p->has_emulation_bytes); | |
1608 | + va_TraceMsg(idx, NULL); | |
1609 | + | |
1610 | + return; | |
1611 | +} | |
1612 | + | |
1588 | 1613 | static void va_TraceVAEncMiscParameterBuffer( |
1589 | 1614 | VADisplay dpy, |
1590 | 1615 | VAContextID context, |
@@ -2035,6 +2060,9 @@ static void va_TraceH263Buf( | ||
2035 | 2060 | case VAEncSliceParameterBufferType: |
2036 | 2061 | va_TraceVAEncSliceParameterBuffer(dpy, context, buffer, type, size, num_elements, pbuf); |
2037 | 2062 | break; |
2063 | + case VAEncPackedHeaderParameterBufferType: | |
2064 | + va_TraceVAEncPackedHeaderParameterBufferType(dpy, context, buffer, type, size, num_elements, pbuf); | |
2065 | + break; | |
2038 | 2066 | default: |
2039 | 2067 | va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf); |
2040 | 2068 | break; |