summaryrefslogtreecommitdiff
path: root/Software/Beignet/howto
diff options
context:
space:
mode:
authorrongyang <rongyang@web>2016-08-30 09:28:27 +0000
committerwww <iki-www@freedesktop.org>2016-08-30 09:28:27 +0000
commit58f56ddf596eee54b36b60f37fdc4f00b44e4370 (patch)
tree96312184384a711476379c63952beea8fd3f6401 /Software/Beignet/howto
parentc6adeedc691725c48bc3c519da6bebaa9795644c (diff)
Diffstat (limited to 'Software/Beignet/howto')
-rw-r--r--Software/Beignet/howto/video-motion-estimation-howto.mdwn20
1 files changed, 10 insertions, 10 deletions
diff --git a/Software/Beignet/howto/video-motion-estimation-howto.mdwn b/Software/Beignet/howto/video-motion-estimation-howto.mdwn
index 829ba29d..6b99d54c 100644
--- a/Software/Beignet/howto/video-motion-estimation-howto.mdwn
+++ b/Software/Beignet/howto/video-motion-estimation-howto.mdwn
@@ -33,16 +33,16 @@ the steps as below:
- The prototype of built-in kernel block_motion_estimate_intel is as following:
- _kernel void
- block_motion_estimate_intel
- (
- accelerator_intel_t accelerator,
- __read_only image2d_t src_image,
- __read_only image2d_t ref_image,
- __global short2 * prediction_motion_vector_buffer,
- __global short2 * motion_vector_buffer,
- __global ushort * residuals
- );
+ _kernel void
+ block_motion_estimate_intel
+ (
+ accelerator_intel_t accelerator,
+ __read_only image2d_t src_image,
+ __read_only image2d_t ref_image,
+ __global short2 * prediction_motion_vector_buffer,
+ __global short2 * motion_vector_buffer,
+ __global ushort * residuals
+ );
So you should create related objects and setup these kernel arguments by clSetKernelArg.
Create source and reference image object, on which you want to do video motion estimation.
The image_channel_order should be CL_R and image_channel_data_type should be CL_UNORM_INT8.