/packages/apps/Gallery2/jni/filters/ |
D | kmeans.h | 26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { in sum() argument 32 for (x = 0; x < len; x+= stride) { in sum() 88 void initialPickHeuristicRandom(int k, T values[], int len, int dimension, int stride, T dst[], in initialPickHeuristicRandom() argument 91 num_vals = len / stride; in initialPickHeuristicRandom() 111 r *= stride; in initialPickHeuristicRandom() 115 cntr += stride; in initialPickHeuristicRandom() 123 inline int findClosest(T values[], T oldCenters[], int dimension, int stride, int pop_size) { in findClosest() argument 127 for (y = stride; y < pop_size; y+=stride) { in findClosest() 141 int calculateNewCentroids(int k, T values[], int len, int dimension, int stride, T oldCenters[], in calculateNewCentroids() argument 144 pop_size = k * stride; in calculateNewCentroids() [all …]
|
D | kmeans.cc | 51 int stride = 4; in JNIFUNCF() local 55 unsigned char finalCentroids[k * stride]; in JNIFUNCF() 59 stride, iterations, s); in JNIFUNCF() 64 unsigned char nextCentroids[k * stride]; in JNIFUNCF() 68 dimension, stride, iterations, finalCentroids); in JNIFUNCF() 73 applyCentroids<unsigned char, int>(k, nextCentroids, dst, len, dimension, stride); in JNIFUNCF()
|
/packages/services/Car/cpp/evs/apps/demo_app_evs_support_lib/ |
D | evs_app_support_lib.cpp | 46 int stride = inputFrame.stride; in render() local 51 outDataPtr[(i + j * stride) * 4 + 0] = inDataPtr[(i + j * stride) * 4 + 1]; in render() 52 outDataPtr[(i + j * stride) * 4 + 1] = inDataPtr[(i + j * stride) * 4 + 2]; in render() 53 outDataPtr[(i + j * stride) * 4 + 2] = inDataPtr[(i + j * stride) * 4 + 0]; in render() 54 outDataPtr[(i + j * stride) * 4 + 3] = inDataPtr[(i + j * stride) * 4 + 3]; in render()
|
/packages/services/Car/cpp/evs/support_library/ |
D | StreamHandler.cpp | 232 input.stride == output.stride && input.pixelSize == output.pixelSize; in isSameFormat() 241 &buffer.stride, 0, "EvsDisplay"); in allocate() 271 output.stride = input.stride; in processFrame() 290 GRALLOC_USAGE_HW_TEXTURE, input.stride); in processFrame() 341 .stride = input.stride, in processFrame() 346 .stride = output.stride, in processFrame() 369 mAnalyzeBuffer.stride = input.stride; in copyAndAnalyzeFrame() 388 GRALLOC_USAGE_HW_TEXTURE, input.stride); in copyAndAnalyzeFrame() 428 .stride = mAnalyzeBuffer.stride, in copyAndAnalyzeFrame() 432 memcpy(analyzeDataPtr, inputDataPtr, mAnalyzeBuffer.stride * mAnalyzeBuffer.height * 4); in copyAndAnalyzeFrame()
|
D | TexWrapper.cpp | 131 int stride = png_get_rowbytes(pngControl, pngInfo); in createTextureFromPng() local 132 stride += 3 - ((stride - 1) % 4); // glTexImage2d requires rows to be 4-byte aligned in createTextureFromPng() 135 png_byte* buffer = (png_byte*)malloc(stride * height); in createTextureFromPng() 153 rowPointers[r] = buffer + r * stride; in createTextureFromPng()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/ |
D | conv2d_quant8_signed.mod.py | 472 stride = Int32Scalar("stride", 1) variable 475 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp… 493 stride = Int32Scalar("stride", 1) variable 496 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp… 520 stride = Int32Scalar("stride", 1) variable 523 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp… 548 stride = Int32Scalar("stride", 1) variable 551 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp… 585 stride = Int32Scalar("stride", 1) variable 590 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, [all …]
|
D | depthwise_conv2d_quant8_signed.mod.py | 224 stride = Int32Scalar("stride", 1) variable 231 stride, stride, 256 stride = Int32Scalar("stride", 1) variable 263 stride, stride, 284 stride = Int32Scalar("stride", 1) variable 291 stride, stride, 317 stride = Int32Scalar("stride", 1) variable 324 stride, stride, 345 stride = Int32Scalar("stride", 1) variable 352 stride, stride,
|
/packages/modules/NeuralNetworks/common/include/ |
D | OperationsExecutionUtils.h | 83 inline int32_t computeOutSize(int32_t imageSize, int32_t filterSize, int32_t stride, in computeOutSize() argument 85 return (imageSize - filterSize + stride + paddingHead + paddingTail) / stride; in computeOutSize() 88 inline int32_t computeOutSize(int32_t imageSize, int32_t filterSize, int32_t stride, in computeOutSize() argument 91 return (imageSize - effectiveFilterSize + stride + paddingHead + paddingTail) / stride; in computeOutSize() 94 inline int32_t computeOutSizeTransposeConv(int32_t imageSize, int32_t filterSize, int32_t stride, in computeOutSizeTransposeConv() argument 96 return imageSize * stride + filterSize - stride - paddingHead - paddingTail; in computeOutSizeTransposeConv() 136 void calculateExplicitPaddingImpl(int32_t in_size, int32_t stride, int32_t dilation_factor, 141 inline void calculateExplicitPadding(int32_t in_size, int32_t stride, int32_t dilation_factor, in calculateExplicitPadding() argument 144 calculateExplicitPaddingImpl(in_size, stride, dilation_factor, filter_size, padding_implicit, in calculateExplicitPadding() 148 inline void calculateExplicitPadding(int32_t in_size, int32_t stride, int32_t filter_size, in calculateExplicitPadding() argument [all …]
|
/packages/modules/Bluetooth/system/stack/mmc/test/mock/ |
D | mock_embdrv_lc3.h | 44 enum lc3_pcm_format fmt, void* pcm, int stride)> 47 int stride) { return return_value; }}; 49 enum lc3_pcm_format fmt, void* pcm, int stride) { in operator() 50 return body(decoder, in, nbytes, fmt, pcm, stride); in operator() 83 const void* pcm, int stride, int nbytes, void* out)> 85 const void* pcm, int stride, int nbytes, 88 const void* pcm, int stride, int nbytes, void* out) { in operator() 89 return body(encoder, fmt, pcm, stride, nbytes, out); in operator()
|
/packages/modules/ExtServices/native/ |
D | ImageHashManager.cpp | 29 int32_t stride, std::array<uint8_t, 8>* outImageHash) { in generatePHash() argument 44 const uint8_t* src = buffer + (stride * j) * 4; in generatePHash() 72 int32_t stride = bufferDesc.stride > 0 ? bufferDesc.stride : bufferDesc.width; in generateHash() local 73 return generatePHash(buf, bufferDesc.width, bufferDesc.height, stride, outImageHash); in generateHash()
|
/packages/services/Car/cpp/evs/apps/default/src/ |
D | RenderPixelCopy.cpp | 93 pTgtDesc->usage, pTgtDesc->stride); in drawFrame() 127 pSrcDesc->usage, pSrcDesc->stride); in drawFrame() 137 copyNV21toRGB32(width, height, srcPixels, tgtPixels, pTgtDesc->stride); in drawFrame() 139 copyYV12toRGB32(width, height, srcPixels, tgtPixels, pTgtDesc->stride); in drawFrame() 141 copyYUYVtoRGB32(width, height, srcPixels, pSrcDesc->stride, tgtPixels, in drawFrame() 142 pTgtDesc->stride); in drawFrame() 144 copyMatchedInterleavedFormats(width, height, srcPixels, pSrcDesc->stride, in drawFrame() 145 tgtPixels, pTgtDesc->stride, in drawFrame()
|
D | TexWrapper.cpp | 127 int stride = png_get_rowbytes(pngControl, pngInfo); in createTextureFromPng() local 128 stride += 3 - ((stride - 1) % 4); // glTexImage2d requires rows to be 4-byte aligned in createTextureFromPng() 131 png_byte* buffer = (png_byte*)malloc(stride * height); in createTextureFromPng() 149 rowPointers[r] = buffer + r * stride; in createTextureFromPng()
|
/packages/services/Car/cpp/computepipe/tests/fuzz/ |
D | PixelMemHandleFuzzer.cpp | 38 uint32_t stride = frame.stride(); in convertToInputFrame() local 41 return InputFrame(height, width, pixelFormat, stride, data); in convertToInputFrame() 67 uint64_t stride = frame.stride(); in isValid() local 69 if (stride > width * height) { in isValid()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/ |
D | OperationSignatureUtils.h | 191 const RandomVariable& stride, const RandomVariable& dilation, 195 *output = (input + (stride - 1)) / stride; 198 *output = (input - filter * dilation + (dilation + stride - 1)) / stride; 206 const RandomVariable& stride, const RandomVariable& dilation, 210 *output = (input - effectiveFilter + (stride + paddingHead + paddingTail)) / stride; 217 const RandomVariable& stride, int32_t paddingScheme, 221 *output = input * stride; 224 *output = (input - 1) * stride + filter; 232 const RandomVariable& stride, 235 *output = stride * input + filter - (stride + paddingHead + paddingTail);
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/android/ |
D | ImsMediaPauseImageSource.cpp | 66 bool ImsMediaPauseImageSource::Initialize(int width, int height, int stride) in Initialize() argument 69 stride); in Initialize() 123 mYuvImageBuffer = ConvertRgbaToYuv(pixels, width, height, stride); in Initialize() 206 int8_t* pixels, int width, int height, int stride) in ConvertRgbaToYuv() argument 210 mBufferSize = stride * height * 1.5; in ConvertRgbaToYuv() 213 int32_t nUVIndex = stride * height; in ConvertRgbaToYuv() 214 int32_t r, g, b, padLen = stride - width; in ConvertRgbaToYuv()
|
/packages/services/Car/cpp/computepipe/runner/stream_manager/ |
D | PixelStreamManager.cpp | 78 mDesc.stride = frameInfo.stride; in setFrameData() 112 if (mDesc.stride * bytesPerPixel == frameInfo.stride) { in setFrameData() 113 memcpy(mappedBuffer, inputFrame.getFramePtr(), mDesc.stride * mDesc.height * bytesPerPixel); in setFrameData() 116 memcpy((uint8_t*)mappedBuffer + mDesc.stride * y * bytesPerPixel, in setFrameData() 117 inputFrame.getFramePtr() + y * frameInfo.stride, in setFrameData() 118 std::min(frameInfo.stride, mDesc.stride * bytesPerPixel)); in setFrameData()
|
/packages/services/Car/cpp/computepipe/runner/include/ |
D | InputFrame.h | 35 uint32_t stride; // In bytes member 47 explicit InputFrame(uint32_t height, uint32_t width, PixelFormat format, uint32_t stride, in InputFrame() 52 mInfo.stride = stride; in InputFrame()
|
/packages/services/Car/cpp/evs/manager/1.1/emul/ |
D | VideoCapture.cpp | 143 const int stride = png_get_rowbytes(pngPtr, infoPtr); in fillBufferFromPng() local 144 info.stride = stride; in fillBufferFromPng() 147 << ", stride = " << stride; in fillBufferFromPng() 149 char* buffer = new char[info.stride * height]; in fillBufferFromPng() 152 rowPtrs[r] = reinterpret_cast<unsigned char*>(buffer) + r * stride; in fillBufferFromPng() 332 mPixelBufferSize = header.stride * header.height; in collectFrames() 339 const size_t length = header.stride * header.height; in collectFrames()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/ |
D | conv_float_2.mod.py | 23 stride = Int32Scalar("stride", 1) variable 26 model = model.Operation("CONV_2D", i1, f1, b1, pad_same, stride, stride, act_relu).To(output)
|
D | conv_quant8_large.mod.py | 23 stride = Int32Scalar("stride", 1) variable 26 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp…
|
D | conv_float_channels.mod.py | 23 stride = Int32Scalar("stride", 1) variable 28 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp…
|
D | conv_float.mod.py | 23 stride = Int32Scalar("stride", 1) variable 28 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp…
|
D | conv_quant8_channels.mod.py | 23 stride = Int32Scalar("stride", 1) variable 26 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp…
|
D | conv_quant8.mod.py | 25 stride = Int32Scalar("stride", 1) variable 30 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, 31 stride, act).To(output)
|
D | conv_float_large.mod.py | 23 stride = Int32Scalar("stride", 1) variable 28 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp…
|