DPC++ Runtime
Runtime libraries for oneAPI DPC++
image_accessor_util.hpp File Reference
#include <sycl/builtins.hpp>
#include <sycl/detail/export.hpp>
#include <sycl/detail/generic_type_traits.hpp>
#include <sycl/detail/iostream_proxy.hpp>
#include <sycl/image.hpp>
#include <sycl/sampler.hpp>
#include <sycl/types.hpp>
#include <cmath>
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

 sycl
 ---— Error handling, matching OpenCL plugin semantics.
 
 sycl::_V1
 
 sycl::_V1::detail
 

Typedefs

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

Functions

template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, T > sycl::_V1::detail::UnnormalizeCoordinates (const T &Coords, const range< 3 > &Range)
 
template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, vec< T, 2 > > sycl::_V1::detail::UnnormalizeCoordinates (const vec< T, 2 > &Coords, const range< 3 > &Range)
 
template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, vec< T, 4 > > sycl::_V1::detail::UnnormalizeCoordinates (const vec< T, 4 > &Coords, const range< 3 > &Range)
 
template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, cl_float4 > sycl::_V1::detail::convertToFloat4 (T Coords)
 
template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, cl_float4 > sycl::_V1::detail::convertToFloat4 (vec< T, 2 > Coords)
 
template<typename T >
detail::enable_if_t< IsValidCoordType< T >::value, cl_float4 > sycl::_V1::detail::convertToFloat4 (vec< T, 4 > Coords)
 
template<typename T >
detail::enable_if_t< std::is_integral< T >::value, size_t > sycl::_V1::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 > sycl::_V1::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 > sycl::_V1::detail::getImageOffset (const vec< T, 4 > &Coords, const id< 3 > ImgPitch, const uint8_t ElementSize)
 
cl_int4 sycl::_V1::detail::getPixelCoordNearestFiltMode (cl_float4, const addressing_mode, const range< 3 >)
 
cl_int8 sycl::_V1::detail::getPixelCoordLinearFiltMode (cl_float4, const addressing_mode, const range< 3 >, cl_float4 &)
 
bool sycl::_V1::detail::isOutOfRange (const cl_int4 PixelCoord, const addressing_mode SmplAddrMode, const range< 3 > ImgRange)
 
cl_float4 sycl::_V1::detail::getBorderColor (const image_channel_order ImgChannelOrder)
 
template<typename T >
vec< T, 4 > sycl::_V1::detail::readPixel (T *Ptr, const image_channel_order ChannelOrder, const image_channel_type ChannelType)
 
template<typename T >
void sycl::_V1::detail::writePixel (const vec< T, 4 > Pixel, T *Ptr, const image_channel_order ChannelOrder, const image_channel_type ChannelType)
 
template<typename ChannelType >
void sycl::_V1::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, vec< cl_uint, 4 > &RetData)
 
template<typename ChannelType >
void sycl::_V1::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, vec< cl_int, 4 > &RetData)
 
template<typename ChannelType >
void sycl::_V1::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, vec< cl_float, 4 > &RetData)
 
template<typename ChannelType >
void sycl::_V1::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, vec< cl_half, 4 > &RetData)
 
template<typename ChannelType >
vec< ChannelType, 4 > sycl::_V1::detail::convertWriteData (const vec< cl_uint, 4 > WriteData, const image_channel_type ImageChannelType)
 
template<typename ChannelType >
vec< ChannelType, 4 > sycl::_V1::detail::convertWriteData (const vec< cl_int, 4 > WriteData, const image_channel_type ImageChannelType)
 
template<typename ChannelType >
vec< ChannelType, 4 > sycl::_V1::detail::processFloatDataToPixel (vec< cl_float, 4 > WriteData, float MulFactor)
 
template<typename ChannelType >
vec< ChannelType, 4 > sycl::_V1::detail::convertWriteData (const vec< cl_float, 4 > WriteData, const image_channel_type ImageChannelType)
 
template<typename ChannelType >
vec< ChannelType, 4 > sycl::_V1::detail::convertWriteData (const vec< cl_half, 4 > WriteData, const image_channel_type ImageChannelType)
 
template<typename CoordT , typename WriteDataT >
void sycl::_V1::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 sycl::_V1::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 sycl::_V1::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 sycl::_V1::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 sycl::_V1::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)