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>
Wed, 12 Sep 2012 03:02:29 +0000 (23:02 -0400)
commit1602705ea4d3f44c374056e440ba21c45b2c1058
tree7c7f4f6dcc4f9ef0bff68763153982c761fa5ce7
parent99b58c7c8a8b84ad27b8008aeed4fc759d212731
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]