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

12345

/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglBindVertexBuffer.cpp1 /* void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) */
4 (JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) {
13 (GLsizei)stride
3 android_glBindVertexBuffer__IIJI(JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) argument
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dion_buffer.h17 uint32_t stride, uint32_t format, uint64_t usage);
19 uint32_t layer_count, uint32_t stride, uint32_t format,
40 uint32_t layer_count, uint32_t stride, uint32_t format,
47 uint32_t layer_count, uint32_t stride, uint32_t format,
55 uint32_t layer_count, uint32_t stride, uint32_t format,
78 uint32_t stride() const { return buffer_.get() ? buffer_->getStride() : 0; } function in class:android::dvr::IonBuffer
H A Dbuffer_hub_client.h92 uint32_t stride() const { return buffer_.stride(); } function in class:android::dvr::BufferHubBuffer
/frameworks/rs/tests/cpp_api/cppstrided/
H A Dcompute.cpp10 uint32_t stride = 1025; local
15 printf("stride must be greater than or equal to 1024\n");
18 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/native/include/android/
H A Dbitmap.h72 uint32_t stride; member in struct:__anon1493
/frameworks/native/include/ui/
H A DGraphicBufferAllocator.h53 buffer_handle_t* handle, uint32_t* stride, uint64_t graphicBufferId,
65 uint32_t stride; member in struct:android::GraphicBufferAllocator::alloc_rec_t
H A DANativeObjectBase.h32 int32_t stride; member in struct:egl_native_pixmap_t
/frameworks/native/libs/gui/tests/
H A DFillBuffer.cpp25 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride) { argument
29 int yuvTexStrideY = stride;
54 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, argument
57 int yuvTexStrideY = stride;
78 void fillRGBA8Buffer(uint8_t* buf, int w, int h, int stride) {
82 off_t offset = (y * stride + x) * PIXEL_SIZE;
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;
H A DSurfaceTextureGL_test.cpp244 int stride = buf->getStride(); local
245 int yuvTexStrideY = stride;
261 img[y*stride + x] = value;
281 img[y*stride + x] = value;
/frameworks/native/libs/nativewindow/include/android/
H A Dnative_window.h95 int32_t stride; member in struct:ANativeWindow_Buffer
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DMesh.cpp34 size_t stride = vertexSize + texCoordSize; local
35 size_t remainder = (stride * vertexCount) / vertexCount;
36 // Since all of the input parameters are unsigned, if stride is less than
38 // will be equal to stride as long as stride * vertexCount doesn't overflow.
39 if ((stride < vertexSize) || (remainder != stride)) {
51 mVertices = new float[stride * vertexCount];
52 mStride = stride;
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.h42 uint32_t stride; member in class:RsdVertexArray::Attrib
48 void set(uint32_t type, uint32_t size, uint32_t stride, bool normalized, size_t offset, const char *name);
H A DrsdMeshObj.cpp106 uint32_t stride = elem->mHal.state.elementSizeBytes; local
118 mAttribs[userNum].stride = stride;
H A DrsdVertexArray.cpp47 stride = 0;
53 void RsdVertexArray::Attrib::set(uint32_t type, uint32_t size, uint32_t stride, argument
61 this->stride = stride;
69 ALOGV("va %i: slot=%i name=%s buf=%i ptr=%p size=%i type=0x%x stride=0x%x norm=%i offset=0x%p",
76 mAttribs[idx].stride,
113 mAttribs[ct].stride,
/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
/frameworks/base/libs/hwui/renderstate/
H A DMeshState.cpp68 ALOGD("MeshState vertices: vertex data %p, stride %d",
70 ALOGD("MeshState texCoord: data %p, stride %d",
120 void MeshState::bindPositionVertexPointer(const GLvoid* vertices, GLsizei stride) { argument
124 || stride != mCurrentPositionStride) {
125 glVertexAttribPointer(Program::kBindingPosition, 2, GL_FLOAT, GL_FALSE, stride, vertices);
127 mCurrentPositionStride = stride;
131 void MeshState::bindTexCoordsVertexPointer(const GLvoid* vertices, GLsizei stride) { argument
135 || stride != mCurrentTexCoordsStride) {
136 glVertexAttribPointer(Program::kBindingTexCoords, 2, GL_FLOAT, GL_FALSE, stride, vertices);
138 mCurrentTexCoordsStride = stride;
[all...]
/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.h52 uint32_t stride; member in struct:android::CpuConsumer::LockedBuffer
65 // contains the Y channel, and stride is the Y channel stride. For other
77 stride(0),
/frameworks/native/opengl/libs/GLES_CM/
H A Dgl.cpp38 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
40 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
43 GLsizei stride, const GLvoid *pointer, GLsizei count);
45 GLsizei stride, const GLvoid *pointer, GLsizei count);
47 GLsizei stride, const GLvoid *pointer, GLsizei count);
49 GLsizei stride, const GLvoid *pointer, GLsizei count);
51 GLsizei stride, const GLvoid *pointer, GLsizei count);
54 void glColorPointerBounds(GLint size, GLenum type, GLsizei stride, argument
56 glColorPointer(size, type, stride, ptr);
58 void glNormalPointerBounds(GLenum type, GLsizei stride, argument
62 glTexCoordPointerBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
66 glVertexPointerBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
71 glPointSizePointerOESBounds(GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
76 glMatrixIndexPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
81 glWeightPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
[all...]
/frameworks/native/libs/nativewindow/include/vndk/
H A Dwindow.h88 int stride; member in struct:ANativeWindowBuffer
/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp69 rec.width, rec.stride, rec.height, rec.layerCount, rec.format,
75 rec.width, rec.stride, rec.height, rec.layerCount, rec.format,
97 buffer_handle_t* handle, uint32_t* stride,
118 Gralloc2::Error error = mAllocator->allocate(info, stride, handle);
126 rec.stride = *stride;
130 rec.size = static_cast<size_t>(height * (*stride) * bpp);
95 allocate(uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount, uint64_t usage, buffer_handle_t* handle, uint32_t* stride, uint64_t , std::string requestorName) argument
/frameworks/native/libs/vr/libbufferhub/
H A Dion_buffer.cpp27 uint32_t stride, uint32_t format, uint64_t usage)
28 : IonBuffer(handle, width, height, kDefaultGraphicBufferLayerCount, stride,
32 uint32_t layer_count, uint32_t stride, uint32_t format,
37 "stride=%u format=%u usage=%" PRIx64,
38 handle, width, height, layer_count, stride, format, usage);
40 Import(handle, width, height, layer_count, stride, format, usage);
46 "IonBuffer::~IonBuffer: handle=%p width=%u height=%u stride=%u "
48 handle(), width(), height(), stride(), format(), usage());
92 uint32_t layer_count, uint32_t stride, uint32_t format,
96 "stride
26 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t stride, uint32_t format, uint64_t usage) argument
31 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
91 Reset(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
101 Import(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
122 Import(const int* fd_array, int fd_count, const int* int_array, int int_count, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
[all...]

Completed in 670 milliseconds

12345