/external/tensorflow/tensorflow/lite/examples/label_image/ |
D | bitmap_helpers.cc | 35 int src_pos; in decode_bmp() local 40 src_pos = ((height - 1 - i) * row_size) + j * channels; in decode_bmp() 42 src_pos = i * row_size + j * channels; in decode_bmp() 49 output[dst_pos] = input[src_pos]; in decode_bmp() 53 output[dst_pos] = input[src_pos + 2]; in decode_bmp() 54 output[dst_pos + 1] = input[src_pos + 1]; in decode_bmp() 55 output[dst_pos + 2] = input[src_pos]; in decode_bmp() 59 output[dst_pos] = input[src_pos + 2]; in decode_bmp() 60 output[dst_pos + 1] = input[src_pos + 1]; in decode_bmp() 61 output[dst_pos + 2] = input[src_pos]; in decode_bmp() [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | decode_bmp_op.cc | 158 int src_pos; in Decode() local 163 src_pos = ((height - 1 - i) * row_size) + j * channels; in Decode() 165 src_pos = i * row_size + j * channels; in Decode() 172 output[dst_pos] = input[src_pos]; in Decode() 176 output[dst_pos] = input[src_pos + 2]; in Decode() 177 output[dst_pos + 1] = input[src_pos + 1]; in Decode() 178 output[dst_pos + 2] = input[src_pos]; in Decode() 182 output[dst_pos] = input[src_pos + 2]; in Decode() 183 output[dst_pos + 1] = input[src_pos + 1]; in Decode() 184 output[dst_pos + 2] = input[src_pos]; in Decode() [all …]
|
/external/adhd/cras/src/server/ |
D | linear_resampler.c | 119 float src_pos; in linear_resampler_resample() local 130 src_pos = (float)(lr->dst_offset + dst_idx) / lr->f; in linear_resampler_resample() 131 if (src_pos > lr->src_offset) in linear_resampler_resample() 132 src_pos -= lr->src_offset; in linear_resampler_resample() 134 src_pos = 0; in linear_resampler_resample() 135 src_idx = (unsigned int)src_pos; in linear_resampler_resample() 137 if (src_pos > *src_frames - 1 || dst_idx >= dst_frames) { in linear_resampler_resample() 138 if (src_pos > *src_frames - 1) in linear_resampler_resample() 155 out[ch] = in[ch] + (src_pos - src_idx) * in linear_resampler_resample()
|
/external/webrtc/webrtc/base/ |
D | win32.cc | 165 const char* src_pos = src; in inet_pton_v4() local 168 while (*src_pos != '\0') { in inet_pton_v4() 171 if (!isdigit(*src_pos)) { in inet_pton_v4() 175 long value = strtol(src_pos, &end_pos, 10); in inet_pton_v4() 176 if (value < 0 || value > 255 || src_pos == end_pos) { in inet_pton_v4() 184 src_pos = end_pos; in inet_pton_v4() 185 if (*src_pos == '.') { in inet_pton_v4() 187 ++src_pos; in inet_pton_v4() 188 } else if (*src_pos != '\0') { in inet_pton_v4()
|
/external/webrtc/webrtc/modules/desktop_capture/x11/ |
D | x_server_pixel_buffer.cc | 271 uint8_t* src_pos = image; in FastBlit() local 281 memcpy(dst_pos, src_pos, row_bytes); in FastBlit() 282 src_pos += src_stride; in FastBlit() 305 uint8_t* src_pos = image; in SlowBlit() local 313 uint32_t* src_pos_32 = reinterpret_cast<uint32_t*>(src_pos); in SlowBlit() 314 uint16_t* src_pos_16 = reinterpret_cast<uint16_t*>(src_pos); in SlowBlit() 323 pixel = src_pos[x]; in SlowBlit() 333 src_pos += src_stride; in SlowBlit()
|
/external/mesa3d/src/intel/blorp/ |
D | blorp_blit.c | 128 blorp_blit_apply_transform(nir_builder *b, nir_ssa_def *src_pos, in blorp_blit_apply_transform() argument 138 return nir_fadd(b, nir_fmul(b, src_pos, mul), offset); in blorp_blit_apply_transform() 1080 nir_ssa_def *src_pos, *dst_pos, *color; in brw_blorp_build_nir_shader() local 1171 src_pos = blorp_blit_apply_transform(&b, nir_i2f32(&b, dst_pos), &v); in brw_blorp_build_nir_shader() 1177 src_pos = nir_vec3(&b, nir_channel(&b, src_pos, 0), in brw_blorp_build_nir_shader() 1178 nir_channel(&b, src_pos, 1), in brw_blorp_build_nir_shader() 1186 src_pos = nir_channels(&b, src_pos, 0x3); in brw_blorp_build_nir_shader() 1196 src_pos = nir_f2i32(&b, nir_channels(&b, src_pos, 0x3)); in brw_blorp_build_nir_shader() 1207 src_pos = nir_fadd(&b, in brw_blorp_build_nir_shader() 1208 nir_i2f32(&b, src_pos), in brw_blorp_build_nir_shader() [all …]
|
/external/libxcam/cl_kernel/ |
D | kernel_fisheye.cl | 88 float2 src_pos[4]; 100 src_pos[i] = pos / input_y_size; 101 src_ptr[i] = read_imagef (input_y, sampler, src_pos[i]).x; 106 src_data.s01 = read_imagef (input_uv, sampler, src_pos[0]).xy; 107 src_data.s23 = read_imagef (input_uv, sampler, src_pos[2]).xy;
|
/external/webrtc/webrtc/modules/desktop_capture/ |
D | desktop_frame.cc | 44 const DesktopVector& src_pos, in CopyPixelsFrom() argument 47 DesktopRect::MakeOriginSize(src_pos, dest_rect.size()))); in CopyPixelsFrom() 49 CopyPixelsFrom(src_frame.GetFrameDataAtPos(src_pos), in CopyPixelsFrom()
|
D | desktop_frame.h | 67 const DesktopVector& src_pos,
|
/external/tensorflow/tensorflow/core/kernels/hexagon/ |
D | hexagon_graph_execution_test.cc | 152 const int src_pos = 3 * src_pixel_index; in LoadImage() local 155 CHECK(src_pos + 2 + header_size < fsize); in LoadImage() 159 (static_cast<float>(bmp_pixels[src_pos + 2]) - 128.0f) / 128.0f; in LoadImage() 161 (static_cast<float>(bmp_pixels[src_pos + 1]) - 128.0f) / 128.0f; in LoadImage() 163 (static_cast<float>(bmp_pixels[src_pos]) - 128.0f) / 128.0f; in LoadImage() 167 << ") (" << static_cast<int>(bmp_pixels[src_pos + 2]) << ", " in LoadImage() 168 << static_cast<int>(bmp_pixels[src_pos + 1]) << ", " in LoadImage() 169 << static_cast<int>(bmp_pixels[src_pos]) << ")"; in LoadImage()
|
/external/pdfium/core/fxge/dib/ |
D | cstretchengine.cpp | 61 double src_pos = dest_pixel * scale + scale / 2 + base; in Calc() local 64 static_cast<int>(floor(static_cast<float>(src_pos) - 1.0f / 2)); in Calc() 66 static_cast<int>(floor(static_cast<float>(src_pos) + 1.0f / 2)); in Calc() 74 src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * in Calc() 80 static_cast<int>(floor(static_cast<float>(src_pos) - 1.0f / 2)); in Calc() 82 static_cast<int>(floor(static_cast<float>(src_pos) + 1.0f / 2)); in Calc() 88 src_pos += src_min - pixel_weights.m_SrcStart; in Calc() 93 static_cast<float>(src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * in Calc() 158 int pixel_pos = static_cast<int>(floor(static_cast<float>(src_pos))); in Calc()
|
D | cfx_imagetransformer.cpp | 464 const uint8_t* src_pos = in CalcColor() local 466 auto sample_func = [src_pos](int offset) { return src_pos[offset]; }; in CalcColor()
|
D | cfx_dibitmap.cpp | 339 const uint8_t* src_pos = pSrcClone->GetScanline(row) + srcOffset; in LoadChannel() local 341 *dest_pos = *src_pos; in LoadChannel() 343 src_pos += srcBytes; in LoadChannel()
|
/external/squashfs-tools/squashfs-tools/ |
D | xz_wrapper.c | 490 size_t src_pos = 0; in xz_uncompress() local 495 src, &src_pos, size, dest, &dest_pos, outsize); in xz_uncompress() 497 if(res == LZMA_OK && size == (int) src_pos) in xz_uncompress()
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_dibsource.cpp | 858 const uint8_t* src_pos = src_scan; in TranslateScanline24bpp() local 862 *dest_scan++ = src_pos[2]; in TranslateScanline24bpp() 863 *dest_scan++ = src_pos[1]; in TranslateScanline24bpp() 864 *dest_scan++ = *src_pos; in TranslateScanline24bpp() 865 src_pos += 3; in TranslateScanline24bpp() 870 *dest_scan++ = src_pos[4]; in TranslateScanline24bpp() 871 *dest_scan++ = src_pos[2]; in TranslateScanline24bpp() 872 *dest_scan++ = *src_pos; in TranslateScanline24bpp() 873 src_pos += 6; in TranslateScanline24bpp()
|
D | cpdf_renderstatus.cpp | 2682 uint8_t* src_pos = src_buf + row * src_pitch; in LoadSMask() local 2684 *dest_pos++ = transfers[FXRGB2GRAY(src_pos[2], src_pos[1], *src_pos)]; in LoadSMask() 2685 src_pos += Bpp; in LoadSMask()
|
/external/mesa3d/src/gallium/drivers/nouveau/ |
D | nouveau_buffer.h | 61 struct nv04_resource *src, unsigned src_pos, unsigned size);
|
/external/pdfium/core/fxcodec/codec/ |
D | fx_codec_progress.cpp | 71 double src_pos = dest_pixel * scale + scale / 2 + base; in Calc() local 72 pixel_weights.m_SrcStart = (int)floor((float)src_pos - 1.0f / 2); in Calc() 73 pixel_weights.m_SrcEnd = (int)floor((float)src_pos + 1.0f / 2); in Calc() 84 (float)(src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * 65536); in Calc()
|
/external/oj-libjdwp/src/share/javavm/export/ |
D | jvm.h | 108 JVM_ArrayCopy(JNIEnv *env, jclass ignored, jobject src, jint src_pos,
|