| 296 | } |
| 297 | |
| 298 | bool 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 | |
| 309 | bool VectorProgram::IsImageAligned(const ImageBase& Source) |
| 310 | { |
nothing calls this directly
no test coverage detected