56 uchar16 in_a = vload16(0, in1.
ptr);
57 uchar16 in_b = vload16(0, in2.
ptr);
59 vstore16(in_a | in_b, 0, out.
ptr);
92 uchar16 in_a = vload16(0, in1.
ptr);
93 uchar16 in_b = vload16(0, in2.
ptr);
95 vstore16(in_a & in_b, 0, out.
ptr);
128 uchar16 in_a = vload16(0, in1.
ptr);
129 uchar16 in_b = vload16(0, in2.
ptr);
131 vstore16(in_a ^ in_b, 0, out.
ptr);
156 uchar16 in_data = vload16(0, in.
ptr);
158 vstore16(~in_data, 0, out.
ptr);
#define IMAGE_DECLARATION(name)
__kernel void bitwise_and(__global uchar *in1_ptr, uint in1_stride_x, uint in1_step_x, uint in1_stride_y, uint in1_step_y, uint in1_offset_first_element_in_bytes, __global uchar *in2_ptr, uint in2_stride_x, uint in2_step_x, uint in2_stride_y, uint in2_step_y, uint in2_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes)
This function computes the bitwise AND of two input images.
__kernel void bitwise_not(__global uchar *in_ptr, uint in_stride_x, uint in_step_x, uint in_stride_y, uint in_step_y, uint in_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes)
This function computes the bitwise NOT of an image.
#define CONVERT_TO_IMAGE_STRUCT(name)
Structure to hold Image information.
__global uchar * ptr
Pointer to the starting postion of the buffer.
__kernel void bitwise_xor(__global uchar *in1_ptr, uint in1_stride_x, uint in1_step_x, uint in1_stride_y, uint in1_step_y, uint in1_offset_first_element_in_bytes, __global uchar *in2_ptr, uint in2_stride_x, uint in2_step_x, uint in2_stride_y, uint in2_step_y, uint in2_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes)
This function computes the bitwise XOR of two input images.
__kernel void bitwise_or(__global uchar *in1_ptr, uint in1_stride_x, uint in1_step_x, uint in1_stride_y, uint in1_step_y, uint in1_offset_first_element_in_bytes, __global uchar *in2_ptr, uint in2_stride_x, uint in2_step_x, uint in2_stride_y, uint in2_step_y, uint in2_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes)
This function computes the bitwise OR of two input images.