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

Method IsImageFlush

C++/programs/Program.cpp:298–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298bool VectorProgram::IsImageFlush(const ImageBase& Source)
299{
300 if (Source.Width() * Source.NbChannels() * Source.DepthBytes() != Source.Step())
301 return false; // Image has padding
302
303 if ((Source.Width() * Source.NbChannels()) % GetVectorWidth(Source.DataType()) != 0)
304 return false; // width is not a multiple of VectorWidth
305
306 return true;
307}
308
309bool VectorProgram::IsImageAligned(const ImageBase& Source)
310{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected