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

1234567

/frameworks/native/libs/gui/tests/
H A DSurfaceTextureFBO.h59 void fillRGBA8BufferSolid(uint8_t* buf, int w, int h, int stride, argument
64 off_t offset = (y * stride + x) * PIXEL_SIZE;
/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
313 size_t stride = alloc->mHal.drvState.lod[0].dimX * type->getElementSizeBytes(); local
596 size_t stride = alloc->mHal.state.elementSizeBytes; local
863 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
923 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
974 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
1003 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/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 DGraphicBuffer.cpp50 stride =
63 stride =
79 stride = static_cast<int>(inStride);
92 stride = buffer->stride;
177 stride = static_cast<int>(outStride);
299 buf[3] = stride;
343 width = height = stride = format = usage = 0;
364 stride = buf[3];
370 width = height = stride
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp760 image->stride = (ycbcr.y != NULL) ? static_cast<uint32_t>(ycbcr.ystride) : buffer->getStride();
793 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4;
854 rStride = buffer->stride;
855 dataSize = buffer->stride * (buffer->height - 1) + buffer->width;
865 cr = buffer->data + (buffer->stride * buffer->height);
883 // Y and C stride need to be 16 pixel aligned.
884 LOG_ALWAYS_FATAL_IF(buffer->stride % 16,
885 "Stride is not 16 pixel aligned %d", buffer->stride);
887 ySize = buffer->stride * buffer->height;
888 cStride = ALIGN(buffer->stride /
[all...]
H A Dandroid_media_ImageReader.cpp342 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4;
413 dataSize = buffer->stride * (buffer->height - 1) + buffer->width;
421 cr = buffer->data + (buffer->stride * buffer->height);
437 // Y and C stride need to be 16 pixel aligned.
438 LOG_ALWAYS_FATAL_IF(buffer->stride % 16,
439 "Stride is not 16 pixel aligned %d", buffer->stride);
441 ySize = buffer->stride * buffer->height;
442 cStride = ALIGN(buffer->stride / 2, 16);
460 dataSize = buffer->stride * buffer->height;
468 dataSize = buffer->stride * buffe
[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...]
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/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp101 || readInfo.stride != targetInfo.stride || readInfo.format != targetInfo.format
116 size_t byteCount = readInfo.stride * readInfo.height;
155 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/av/services/camera/libcameraservice/api1/client2/
H A DBurstCapture.cpp88 imgEncoded->stride = imgBuffer->stride;
/frameworks/rs/
H A DrsAllocation.h87 size_t stride; member in struct:android::renderscript::Allocation::Hal::DrvState::LodState
131 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride);
133 uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride);
137 uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride);
139 uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride);
186 uint32_t z, uint32_t array, size_t *stride);
195 p += y * mHal.drvState.lod[lod].stride;
196 p += z * mHal.drvState.lod[lod].stride * mHal.drvState.lod[lod].dimY;
H A DrsAllocation.cpp161 uint32_t z, uint32_t array, size_t *stride) {
176 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) {
177 *stride = mHal.drvState.lod[lod].stride;
200 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) {
201 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride);
207 uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) {
208 rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride);
229 uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) {
232 if (!stride) {
160 getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, uint32_t z, uint32_t array, size_t *stride) argument
199 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
205 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
228 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
246 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
608 size_t stride = 0; local
681 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
687 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
844 rsi_AllocationGetPointer(Context *rsc, RsAllocation valloc, uint32_t lod, RsAllocationCubemapFace face, uint32_t z, uint32_t array, size_t *stride, size_t strideLen) argument
865 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
872 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.cpp264 meshState().bindPositionVertexPointer(force, vertices.position, vertices.stride);
283 meshState().bindTexCoordsVertexPointer(force, vertices.texCoord, vertices.stride);
296 glVertexAttribPointer(colorLocation, 4, GL_FLOAT, GL_FALSE, vertices.stride, vertices.color);
304 glVertexAttribPointer(alphaLocation, 1, GL_FLOAT, GL_FALSE, vertices.stride, alphaCoords);
326 meshState().bindPositionVertexPointer(false, vertexData, vertices.stride);
329 vertexData + kMeshTextureOffset, vertices.stride);
334 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);
/frameworks/av/media/libstagefright/filters/
H A DColorConvert.cpp94 uint8_t *src, int32_t width, int32_t height, uint32_t stride,
107 src += (stride - width) * 4;
93 convertRGBAToARGB( uint8_t *src, int32_t width, int32_t height, uint32_t stride, uint8_t *dest) argument

Completed in 330 milliseconds

1234567