gcx: added generic format parser.

RGB and YUV formats are now generically supported.

Change-Id: Ife091091ffb538cdc449385060d3919d7375e267
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>