Searched refs:stride (Results 1 - 13 of 13) sorted by relevance

/packages/apps/Gallery2/jni/filters/
H A Dkmeans.h26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { argument
32 for (x = 0; x < len; x+= stride) {
88 void initialPickHeuristicRandom(int k, T values[], int len, int dimension, int stride, T dst[], argument
91 num_vals = len / stride;
111 r *= stride;
115 cntr += stride;
123 inline int findClosest(T values[], T oldCenters[], int dimension, int stride, int pop_size) { argument
127 for (y = stride; y < pop_size; y+=stride) {
141 int calculateNewCentroids(int k, T values[], int len, int dimension, int stride, argument
179 runKMeansWithPicks(int k, T finalCentroids[], T values[], int len, int dimension, int stride, int iterations, T initialPicks[]) argument
209 runKMeans(int k, T finalCentroids[], T values[], int len, int dimension, int stride, int iterations, unsigned int seed) argument
223 applyCentroids(int k, T centroids[], T values[], int len, int dimension, int stride) argument
[all...]
H A Dkmeans.cc51 int stride = 4; local
55 unsigned char finalCentroids[k * stride];
59 stride, iterations, s);
64 unsigned char nextCentroids[k * stride];
68 dimension, stride, iterations, finalCentroids);
73 applyCentroids<unsigned char, int>(k, nextCentroids, dst, len, dimension, stride);
/packages/services/Car/evs/app/
H A DRenderPixelCopy.cpp68 tgtBuffer.stride);
88 srcBuffer.stride);
104 tgtPixels, tgtBuffer.stride);
108 tgtPixels, tgtBuffer.stride);
111 srcPixels, srcBuffer.stride,
112 tgtPixels, tgtBuffer.stride);
115 srcPixels, srcBuffer.stride,
116 tgtPixels, tgtBuffer.stride,
H A DTexWrapper.cpp138 int stride = png_get_rowbytes(pngControl, pngInfo); local
139 stride += 3 - ((stride-1) % 4); // glTexImage2d requires rows to be 4-byte aligned
142 png_byte * buffer = (png_byte*)malloc(stride * height);
163 rowPointers[r] = buffer + r*stride;
H A DVideoTex.cpp92 mImageBuffer.stride);
H A DRenderBase.cpp154 tgtBuffer.stride);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterFx.java90 int stride = w * 4;
91 int max = stride * h;
92 int increment = stride * 256; // 256 lines
/packages/apps/Camera2/jni/
H A Djpegutil.h223 // stride relating the values to be gathered from plane_ into buf
232 // The stride, in terms of indices in plane_data, required to enumerate the
234 int stride = dx * plane_.pixel_stride + dy * plane_.row_stride; local
236 // stride would be 0, resulting in an infinite-loop. To avoid this case,
237 // use a stride of at-least 1.
238 if (stride == 0) {
239 stride = 1;
245 idx += stride) {
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_utilities_camera.h212 inline void db_JacobianOfRotatedPointStride(double J[9],const double x[3],int stride) argument
220 J[0]= -x[stride<<1];
222 J[2]= x[stride];
224 J[4]= x[stride<<1];
227 J[7]= -x[stride];
/packages/services/Car/evs/sampleDriver/
H A DEvsGlDisplay.cpp192 &mBuffer.stride,
211 ALOGD("Allocated new buffer %p with stride %u",
212 mBuffer.memHandle.getNativeHandle(), mBuffer.stride);
H A DbufferCopy.cpp70 // It assumes an even width and height for the overall image, and a horizontal stride that is
152 unsigned dstStridePixels = tgtBuff.stride;
186 unsigned dstStrideBytes = tgtBuff.stride * 2;
201 unsigned dstStridePixels = tgtBuff.stride;
H A DGlWrapper.cpp370 buffer.stride,
H A DEvsV4lCamera.cpp381 // Gralloc defines stride in terms of pixels per line
478 buff.stride = mStride;

Completed in 1167 milliseconds