Searched defs:stride (Results 51 - 75 of 118) sorted by relevance

12345

/frameworks/av/media/libaudioprocessing/
H A DAudioResamplerDyn.cpp415 // stride is the minimum number of filter coefficients processed per loop iteration.
416 // We currently only allow a stride of 16 to match with SIMD processing.
420 // Note: A stride of 2 is achieved with non-SIMD processing.
421 int stride = ((c.mHalfNumCoefs & 7) == 0) ? 16 : 2; local
422 LOG_ALWAYS_FATAL_IF(stride < 16, "Resampler stride must be 16 or more");
425 // stride 16 (falls back to stride 2 for machines that do not support NEON)
482 printf("channels:%d %s stride:%d %s coef:%d shift:%d\n",
484 stride, useS3
[all...]
/frameworks/av/media/libstagefright/codecs/avcdec/
H A DSoftAVCDec.cpp141 status_t SoftAVC::setParams(size_t stride) { argument
145 s_ctl_ip.u4_disp_wd = (UWORD32)stride;
155 ALOGV("Set the run-time (dynamic) parameters stride = %zu", stride);
/frameworks/av/media/libstagefright/codecs/hevcdec/
H A DSoftHEVC.cpp137 status_t SoftHEVC::setParams(size_t stride) { argument
141 s_ctl_ip.u4_disp_wd = (UWORD32)stride;
151 ALOGV("Set the run-time (dynamic) parameters stride = %zu", stride);
/frameworks/av/media/libstagefright/codecs/mpeg2dec/
H A DSoftMPEG2.cpp144 status_t SoftMPEG2::setParams(size_t stride) { argument
148 s_ctl_ip.u4_disp_wd = (UWORD32)stride;
158 ALOGV("Set the run-time (dynamic) parameters stride = %zu", stride);
/frameworks/av/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp351 static void fillYV12Buffer(uint8_t* buf, int w, int h, int stride) ;
353 int stride, const android_native_rect_t& rect) ;
536 void SurfaceMediaSourceTest::fillYV12Buffer(uint8_t* buf, int w, int h, int stride) { argument
540 int yuvTexStrideY = stride;
567 int h, int stride, const android_native_rect_t& rect) {
569 int yuvTexStrideY = stride;
566 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp269 uint32_t stride = buf->getStride(); local
270 ALOGV("%s: stride is: %" PRIu32, __FUNCTION__, stride);
271 LOG_ALWAYS_FATAL_IF(stride % 16, "Stride is not 16 pixel aligned %d", stride);
273 uint32_t cStride = ALIGN(stride / 2, 16);
277 uint8_t* crPlane = img + static_cast<uint32_t>(height) * stride;
281 crPlane, cbPlane, chromaStep, stride, cStride);
H A Dandroid_opengl_GLES10Ext.cpp49 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
51 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
54 GLsizei stride, const GLvoid *pointer, GLsizei count);
56 GLsizei stride, const GLvoid *pointer, GLsizei count);
58 GLsizei stride, const GLvoid *pointer, GLsizei count);
60 GLsizei stride, const GLvoid *pointer, GLsizei count);
62 GLsizei stride, const GLvoid *pointer, GLsizei count);
66 GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) {
67 glVertexAttribPointer(indx, size, type, normalized, stride, pointer);
72 GLsizei stride, cons
65 glVertexAttribPointerBounds(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
71 glVertexAttribIPointerBounds(GLuint indx, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java250 /*package*/ static Bitmap nativeCreate(int[] colors, int offset, int stride, int width, argument
258 image.setRGB(0, 0, width, height, colors, offset, stride);
413 int stride, int x, int y, int width, int height) {
419 delegate.getImage().getRGB(x, y, width, height, pixels, offset, stride);
435 int stride, int x, int y, int width, int height) {
441 delegate.getImage().setRGB(x, y, width, height, colors, offset, stride);
412 nativeGetPixels(long nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
434 nativeSetPixels(long nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument
H A DBaseCanvas_Delegate.java111 /*package*/ static void nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, argument
117 image.setRGB(0, 0, width, height, colors, offset, stride);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java229 public void drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, argument
234 public void drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, argument
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp172 bPtr += y * buf.stride + x;
191 bPtr += y * buf.stride + x;
197 // stride is in pixels, not in bytes
198 uint16_t *bPtr = ((uint16_t*)buf.data) + y * buf.stride + x;
206 bPtr += (y * buf.stride + x) * bytesPerPixel;
221 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride);
225 void fillGreyscaleBuffer(T* buf, int w, int h, int stride, int bpp) { argument
233 // stride is in pixels, not in bytes
234 int yuvTexStrideY = stride;
254 void fillRgba8888Buffer(uint8_t* buf, int w, int h, int stride) argument
281 fillBayerRawBuffer(uint8_t* buf, int w, int h, int stride) argument
482 produceOneFrame(const sp<ANativeWindow>& anw, const CpuConsumerTestParams& params, int64_t timestamp, uint32_t *stride) argument
551 uint32_t stride; local
586 uint32_t stride[numInQueue]; local
628 uint32_t stride; local
[all...]
/frameworks/native/opengl/libagl/
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...]
H A Darray.cpp313 GLint size, GLenum type, GLsizei stride,
316 if (!stride) {
317 stride = size;
321 stride *= 2;
325 stride *= 4;
331 this->stride = stride;
970 const size_t stride = c->arrays.vertex.stride; local
980 vp += stride;
312 init( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, const buffer_t* bo, GLsizei count) argument
1239 glVertexPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) argument
1260 glColorPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) argument
1280 glNormalPointer( GLenum type, GLsizei stride, const GLvoid *pointer) argument
1301 glTexCoordPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) argument
[all...]
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestBuffer.cpp332 /* Sets the pixel of a buffer given the location, format, stride and color.
335 android_pixel_format_t format, uint32_t stride, uint8_t* img, uint8_t r,
340 img[(y * stride + x) * 4 + 0] = r;
341 img[(y * stride + x) * 4 + 1] = g;
342 img[(y * stride + x) * 4 + 2] = b;
343 img[(y * stride + x) * 4 + 3] = a;
413 uint32_t stride = mGraphicBuffer->getStride(); local
435 setColor(x, y, mFormat, stride, img, max, min, min, 255);
439 setColor(x, y, mFormat, stride, img, min, max, min, 255);
443 setColor(x, y, mFormat, stride, im
334 setColor(int32_t x, int32_t y, android_pixel_format_t format, uint32_t stride, uint8_t* img, uint8_t r, uint8_t g, uint8_t b, uint8_t a) argument
485 uint32_t stride = mGraphicBuffer->getStride(); local
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuScript.cpp887 size_t stride = elem->getSizeBytes(); local
891 cVal += stride;
898 oldVal += stride;
/frameworks/rs/driver/runtime/
H A Drs_sample.c84 getElementAt1(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
85 p += y * stride;
91 getElementAt2(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
92 p += y * stride;
99 getElementAt3(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
100 p += y * stride;
107 getElementAt4(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
108 p += y * stride;
115 getElementAt565(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
116 p += y * stride;
188 getSample_A(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
201 getSample_L(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
214 getSample_LA(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
227 getSample_RGB(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
240 getSample_RGBA(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
252 getSample_565(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
323 size_t stride = alloc->mHal.drvState.lod[lod].stride; local
389 size_t stride = alloc->mHal.drvState.lod[lod].stride; local
[all...]
H A Drs_structs.h65 size_t stride; member in struct:Allocation::__anon1998::DrvState::LodState
/frameworks/rs/rsov/compiler/
H A DWrapper.cpp42 const size_t stride = m->getSize(elementType); local
43 ArrTy->decorate(Decoration::ArrayStride)->addExtraOperand(stride);
/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp2020 int format, int stride) {
2029 size_t ySize = stride * height;
2030 size_t uvStride = (stride / 2 + 0xF) & ~0xF;
2019 calculateBufferSize(int width, int height, int format, int stride) argument
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.cpp229 uint32_t stride = 0; local
236 stride = anb->stride;
239 _hidl_cb(s, bufferId, buf, stride);
882 buffer_handle_t** buffer, int *stride)
890 *stride = anb->stride;
881 sDequeueBuffer(struct preview_stream_ops* w, buffer_handle_t** buffer, int *stride) argument
/frameworks/base/core/java/android/view/
H A DRecordingCanvas.java146 public final void drawBitmap(@NonNull int[] colors, int offset, int stride, float x, float y, argument
155 if (Math.abs(stride) < width) {
156 throw new IllegalArgumentException("abs(stride) must be >= width");
158 int lastScanline = offset + (height - 1) * stride;
169 nDrawBitmap(mNativeCanvasWrapper, colors, offset, stride, x, y, width, height, hasAlpha,
176 public final void drawBitmap(@NonNull int[] colors, int offset, int stride, int x, int y, argument
179 drawBitmap(colors, offset, stride, (float) x, (float) y, width, height,
546 private static native void nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, argument
/frameworks/base/graphics/java/android/graphics/
H A DBaseCanvas.java168 public void drawBitmap(@NonNull int[] colors, int offset, int stride, float x, float y, argument
177 if (Math.abs(stride) < width) {
178 throw new IllegalArgumentException("abs(stride) must be >= width");
180 int lastScanline = offset + (height - 1) * stride;
192 nDrawBitmap(mNativeCanvasWrapper, colors, offset, stride, x, y, width, height, hasAlpha,
197 public void drawBitmap(@NonNull int[] colors, int offset, int stride, int x, int y, argument
200 drawBitmap(colors, offset, stride, (float) x, (float) y, width, height,
564 private static native void nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, argument
/frameworks/base/media/mca/filterfw/native/core/
H A Dshader_program.cpp60 stride(0),
948 int stride,
960 attrib.stride = stride;
974 int stride,
986 attrib.stride = stride;
1026 attrib.stride = components * sizeof(float);
1076 attrib.stride,
1086 attrib.stride,
944 SetAttributeValues(ProgramVar var, const VertexFrame* vbo, GLenum type, int components, int stride, int offset, bool normalize) argument
970 SetAttributeValues(ProgramVar var, const uint8_t* data, GLenum type, int components, int stride, int offset, bool normalize) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DImageShader.java96 public void set(boolean normalize, int stride, int components, int type, float[] values) { argument
99 mStride = stride;
110 public void set(boolean normalize, int offset, int stride, int components, int type, argument
115 mStride = stride;
406 int stride, int offset, boolean normalize) {
408 attr.set(normalize, offset, stride, components, type, vbo);
405 setAttributeValues(String attributeName, int vbo, int type, int components, int stride, int offset, boolean normalize) argument
/frameworks/native/libs/gui/
H A DGLConsumer.cpp355 uint32_t stride = buffer->getStride(); local
357 memset(bits, 0, stride * height * 4);
363 bits += stride;

Completed in 424 milliseconds

12345