test: add color conversion test option in putsurface
authorZhao Halley <halley.zhao@intel.com>
Wed, 5 Sep 2012 09:23:22 +0000 (17:23 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 7 Jun 2013 07:32:43 +0000 (15:32 +0800)
commit19bb972bf4ba5b5369164072e2e8cd77ae6e65a4
treee8c7ecaa20355fbd3832c342cd1eeb7d9fe4b98a
parent824a70ae1ef79458e65079374209a0cb16b65c31
test: add color conversion test option in putsurface

- command line:  ./putsurface --fmt1 format1 --fmt2 format2
              or ./putsurface -1 format1 -2 format2
- example:       ./putsurface -1 NV12 -2 YV12
- implementation:
  - vaSurface is created with fmt1
  - get image (with fmt2) from vaSurface,
    it leads to color conversion
  - put the above image to a temp surface
    color conversion may happen
  - render the above temp surface instead of original one
test/putsurface/putsurface_common.c [changed mode: 0644->0755]