Home
last modified time | relevance | path

Searched refs:src_pos (Results 1 – 18 of 18) sorted by relevance

/external/tensorflow/tensorflow/lite/examples/label_image/
Dbitmap_helpers.cc35 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/
Ddecode_bmp_op.cc158 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/
Dlinear_resampler.c116 float src_pos; in linear_resampler_resample() local
127 src_pos = (float)(lr->dst_offset + dst_idx) / lr->f; in linear_resampler_resample()
128 if (src_pos > lr->src_offset) in linear_resampler_resample()
129 src_pos -= lr->src_offset; in linear_resampler_resample()
131 src_pos = 0; in linear_resampler_resample()
132 src_idx = (unsigned int)src_pos; in linear_resampler_resample()
134 if (src_pos > *src_frames - 1 || dst_idx >= dst_frames) { in linear_resampler_resample()
135 if (src_pos > *src_frames - 1) in linear_resampler_resample()
153 (src_pos - src_idx) * in linear_resampler_resample()
/external/webrtc/webrtc/base/
Dwin32.cc165 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/
Dx_server_pixel_buffer.cc271 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/webrtc/webrtc/modules/desktop_capture/
Ddesktop_frame.cc44 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()
Ddesktop_frame.h67 const DesktopVector& src_pos,
/external/mesa3d/src/intel/blorp/
Dblorp_blit.c98 blorp_blit_apply_transform(nir_builder *b, nir_ssa_def *src_pos, in blorp_blit_apply_transform() argument
108 return nir_fadd(b, nir_fmul(b, src_pos, mul), offset); in blorp_blit_apply_transform()
1172 nir_ssa_def *src_pos, *dst_pos, *color; in brw_blorp_build_nir_shader() local
1263 src_pos = blorp_blit_apply_transform(&b, nir_i2f32(&b, dst_pos), &v); in brw_blorp_build_nir_shader()
1269 src_pos = nir_vec3(&b, nir_channel(&b, src_pos, 0), in brw_blorp_build_nir_shader()
1270 nir_channel(&b, src_pos, 1), in brw_blorp_build_nir_shader()
1278 src_pos = nir_channels(&b, src_pos, 0x3); in brw_blorp_build_nir_shader()
1289 if (src_pos->num_components == 2) { in brw_blorp_build_nir_shader()
1290 src_pos = nir_f2i32(&b, src_pos); in brw_blorp_build_nir_shader()
1292 assert(src_pos->num_components == 3); in brw_blorp_build_nir_shader()
[all …]
/external/tensorflow/tensorflow/core/kernels/hexagon/
Dhexagon_graph_execution_test.cc152 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/
Dcstretchengine.cpp63 double src_pos = dest_pixel * scale + scale / 2 + base; in Calc() local
66 static_cast<int>(floor(static_cast<float>(src_pos) - 1.0f / 2)); in Calc()
68 static_cast<int>(floor(static_cast<float>(src_pos) + 1.0f / 2)); in Calc()
76 src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * in Calc()
82 static_cast<int>(floor(static_cast<float>(src_pos) - 1.0f / 2)); in Calc()
84 static_cast<int>(floor(static_cast<float>(src_pos) + 1.0f / 2)); in Calc()
90 src_pos += src_min - pixel_weights.m_SrcStart; in Calc()
95 static_cast<float>(src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * in Calc()
160 int pixel_pos = static_cast<int>(floor(static_cast<float>(src_pos))); in Calc()
Dcfx_imagetransformer.cpp588 const uint8_t* src_pos = in CalcColor() local
590 auto sample_func = [src_pos](int offset) { return src_pos[offset]; }; in CalcColor()
Dcfx_dibitmap.cpp362 const uint8_t* src_pos = pSrcClone->GetScanline(row) + srcOffset; in LoadChannelFromAlpha() local
364 *dest_pos = *src_pos; in LoadChannelFromAlpha()
366 src_pos += srcBytes; in LoadChannelFromAlpha()
/external/squashfs-tools/squashfs-tools/
Dxz_wrapper.c490 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/page/
Dcpdf_dib.cpp948 const uint8_t* src_pos = src_scan; in TranslateScanline24bppDefaultDecode() local
952 *dest_scan++ = src_pos[2]; in TranslateScanline24bppDefaultDecode()
953 *dest_scan++ = src_pos[1]; in TranslateScanline24bppDefaultDecode()
954 *dest_scan++ = *src_pos; in TranslateScanline24bppDefaultDecode()
955 src_pos += 3; in TranslateScanline24bppDefaultDecode()
960 *dest_scan++ = src_pos[4]; in TranslateScanline24bppDefaultDecode()
961 *dest_scan++ = src_pos[2]; in TranslateScanline24bppDefaultDecode()
962 *dest_scan++ = *src_pos; in TranslateScanline24bppDefaultDecode()
963 src_pos += 6; in TranslateScanline24bppDefaultDecode()
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_buffer.h64 struct nv04_resource *src, unsigned src_pos, unsigned size);
/external/pdfium/core/fpdfapi/render/
Dcpdf_renderstatus.cpp1665 uint8_t* src_pos = src_buf + row * src_pitch; in LoadSMask() local
1667 *dest_pos++ = transfers[FXRGB2GRAY(src_pos[2], src_pos[1], *src_pos)]; in LoadSMask()
1668 src_pos += Bpp; in LoadSMask()
/external/pdfium/core/fxcodec/
Dprogressivedecoder.cpp68 double src_pos = dest_pixel * scale + scale / 2 + base; in Calc() local
69 pixel_weights.m_SrcStart = (int)floor((float)src_pos - 1.0f / 2); in Calc()
70 pixel_weights.m_SrcEnd = (int)floor((float)src_pos + 1.0f / 2); in Calc()
77 (float)(src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * 65536); in Calc()
/external/oj-libjdwp/src/share/javavm/export/
Djvm.h108 JVM_ArrayCopy(JNIEnv *env, jclass ignored, jobject src, jint src_pos,