Searched refs:stride (Results 26 - 50 of 182) sorted by relevance

12345678

/frameworks/native/opengl/libagl/
H A Dmipmap.cpp52 int stride = w; local
53 int bs = base->stride;
74 dst[x + y*stride] = rgb;
94 dst[x + y*stride] = (r<<11)|(g<<6)|(b<<1)|a;
121 dst[x + y*stride] = rgba;
140 stride *= skip;
149 dst[x + y*stride + c] = (p00 + p10 + p01 + p11) >> 2;
172 dst[x + y*stride] = rgba;
H A Ddxt.cpp195 void *surface, int stride,
212 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) {
287 for (int y = 0; y < 4; y++, blockRowPtr += stride) {
308 void *surface, int stride)
324 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) {
393 for (int y = 0; y < 4; y++, blockRowPtr += stride) {
417 void *surface, int stride)
448 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) {
550 for (int y = 0; y < 4; y++, blockRowPtr += stride) {
581 * 'stride'
194 decodeDXT1(const GLvoid *data, int width, int height, void *surface, int stride, bool hasAlpha) argument
307 decodeDXT3(const GLvoid *data, int width, int height, void *surface, int stride) argument
416 decodeDXT5(const GLvoid *data, int width, int height, void *surface, int stride) argument
599 decodeDXT(const GLvoid *data, int width, int height, void *surface, int stride, int format) argument
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DMesh.h36 * VertexArray handles the stride automatically.
43 VertexArray(float* data, size_t stride) : mData(data), mStride(stride) { } argument
76 // return stride in bytes
79 // return stride in floats
/frameworks/rs/driver/
H A DrsdVertexArray.h40 uint32_t stride; member in class:RsdVertexArray::Attrib
46 void set(uint32_t type, uint32_t size, uint32_t stride, bool normalized, size_t offset, const char *name);
H A DrsdAllocation.cpp96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride;
97 ptr += yoff * alloc->mHal.drvState.lod[lod].stride;
278 state->lod[2].stride = rsRound(state->lod[0].stride >> 1, 16);
280 (state->lod[0].stride * state->lod[0].dimY);
281 uvSize += state->lod[2].stride * state->lod[2].dimY;
283 state->lod[1].stride = state->lod[2].stride;
285 (state->lod[2].stride * state->lod[2].dimY);
286 uvSize += state->lod[1].stride * stat
312 size_t stride = alloc->mHal.drvState.lod[0].dimX * type->getElementSizeBytes(); local
623 size_t stride = alloc->mHal.state.elementSizeBytes; local
890 rsdAllocationData2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) argument
952 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument
1003 rsdAllocationRead2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) argument
1032 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp619 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4;
680 rStride = buffer->stride;
681 dataSize = buffer->stride * (buffer->height - 1) + buffer->width;
691 cr = buffer->data + (buffer->stride * buffer->height);
709 // Y and C stride need to be 16 pixel aligned.
710 LOG_ALWAYS_FATAL_IF(buffer->stride % 16,
711 "Stride is not 16 pixel aligned %d", buffer->stride);
713 ySize = buffer->stride * buffer->height;
714 cStride = ALIGN(buffer->stride / 2, 16);
727 rStride = (idx == 0) ? buffer->stride
[all...]
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A DGLES11.spec7 void glColorPointer ( GLint size, GLenum type, GLsizei stride, GLint offset )
31 void glNormalPointer ( GLenum type, GLsizei stride, GLint offset )
36 void glPointSizePointerOES ( GLenum type, GLsizei stride, const GLvoid *pointer )
37 void glTexCoordPointer ( GLint size, GLenum type, GLsizei stride, GLint offset )
44 void glVertexPointer ( GLint size, GLenum type, GLsizei stride, GLint offset )
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicConvolve3x3.cpp196 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
200 const uchar4 *py0 = (const uchar4 *)(pin + stride * y2);
201 const uchar4 *py1 = (const uchar4 *)(pin + stride * info->current.y);
202 const uchar4 *py2 = (const uchar4 *)(pin + stride * y1);
243 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
247 const uchar2 *py0 = (const uchar2 *)(pin + stride * y2);
248 const uchar2 *py1 = (const uchar2 *)(pin + stride * info->current.y);
249 const uchar2 *py2 = (const uchar2 *)(pin + stride * y
288 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
333 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
378 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
422 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
[all...]
H A DrsCpuIntrinsicBlur.cpp158 extern void rsdIntrinsicBlurVFU4_K(void *dst, const void *pin, int stride, const void *gptr, int rct, int x1, int ct);
293 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
301 rsdIntrinsicBlurU4_K(out, (uchar4 const *)(pin + stride * info->current.y),
303 stride, x1, info->current.y, x2 - x1, cp->mIradius, cp->mIp + cp->mIradius);
320 const uchar *pi = pin + (y - cp->mIradius) * stride;
321 OneVFU4(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, info->dim.x);
325 OneVU4(info, fout, x1, y, pin, stride, cp->mFp, cp->mIradius);
364 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
[all...]
/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp60 rec.width, rec.stride, rec.height, rec.format, rec.usage,
65 rec.width, rec.stride, rec.height, rec.format, rec.usage,
86 uint32_t* stride, uint64_t graphicBufferId, std::string requestorName)
129 error = mDevice->getStride(*handle, stride);
131 ALOGW("Failed to get stride from buffer: %d", error);
141 rec.stride = *stride;
144 rec.size = static_cast<size_t>(height * (*stride) * bpp);
84 allocate(uint32_t width, uint32_t height, PixelFormat format, uint32_t usage, buffer_handle_t* handle, uint32_t* stride, uint64_t graphicBufferId, std::string requestorName) argument
H A DGraphicBuffer.cpp50 stride =
63 stride =
80 stride = static_cast<int>(inStride);
94 stride = buffer->stride;
180 stride = static_cast<int>(outStride);
302 buf[3] = stride;
346 width = height = stride = format = usage = 0;
367 stride = buf[3];
373 width = height = stride
[all...]
/frameworks/rs/driver/runtime/
H A Drs_allocation.c115 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; local
117 uint8_t *dp = &p[(sizeOf * x) + (y * stride) +
118 (z * stride * dimY)];
130 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
133 uint8_t *dp = &p[(sizeOf * x) + (y * stride) +
134 (z * stride * dimY)];
266 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
275 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
292 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
301 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
385 const size_t stride = alloc->mHal.drvState.lod[1].stride; local
399 const size_t stride = alloc->mHal.drvState.lod[2].stride; local
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLES10.java382 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer )
387 int stride,
395 int stride,
401 stride,
409 (stride >= 0)) {
945 // C function void glNormalPointer ( GLenum type, GLsizei stride, const GLvoid *pointer )
949 int stride,
956 int stride,
961 stride,
969 (stride >
384 glColorPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
392 glColorPointer( int size, int type, int stride, java.nio.Buffer pointer ) argument
947 glNormalPointerBounds( int type, int stride, java.nio.Buffer pointer, int remaining ) argument
954 glNormalPointer( int type, int stride, java.nio.Buffer pointer ) argument
1138 glTexCoordPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
1146 glTexCoordPointer( int size, int type, int stride, java.nio.Buffer pointer ) argument
1283 glVertexPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
1291 glVertexPointer( int size, int type, int stride, java.nio.Buffer pointer ) argument
[all...]
H A DGLES11.java218 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, GLint offset )
223 int stride,
546 // C function void glNormalPointer ( GLenum type, GLsizei stride, GLint offset )
550 int stride,
598 // C function void glPointSizePointerOES ( GLenum type, GLsizei stride, const GLvoid *pointer )
602 int stride,
609 int stride,
614 stride,
620 (stride >= 0)) {
625 // C function void glTexCoordPointer ( GLint size, GLenum type, GLsizei stride, GLin
220 glColorPointer( int size, int type, int stride, int offset ) argument
548 glNormalPointer( int type, int stride, int offset ) argument
600 glPointSizePointerOESBounds( int type, int stride, java.nio.Buffer pointer, int remaining ) argument
607 glPointSizePointerOES( int type, int stride, java.nio.Buffer pointer ) argument
627 glTexCoordPointer( int size, int type, int stride, int offset ) argument
720 glVertexPointer( int size, int type, int stride, int offset ) argument
[all...]
/frameworks/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp108 || readInfo.stride != targetInfo.stride || readInfo.format != targetInfo.format
123 size_t byteCount = readInfo.stride * readInfo.height;
162 size_t byteCount = info.stride * info.height;
/frameworks/native/include/android/
H A Dnative_window.h69 int32_t stride; member in struct:ANativeWindow_Buffer
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A Dcommon.cpp23 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
25 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
28 GLsizei stride, const GLvoid *pointer, GLsizei count);
30 GLsizei stride, const GLvoid *pointer, GLsizei count);
32 GLsizei stride, const GLvoid *pointer, GLsizei count);
34 GLsizei stride, const GLvoid *pointer, GLsizei count);
36 GLsizei stride, const GLvoid *pointer, GLsizei count);
40 GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) {
41 glVertexAttribPointer(indx, size, type, normalized, stride, pointer);
46 GLsizei stride, cons
39 glVertexAttribPointerBounds(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
45 glVertexAttribIPointerBounds(GLuint indx, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
[all...]
/frameworks/native/include/gui/
H A DCpuConsumer.h51 uint32_t stride; member in struct:android::CpuConsumer::LockedBuffer
64 // contains the Y channel, and stride is the Y channel stride. For other
76 stride(0),
/frameworks/native/include/ui/
H A DGraphicBufferAllocator.h63 uint32_t usage, buffer_handle_t* handle, uint32_t* stride,
75 uint32_t stride; member in struct:android::GraphicBufferAllocator::alloc_rec_t
/frameworks/rs/
H A DrsAllocation.h91 size_t stride; member in struct:android::renderscript::Allocation::Hal::DrvState::LodState
138 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride);
140 uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride);
144 uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride);
146 uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride);
196 uint32_t z, uint32_t array, size_t *stride);
205 p += y * mHal.drvState.lod[lod].stride;
206 p += z * mHal.drvState.lod[lod].stride * mHal.drvState.lod[lod].dimY;
H A DrsGrallocConsumer.cpp148 mAlloc[idx]->mHal.drvState.lod[0].stride = mSlots[slot].mGraphicBuffer->getStride() *
190 mAlloc[idx]->mHal.drvState.lod[0].stride = ycbcr.ystride;
191 mAlloc[idx]->mHal.drvState.lod[1].stride = ycbcr.cstride;
192 mAlloc[idx]->mHal.drvState.lod[2].stride = ycbcr.cstride;
221 mAlloc[idx]->mHal.drvState.lod[0].stride = yStride;
222 mAlloc[idx]->mHal.drvState.lod[1].stride = cStride;
223 mAlloc[idx]->mHal.drvState.lod[2].stride = cStride;
H A DrsAllocation.cpp171 uint32_t z, uint32_t array, size_t *stride) {
186 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) {
187 *stride = mHal.drvState.lod[lod].stride;
210 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) {
211 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride);
217 uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) {
218 rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride);
239 uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) {
242 if (!stride) {
170 getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, uint32_t z, uint32_t array, size_t *stride) argument
209 data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) argument
215 data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument
238 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) argument
256 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument
668 size_t stride = 0; local
741 rsi_Allocation2DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) argument
747 rsi_Allocation3DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument
928 rsi_AllocationGetPointer(Context *rsc, RsAllocation valloc, uint32_t lod, RsAllocationCubemapFace face, uint32_t z, uint32_t array, size_t *stride, size_t strideLen) argument
949 rsi_Allocation2DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) argument
956 rsi_Allocation3DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument
[all...]
/frameworks/av/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp70 CHECK(format->findInt32("stride", &widthNew));
242 buf->stride, buf->height,
254 size_t dst_y_size = buf->stride * buf->height;
255 size_t dst_c_stride = ALIGN(buf->stride / 2, 16);
264 dst_y += buf->stride;
287 size_t dst_y_size = buf->stride * buf->height;
288 size_t dst_c_stride = ALIGN(buf->stride / 2, 16);
297 dst_y += buf->stride;
321 dstPtr += buf->stride * 3;
331 dstPtr = (uint8_t*)dst + buf->stride *
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DRenderState.cpp296 meshState().bindPositionVertexPointer(vertices.position, vertices.stride);
324 meshState().bindTexCoordsVertexPointer(vertices.texCoord, vertices.stride);
332 glVertexAttribPointer(colorLocation, 4, GL_FLOAT, GL_FALSE, vertices.stride, vertices.color);
340 glVertexAttribPointer(alphaLocation, 1, GL_FLOAT, GL_FALSE, vertices.stride, alphaCoords);
367 meshState().bindPositionVertexPointer(vertexData, vertices.stride);
370 vertexData + kMeshTextureOffset, vertices.stride);
375 vertexData += (drawCount / 6) * 4 * vertices.stride;
/frameworks/native/opengl/tools/glgen/stubs/jsr239/
H A DGLCHeader.cpp52 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
54 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
57 GLsizei stride, const GLvoid *pointer, GLsizei count);
59 GLsizei stride, const GLvoid *pointer, GLsizei count);
61 GLsizei stride, const GLvoid *pointer, GLsizei count);
63 GLsizei stride, const GLvoid *pointer, GLsizei count);
65 GLsizei stride, const GLvoid *pointer, GLsizei count);

Completed in 776 milliseconds

12345678