| 221 | } |
| 222 | |
| 223 | void ILAPIENTRY iFlipBuffer(ILubyte *buff, ILuint depth, ILuint line_size, ILuint line_num) |
| 224 | { |
| 225 | ILubyte *StartPtr, *EndPtr; |
| 226 | ILuint y, d; |
| 227 | const ILuint size = line_num * line_size; |
| 228 | |
| 229 | for (d = 0; d < depth; d++) { |
| 230 | StartPtr = buff + d * size; |
| 231 | EndPtr = buff + d * size + size; |
| 232 | |
| 233 | for (y = 0; y < (line_num/2); y++) { |
| 234 | EndPtr -= line_size; |
| 235 | iMemSwap(StartPtr, EndPtr, line_size); |
| 236 | StartPtr += line_size; |
| 237 | } |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | // Just created for internal use. |
| 242 | ILubyte* iFlipNewBuffer(ILubyte *buff, ILuint depth, ILuint line_size, ILuint line_num) |
nothing calls this directly
no test coverage detected