libs: utils: avoid macro evaluation when stringify
authorHe Junyan <junyan.he@hotmail.com>
Mon, 15 Apr 2019 11:55:26 +0000 (13:55 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 15 Apr 2019 13:36:28 +0000 (15:36 +0200)
commit3c86fd12cb9c1199a07edde283f2ea4d0b947a93
tree812ca5561e9676308256421e8af25efb9a21955e
parent7c0ec687cd29d9c04ec7df929b8e47dbe8b0f1c2
libs: utils: avoid macro evaluation when stringify

string_of_va_chroma_format() gets a wrong string format description.
For example, the YUV420_10BPP get a string of 0x00000100 as output.

It's because VA_RT_FORMAT_xxx values are macro definitions. And
STRINGIFY(VA_RT_FORMAT_xxx) will expand to its real value
0x00000XXX.

To avoid the macro evaluation, it is changed to show only the color
format without VA_RT_FORMAT_ prefix.
gst-libs/gst/vaapi/gstvaapiutils.c