[Convert] Support BGRx format for video.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 14 May 2018 08:28:08 +0000 (17:28 +0900)
committer송욱/동작제어Lab(SR)/Senior Engineer/삼성전자 <wook16.song@samsung.com>
Fri, 18 May 2018 01:55:53 +0000 (10:55 +0900)
commit04f62719eeb76fb2dcc0b6b70bfbc83ca5349663
tree6b955aacd04257ac94b91d8232139a14ee3df897
parent76d849fd4a64bbb318a136f4fd2e8bad2dc14755
[Convert] Support BGRx format for video.

Support BGRx in additional to RGB format.

How to test:

$ gst-launch-1.0 --gst-plugin-path=/source/AutoDrv/NNStreamer/convert2tensor/build videotestsrc ! video/x-raw,format=RGB,width=280,height=40,framerate=1/1 ! tee name=t ! queue ! videoconvert ! video/x-raw, format=BGRx ! convert2tensor ! filesink location="test.bgrx.log" sync=true t. ! queue ! filesink location="test.rgb.log" sync=true

If the resulting test.rgb.log has rgb format and test.bgrx.log has bgrx format, then it's good to go.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
convert2tensor/CMakeLists.txt
convert2tensor/convert2tensor.c