Lines Matching defs:bytes
53 void *element = (unsigned char*)buffer + x * bytes + y * pitchB + z * sliceB;
60 void *element = (unsigned char*)buffer + x * bytes + y * pitchB;
371 void *element = (unsigned char*)buffer + x * bytes + y * pitchB + z * sliceB;
378 void *element = (unsigned char*)buffer + x * bytes + y * pitchB;
1156 return (unsigned char*)buffer + x * bytes + y * pitchB + z * sliceB;
1180 external.bytes = bytes(external.format);
1182 external.pitchP = external.bytes ? pitch / external.bytes : 0;
1184 external.sliceP = external.bytes ? slice / external.bytes : 0;
1193 internal.bytes = bytes(internal.format);
1206 stencil.bytes = bytes(stencil.format);
1230 external.bytes = bytes(external.format);
1243 internal.bytes = bytes(internal.format);
1244 internal.pitchB = !pitchPprovided ? pitchB(internal.width, internal.format, renderTarget) : pitchPprovided * internal.bytes;
1256 stencil.bytes = bytes(stencil.format);
1448 int Surface::bytes(Format format)
1683 return bytes(format) * width;
1689 int B = bytes(format);
1762 int B = bytes(format);
1843 int rowBytes = width * source.bytes;
1866 sourceElement += source.bytes;
1867 destinationElement += destination.bytes;
1903 sourceElement += source.bytes;
1904 destinationElement += destination.bytes;
1941 sourceElement += source.bytes;
1942 destinationElement += destination.bytes;
1980 sourceElement += source.bytes;
1981 destinationElement += destination.bytes;
2018 sourceElement += source.bytes;
2019 destinationElement += destination.bytes;
2057 sourceElement += source.bytes;
2058 destinationElement += destination.bytes;
2096 sourceElement += source.bytes;
2097 destinationElement += destination.bytes;
2426 ETC_Decoder::Decode((const byte*)external.buffer, (byte*)internal.buffer, external.width, external.height, internal.width, internal.height, internal.pitchB, internal.bytes,
2449 byte* srcPix = srcRow + x * internal.bytes;
2463 ETC_Decoder::Decode((const byte*)external.buffer, (byte*)internal.buffer, external.width, external.height, internal.width, internal.height, internal.pitchB, internal.bytes,
2479 sbyte* srcPix = srcRow + dx * internal.bytes + mx * nbChannels;
2480 float* dstPix = (float*)(srcRow + x * internal.bytes);
2578 return bytes(format) * width * height * depth;
3028 // FIXME: Unpacking byte4 to short4 in the sampler currently involves reading 8 bytes,
3029 // so we have to allocate 4 extra bytes to avoid buffer overruns.
3033 void Surface::memfill4(void *buffer, int pattern, int bytes)
3035 while((size_t)buffer & 0x1 && bytes >= 1)
3039 bytes -= 1;
3042 while((size_t)buffer & 0x3 && bytes >= 2)
3046 bytes -= 2;
3051 while((size_t)buffer & 0xF && bytes >= 4)
3055 bytes -= 4;
3061 int qxwords = bytes / 64;
3062 bytes -= qxwords * 64;
3077 while(bytes >= 4)
3081 bytes -= 4;
3084 while(bytes >= 2)
3088 bytes -= 2;
3091 while(bytes >= 1)
3095 bytes -= 1;
3323 if(buffer->bytes <= 4)
3328 if(buffer->bytes <= 1) c = (c << 8) | c;
3329 if(buffer->bytes <= 2) c = (c << 16) | c;
3333 memfill4(row, c, width * buffer->bytes);
3348 element += buffer->bytes;