summaryrefslogtreecommitdiff
path: root/Software/Beignet
diff options
context:
space:
mode:
authorrongyang <rongyang@web>2016-08-22 07:53:36 +0000
committerwww <iki-www@freedesktop.org>2016-08-22 07:53:36 +0000
commit2600fc86c20f7b63b76096108859ad80c14b8700 (patch)
tree83b99e1aa72adc91ee17f9491c34ad5cb6d4c613 /Software/Beignet
parentb312bfdc286a6433bda557a4ee2db8262406deb5 (diff)
Diffstat (limited to 'Software/Beignet')
-rw-r--r--Software/Beignet/howto/libva-buffer-sharing-howto.mdwn8
1 files changed, 8 insertions, 0 deletions
diff --git a/Software/Beignet/howto/libva-buffer-sharing-howto.mdwn b/Software/Beignet/howto/libva-buffer-sharing-howto.mdwn
index fe64d73a..0ee9cf31 100644
--- a/Software/Beignet/howto/libva-buffer-sharing-howto.mdwn
+++ b/Software/Beignet/howto/libva-buffer-sharing-howto.mdwn
@@ -48,20 +48,28 @@ Then create corresponding cl image objects from them. After using ocl to do a mi
post-processing on this source surface, target VASurface is shown on screen by default.
- Add option -DBUILD_EXAMPLES=ON to enable building examples when running cmake, such as:
+
`> mkdir build`
+
`> cd build`
+
`> cmake -DBUILD_EXAMPLES=ON ../`
- Build source code:
+
`> make`
- Run:
+
`> cd examples`
+
`> . ../utests/setenv.sh`
+
`> ./example-libva_buffer_sharing`
In addition, you can choose to save the result as a nv12 file. You can use gst-launch-1.0 to see
the result. Just install gstreamer1.0-plugins-base, gstreamer1.0-plugins-bad and
gstreamer1.0-x by apt on Ubuntu. Then running the following command:
+
`> gst-launch-1.0 filesrc location=file_name ! videoparse format=nv12 width=xxx height=xxx \
! imagefreeze ! videoconvert ! video/x-raw, format=BGRx ! ximagesink`