Searched defs:stride (Results 1 - 25 of 86) sorted by relevance

1234

/frameworks/native/include/android/
H A Dnative_window.h47 int32_t stride; member in struct:ANativeWindow_Buffer
H A Dbitmap.h46 uint32_t stride; member in struct:__anon1331
/frameworks/rs/tests/cppstrided/
H A Dcompute.cpp13 uint32_t stride = 1025; local
18 printf("stride must be greater than or equal to 1024\n");
21 stride = (uint32_t) tempStride;
40 uint32_t* buf = (uint32_t*) malloc(stride * numElems * sizeof(uint32_t));
48 *(buf+(stride*i)+ct) = (uint32_t)ct + (i * numElems);
52 ain->copy2DStridedFrom(buf, stride * sizeof(uint32_t));
56 aout->copy2DStridedTo(buf, stride * sizeof(uint32_t));
60 if (*(buf+(stride*i)+ct) != (uint32_t)(ct + (i * numElems)) * 2) {
61 printf("Mismatch at location %d, %d: %u\n", i, ct, *(buf+(stride*i)+ct));
67 printf("Test successful with %u stride!\
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DPreviewRenderer.cpp85 // Provides a buffer and associated stride
97 void PreviewRenderer::getBufferYV12(uint8_t **data, size_t *stride) { argument
116 *stride = mBuf->stride;
/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, uint32_t offset, const char *name);
H A DrsdMeshObj.cpp102 uint32_t stride = elem->mHal.state.elementSizeBytes; local
114 mAttribs[userNum].stride = stride;
H A DrsdVertexArray.cpp48 stride = 0;
54 void RsdVertexArray::Attrib::set(uint32_t type, uint32_t size, uint32_t stride, argument
62 this->stride = stride;
70 ALOGV("va %i: slot=%i name=%s buf=%i ptr=%p size=%i type=0x%x stride=0x%x norm=%i offset=0x%x",
77 mAttribs[idx].stride,
114 mAttribs[ct].stride,
/frameworks/base/opengl/java/android/opengl/
H A DETC1.java91 * pixel (x,y) is at pIn + pixelSize * x + stride * y;
98 int pixelSize, int stride, Buffer out);
104 * pixel (x,y) is at pIn + pixelSize * x + stride * y. Must be
110 int width, int height, int pixelSize, int stride);
97 encodeImage(Buffer in, int width, int height, int pixelSize, int stride, Buffer out) argument
109 decodeImage(Buffer in, Buffer out, int width, int height, int pixelSize, int stride) argument
H A DETC1Util.java84 int stride = pixelSize * width;
85 ByteBuffer decodedData = ByteBuffer.allocateDirect(stride*height)
87 ETC1.decodeImage(data, decodedData, width, height, pixelSize, stride);
189 * @param stride the width of a line of the image in bytes
192 public static ETC1Texture compressTexture(Buffer input, int width, int height, int pixelSize, int stride){ argument
196 ETC1.encodeImage(input, width, height, pixelSize, stride, compressedImage);
/frameworks/native/include/gui/
H A DCpuConsumer.h51 uint32_t stride; member in struct:android::CpuConsumer::LockedBuffer
59 // contains the Y channel, and stride is the Y channel stride. For other
/frameworks/native/include/ui/
H A DANativeObjectBase.h34 int32_t stride; member in struct:egl_native_pixmap_t
/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp94 int usage, buffer_handle_t* handle, int32_t* stride)
105 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
122 rec.s = *stride;
125 rec.size = h * stride[0] * bpp;
93 alloc(uint32_t w, uint32_t h, PixelFormat format, int usage, buffer_handle_t* handle, int32_t* stride) argument
H A DFramebufferNativeWindow.cpp80 int stride; local
127 GRALLOC_USAGE_HW_FB, &buffers[i]->handle, &buffers[i]->stride);
/frameworks/native/opengl/libs/GLES_CM/
H A Dgl.cpp39 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
41 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
44 GLsizei stride, const GLvoid *pointer, GLsizei count);
46 GLsizei stride, const GLvoid *pointer, GLsizei count);
48 GLsizei stride, const GLvoid *pointer, GLsizei count);
50 GLsizei stride, const GLvoid *pointer, GLsizei count);
52 GLsizei stride, const GLvoid *pointer, GLsizei count);
55 void glColorPointerBounds(GLint size, GLenum type, GLsizei stride, argument
57 glColorPointer(size, type, stride, ptr);
59 void glNormalPointerBounds(GLenum type, GLsizei stride, argument
63 glTexCoordPointerBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
67 glVertexPointerBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
72 glPointSizePointerOESBounds(GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
77 glMatrixIndexPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
82 glWeightPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) 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/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;
/frameworks/rs/driver/runtime/
H A Drs_allocation.c110 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
112 uint8_t *dp = &p[(sizeOf * x) + (y * stride) +
113 (z * stride * dimY)];
175 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
176 return &p[(eSize * x) + (y * stride)];
184 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
186 return &p[(eSize * x) + (y * stride)
201 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
210 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
272 const size_t stride = alloc->mHal.drvState.lod[1].stride; local
286 const size_t stride = alloc->mHal.drvState.lod[2].stride; local
[all...]
/frameworks/base/libs/hwui/
H A DTextureCache.cpp300 void TextureCache::uploadToTexture(bool resize, GLenum format, GLsizei stride, argument
303 // if the stride doesn't match the width
304 const bool useStride = stride != width && Extensions::getInstance().hasUnpackRowLength();
306 glPixelStorei(GL_UNPACK_ROW_LENGTH, stride);
/frameworks/base/media/mca/filterfw/native/core/
H A Dshader_program.h248 // offset and stride to select the correct data portion.
253 // stride: The delta of one element to the next in bytes.
262 int stride,
277 int stride,
414 int stride; member in struct:android::filterfw::ShaderProgram::VertexAttrib
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
H A DGL11Ext.java128 int stride,
135 int stride,
142 int stride,
149 int stride,
125 glMatrixIndexPointerOES( int size, int type, int stride, java.nio.Buffer pointer ) argument
132 glMatrixIndexPointerOES( int size, int type, int stride, int offset ) argument
139 glWeightPointerOES( int size, int type, int stride, java.nio.Buffer pointer ) argument
146 glWeightPointerOES( int size, int type, int stride, int offset ) argument
/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/rs/cpp/
H A DAllocation.cpp263 const void *data, size_t stride) {
267 w * h * mType->getElement()->getSizeBytes(), stride));
270 void Allocation::copy2DStridedFrom(const void* data, size_t stride) { argument
271 copy2DStridedFrom(0, 0, mCurrentDimX, mCurrentDimY, data, stride);
275 void *data, size_t stride) {
279 w * h * mType->getElement()->getSizeBytes(), stride));
282 void Allocation::copy2DStridedTo(void* data, size_t stride) { argument
283 copy2DStridedTo(0, 0, mCurrentDimX, mCurrentDimY, data, stride);
262 copy2DStridedFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, const void *data, size_t stride) argument
274 copy2DStridedTo(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, void *data, size_t stride) argument
/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 * p->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 * p->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 DrsCpuIntrinsicConvolve5x5.cpp358 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
366 const uchar4 *py0 = (const uchar4 *)(pin + stride * y0);
367 const uchar4 *py1 = (const uchar4 *)(pin + stride * y1);
368 const uchar4 *py2 = (const uchar4 *)(pin + stride * y2);
369 const uchar4 *py3 = (const uchar4 *)(pin + stride * y3);
370 const uchar4 *py4 = (const uchar4 *)(pin + stride * y4);
407 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
415 const uchar2 *py0 = (const uchar2 *)(pin + stride * y
456 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
505 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
554 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
603 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
[all...]
/frameworks/rs/
H A DrsAllocation.h78 size_t stride; member in struct:android::renderscript::Allocation::Hal::DrvState::LodState
116 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride);
118 uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride);
122 uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride);
124 uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride);

Completed in 642 milliseconds

1234