MCPcopy Create free account
hub / github.com/CRVI/OpenCLIPP / IsImageAligned

Method IsImageAligned

C++/programs/Program.cpp:309–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309bool VectorProgram::IsImageAligned(const ImageBase& Source)
310{
311 uint BytesPerWorker = Source.DepthBytes() * Source.NbChannels() * GetVectorWidth(Source.DataType());
312 return (Source.Step() % BytesPerWorker == 0);
313}
314
315cl::NDRange VectorProgram::GetRange(EProgramVersions Version, const ImageBase& Img1)
316{

Callers

nothing calls this directly

Calls 4

DepthBytesMethod · 0.80
NbChannelsMethod · 0.80
DataTypeMethod · 0.80
StepMethod · 0.80

Tested by

no test coverage detected