/external/tensorflow/tensorflow/contrib/lite/examples/label_image/ |
bitmap_helpers.cc | 34 int src_pos; local 39 src_pos = ((height - 1 - i) * row_size) + j * channels; 41 src_pos = i * row_size + j * channels; 48 output[dst_pos] = input[src_pos]; 52 output[dst_pos] = input[src_pos + 2]; 53 output[dst_pos + 1] = input[src_pos + 1]; 54 output[dst_pos + 2] = input[src_pos]; 58 output[dst_pos] = input[src_pos + 2]; 59 output[dst_pos + 1] = input[src_pos + 1]; 60 output[dst_pos + 2] = input[src_pos]; [all...] |
/external/adhd/cras/src/server/ |
linear_resampler.c | 119 float src_pos; local 130 src_pos = (float)(lr->dst_offset + dst_idx) / lr->f; 131 if (src_pos > lr->src_offset) 132 src_pos -= lr->src_offset; 134 src_pos = 0; 135 src_idx = (unsigned int)src_pos; 137 if (src_pos > *src_frames - 1 || dst_idx >= dst_frames) { 138 if (src_pos > *src_frames - 1) 148 /* Don't do linear interpolcation if src_pos falls on the 155 out[ch] = in[ch] + (src_pos - src_idx) [all...] |
/external/tensorflow/tensorflow/core/kernels/ |
decode_bmp_op.cc | 157 int src_pos; local 162 src_pos = ((height - 1 - i) * row_size) + j * channels; 164 src_pos = i * row_size + j * channels; 171 output[dst_pos] = input[src_pos]; 175 output[dst_pos] = input[src_pos + 2]; 176 output[dst_pos + 1] = input[src_pos + 1]; 177 output[dst_pos + 2] = input[src_pos]; 181 output[dst_pos] = input[src_pos + 2]; 182 output[dst_pos + 1] = input[src_pos + 1]; 183 output[dst_pos + 2] = input[src_pos]; [all...] |
/external/squashfs-tools/squashfs-tools/ |
xz_wrapper.c | 490 size_t src_pos = 0; local 495 src, &src_pos, size, dest, &dest_pos, outsize); 497 if(res == LZMA_OK && size == (int) src_pos)
|
/external/webrtc/webrtc/base/ |
win32.cc | 165 const char* src_pos = src; local 168 while (*src_pos != '\0') { 171 if (!isdigit(*src_pos)) { 175 long value = strtol(src_pos, &end_pos, 10); 176 if (value < 0 || value > 255 || src_pos == end_pos) { 184 src_pos = end_pos; 185 if (*src_pos == '.') { 187 ++src_pos; 188 } else if (*src_pos != '\0') {
|
/external/webrtc/webrtc/modules/desktop_capture/x11/ |
x_server_pixel_buffer.cc | 271 uint8_t* src_pos = image; local 281 memcpy(dst_pos, src_pos, row_bytes); 282 src_pos += src_stride; 305 uint8_t* src_pos = image; local 313 uint32_t* src_pos_32 = reinterpret_cast<uint32_t*>(src_pos); 314 uint16_t* src_pos_16 = reinterpret_cast<uint16_t*>(src_pos); 323 pixel = src_pos[x]; 333 src_pos += src_stride;
|
/external/pdfium/core/fxge/dib/ |
cstretchengine.cpp | 61 double src_pos = dest_pixel * scale + scale / 2 + base; local 64 static_cast<int>(floor(static_cast<float>(src_pos) - 1.0f / 2)); 66 static_cast<int>(floor(static_cast<float>(src_pos) + 1.0f / 2)); 74 src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * 80 static_cast<int>(floor(static_cast<float>(src_pos) - 1.0f / 2)); 82 static_cast<int>(floor(static_cast<float>(src_pos) + 1.0f / 2)); 88 src_pos += src_min - pixel_weights.m_SrcStart; 93 static_cast<float>(src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * 158 int pixel_pos = static_cast<int>(floor(static_cast<float>(src_pos)));
|
cfx_dibitmap.cpp | 339 const uint8_t* src_pos = pSrcClone->GetScanline(row) + srcOffset; local 341 *dest_pos = *src_pos; 343 src_pos += srcBytes; [all...] |
/external/tensorflow/tensorflow/core/kernels/hexagon/ |
hexagon_graph_execution_test.cc | 150 const int src_pos = 3 * src_pixel_index; local 153 CHECK(src_pos + 2 + header_size < fsize); 157 (static_cast<float>(bmp_pixels[src_pos + 2]) - 128.0f) / 128.0f; 159 (static_cast<float>(bmp_pixels[src_pos + 1]) - 128.0f) / 128.0f; 161 (static_cast<float>(bmp_pixels[src_pos]) - 128.0f) / 128.0f; 165 << ") (" << static_cast<int>(bmp_pixels[src_pos + 2]) << ", " 166 << static_cast<int>(bmp_pixels[src_pos + 1]) << ", " 167 << static_cast<int>(bmp_pixels[src_pos]) << ")";
|
/art/compiler/optimizing/ |
code_generator.cc | 1564 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local [all...] |
intrinsics_mips.cc | 2950 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 3058 Location src_pos = locations->InAt(1); local [all...] |
intrinsics_mips64.cc | 2052 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 2160 Location src_pos = locations->InAt(1); local [all...] |
intrinsics_arm64.cc | 2169 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 2297 Location src_pos = locations->InAt(1); local 2395 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 2471 Location src_pos = locations->InAt(1); local [all...] |
intrinsics_arm_vixl.cc | 2121 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 2222 Location src_pos = locations->InAt(1); local 2530 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); local 2572 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); local [all...] |
intrinsics_x86.cc | 104 Location src_pos = locations->InAt(1); variable 128 // value = src_array[i + src_pos] 129 if (src_pos.IsConstant()) { 130 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); 134 __ leal(temp2, Address(src_pos.AsRegister<Register>(), temp1, ScaleFactor::TIMES_1, 0)); 1135 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 2907 Location src_pos = locations->InAt(1); local 3169 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); local [all...] |
intrinsics_x86_64.cc | 927 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 1031 Location src_pos = locations->InAt(1); local 1174 Location src_pos = locations->InAt(1); local 1414 GetAssembler(), type, src, src_pos, dest, dest_pos, length, temp1, temp2, temp3); local [all...] |
/external/pdfium/core/fpdfapi/render/ |
cpdf_dibsource.cpp | 858 const uint8_t* src_pos = src_scan; local 862 *dest_scan++ = src_pos[2]; 863 *dest_scan++ = src_pos[1]; 864 *dest_scan++ = *src_pos; 865 src_pos += 3; 870 *dest_scan++ = src_pos[4]; 871 *dest_scan++ = src_pos[2]; 872 *dest_scan++ = *src_pos; 873 src_pos += 6; [all...] |
cpdf_renderstatus.cpp | 2682 uint8_t* src_pos = src_buf + row * src_pitch; local [all...] |
/art/runtime/interpreter/ |
unstarted_runtime.cc | 767 mirror::Array* src_array, int32_t src_pos, 782 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= length); 785 dst->Set(dst_pos + i, src->Get(src_pos + i)); 789 dst->Set(dst_pos + length - i, src->Get(src_pos + length - i)); 797 jint src_pos = shadow_frame->GetVReg(arg_offset + 1); local 822 if (UNLIKELY(src_pos < 0) || UNLIKELY(dst_pos < 0) || UNLIKELY(length < 0) | [all...] |
/external/mesa3d/src/intel/blorp/ |
blorp_blit.c | 127 blorp_blit_apply_transform(nir_builder *b, nir_ssa_def *src_pos, 137 return nir_ffma(b, src_pos, mul, offset); 1063 nir_ssa_def *src_pos, *dst_pos, *color; local [all...] |
/external/pdfium/core/fxcodec/codec/ |
fx_codec_progress.cpp | 71 double src_pos = dest_pixel * scale + scale / 2 + base; local 72 pixel_weights.m_SrcStart = (int)floor((float)src_pos - 1.0f / 2); 73 pixel_weights.m_SrcEnd = (int)floor((float)src_pos + 1.0f / 2); 84 (float)(src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * 65536); [all...] |