summaryrefslogtreecommitdiff
path: root/Software/Beignet
diff options
context:
space:
mode:
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`