video format of endianness declared in vaapi need to be modified.
Submitted by He Junyan
Link to original bug (#797359)
Description
The code:
#elif G_BYTE_ORDER == G_LITTLE_ENDIAN
DEF_RGB (BGRA, ('B', 'G', 'R', 'A'), LSB, 32,
32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000),
DEF_RGB (RGBA, ('R', 'G', 'B', 'A'), LSB, 32,
32, 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000),
DEF_RGB (BGRx, ('B', 'G', 'R', 'X'), LSB, 32,
24, 0x00ff0000, 0x0000ff00, 0x000000ff, 0x00000000),
DEF_RGB (RGBx, ('R', 'G', 'B', 'X'), LSB, 32,
24, 0x000000ff, 0x0000ff00, 0x00ff0000, 0x00000000),
-#endif
Make the ARGB xRGB kind video format not suppored when on little endian machine like X86
The video format should not directly relate to endianness. For example,
ARGB on big endian should not be simplely seen as BGRA on little endian machine.
We should provide endianess convert or format convert help functions if endianness does not match.