DPC++ Runtime
Runtime libraries for oneAPI DPC++
image_accessor_util.hpp File Reference
#include <CL/sycl/builtins.hpp>
#include <CL/sycl/detail/export.hpp>
#include <CL/sycl/detail/generic_type_traits.hpp>
#include <CL/sycl/image.hpp>
#include <CL/sycl/sampler.hpp>
#include <CL/sycl/types.hpp>
#include <cmath>
#include <iostream>
Include dependency graph for image_accessor_util.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 cl
 We provide new interfaces for matrix muliply in this patch:
 
 cl::sycl
 
 cl::sycl::detail
 

Typedefs

template<typename T >
using cl::sycl::detail::IsValidCoordType = typename is_contained< T, type_list< cl_int, cl_float > >::type
 

Functions

template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, Tcl::sycl::detail::UnnormalizeCoordinates (const T &Coords, const range< 3 > &Range)
 
template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, vec< T, 2 > > cl::sycl::detail::UnnormalizeCoordinates (const vec< T, 2 > &Coords, const range< 3 > &Range)
 
template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, vec< T, 4 > > cl::sycl::detail::UnnormalizeCoordinates (const vec< T, 4 > &Coords, const range< 3 > &Range)
 
template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, cl_float4 > cl::sycl::detail::convertToFloat4 (T Coords)
 
template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, cl_float4 > cl::sycl::detail::convertToFloat4 (vec< T, 2 > Coords)
 
template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, cl_float4 > cl::sycl::detail::convertToFloat4 (vec< T, 4 > Coords)
 
template<typename T >
detail::enable_if_t< std::is_integral< T >::value, size_t > cl::sycl::detail::getImageOffset (const T &Coords, const id< 3 >, const uint8_t ElementSize)
 
template<typename T >
detail::enable_if_t< std::is_integral< T >::value, size_t > cl::sycl::detail::getImageOffset (const vec< T, 2 > &Coords, const id< 3 > ImgPitch, const uint8_t ElementSize)
 
template<typename T >
detail::enable_if_t< std::is_integral< T >::value, size_t > cl::sycl::detail::getImageOffset (const vec< T, 4 > &Coords, const id< 3 > ImgPitch, const uint8_t ElementSize)
 
cl_int4 cl::sycl::detail::getPixelCoordNearestFiltMode (cl_float4, const addressing_mode, const range< 3 >)
 
cl_int8 cl::sycl::detail::getPixelCoordLinearFiltMode (cl_float4, const addressing_mode, const range< 3 >, cl_float4 &)
 
bool cl::sycl::detail::isOutOfRange (const cl_int4 PixelCoord, const addressing_mode SmplAddrMode, const range< 3 > ImgRange)
 
cl_float4 cl::sycl::detail::getBorderColor (const image_channel_order ImgChannelOrder)
 
template<typename T >
vec< T, 4 > cl::sycl::detail::readPixel (T *Ptr, const image_channel_order ChannelOrder, const image_channel_type ChannelType)
 
template<typename T >
void cl::sycl::detail::writePixel (const vec< T, 4 > Pixel, T *Ptr, const image_channel_order ChannelOrder, const image_channel_type ChannelType)
 
template<typename ChannelType >
void cl::sycl::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, vec< cl_uint, 4 > &RetData)
 
template<typename ChannelType >
void cl::sycl::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, vec< cl_int, 4 > &RetData)
 
template<typename ChannelType >
void cl::sycl::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, vec< cl_float, 4 > &RetData)
 
template<typename ChannelType >
void cl::sycl::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, vec< cl_half, 4 > &RetData)
 
template<typename ChannelType >
vec< ChannelType, 4 > cl::sycl::detail::convertWriteData (const vec< cl_uint, 4 > WriteData, const image_channel_type ImageChannelType)
 
template<typename ChannelType >
vec< ChannelType, 4 > cl::sycl::detail::convertWriteData (const vec< cl_int, 4 > WriteData, const image_channel_type ImageChannelType)
 
template<typename ChannelType >
vec< ChannelType, 4 > cl::sycl::detail::processFloatDataToPixel (vec< cl_float, 4 > WriteData, float MulFactor)
 
template<typename ChannelType >
vec< ChannelType, 4 > cl::sycl::detail::convertWriteData (const vec< cl_float, 4 > WriteData, const image_channel_type ImageChannelType)
 
template<typename ChannelType >
vec< ChannelType, 4 > cl::sycl::detail::convertWriteData (const vec< cl_half, 4 > WriteData, const image_channel_type ImageChannelType)
 
template<typename CoordT , typename WriteDataT >
void cl::sycl::detail::imageWriteHostImpl (const CoordT &Coords, const WriteDataT &Color, id< 3 > ImgPitch, uint8_t ElementSize, image_channel_type ImgChannelType, image_channel_order ImgChannelOrder, void *BasePtr)
 
template<typename DataT >
DataT cl::sycl::detail::ReadPixelData (const cl_int4 PixelCoord, const id< 3 > ImgPitch, const image_channel_type ImageChannelType, const image_channel_order ImageChannelOrder, void *BasePtr, const uint8_t ElementSize)
 
template<typename DataT >
DataT cl::sycl::detail::getColor (const cl_int4 PixelCoord, const addressing_mode SmplAddrMode, const range< 3 > ImgRange, const id< 3 > ImgPitch, const image_channel_type ImgChannelType, const image_channel_order ImgChannelOrder, void *BasePtr, const uint8_t ElementSize)
 
template<typename DataT >
DataT cl::sycl::detail::ReadPixelDataLinearFiltMode (const cl_int8 CoordValues, const cl_float4 abc, const addressing_mode SmplAddrMode, const range< 3 > ImgRange, id< 3 > ImgPitch, const image_channel_type ImgChannelType, const image_channel_order ImgChannelOrder, void *BasePtr, const uint8_t ElementSize)
 
template<typename CoordT , typename DataT >
DataT cl::sycl::detail::imageReadSamplerHostImpl (const CoordT &Coords, const sampler &Smpl, range< 3 > ImgRange, id< 3 > ImgPitch, image_channel_type ImgChannelType, image_channel_order ImgChannelOrder, void *BasePtr, uint8_t ElementSize)