Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 58) sorted by relevance

123

/system/media/audio_utils/
Dprimitives.c35 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_u8() argument
38 src += count; in memcpy_to_i16_from_u8()
40 *--dst = (int16_t)(*--src - 0x80) << 8; in memcpy_to_i16_from_u8()
44 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) in memcpy_to_u8_from_i16() argument
47 *dst++ = (*src++ >> 8) + 0x80; in memcpy_to_u8_from_i16()
51 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_i32() argument
54 *dst++ = *src++ >> 16; in memcpy_to_i16_from_i32()
58 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count) in memcpy_to_i16_from_float() argument
61 *dst++ = clamp16_from_float(*src++); in memcpy_to_i16_from_float()
65 void memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count) in memcpy_to_float_from_q4_27() argument
[all …]
Dformat.c25 const void *src, audio_format_t src_format, size_t count) in memcpy_by_audio_format() argument
35 memcpy(dst, src, count * audio_bytes_per_sample(dst_format)); in memcpy_by_audio_format()
45 memcpy_to_i16_from_float((int16_t*)dst, (float*)src, count); in memcpy_by_audio_format()
48 memcpy_to_i16_from_p24((int16_t*)dst, (uint8_t*)src, count); in memcpy_by_audio_format()
51 memcpy_to_i16_from_i32((int16_t*)dst, (int32_t*)src, count); in memcpy_by_audio_format()
54 memcpy_to_i16_from_q8_23((int16_t*)dst, (int32_t*)src, count); in memcpy_by_audio_format()
63 memcpy_to_float_from_i16((float*)dst, (int16_t*)src, count); in memcpy_by_audio_format()
66 memcpy_to_float_from_p24((float*)dst, (uint8_t*)src, count); in memcpy_by_audio_format()
69 memcpy_to_float_from_i32((float*)dst, (int32_t*)src, count); in memcpy_by_audio_format()
72 memcpy_to_float_from_q8_23((float*)dst, (int32_t*)src, count); in memcpy_by_audio_format()
[all …]
/system/extras/tests/bionic/libc/other/
Dtest_jpeg.c59 SourceMgr src = (SourceMgr) cinfo->src; in _source_init_source() local
61 src->jpeg_mgr.next_input_byte = (unsigned char*)src->base, in _source_init_source()
62 src->jpeg_mgr.bytes_in_buffer = src->end - src->base; in _source_init_source()
68 SourceMgr src = (SourceMgr) cinfo->src; in _source_fill_input_buffer() local
77 SourceMgr src = (SourceMgr) cinfo->src; in _source_skip_input_data() local
79 if (src->jpeg_mgr.next_input_byte + num_bytes > (unsigned char*)src->end ) { in _source_skip_input_data()
83 src->jpeg_mgr.next_input_byte += num_bytes; in _source_skip_input_data()
84 src->jpeg_mgr.bytes_in_buffer -= num_bytes; in _source_skip_input_data()
90 SourceMgr src = (SourceMgr) cinfo->src; in _source_resync_to_restart() local
92 src->jpeg_mgr.next_input_byte = (unsigned char*)src->base; in _source_resync_to_restart()
[all …]
/system/core/libutils/
DUnicode.cpp159 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index) in utf32_from_utf8_at() argument
169 int32_t ret = utf32_at_internal(src + index, &num_read); in utf32_from_utf8_at()
177 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len) in utf32_to_utf8_length() argument
179 if (src == NULL || src_len == 0) { in utf32_to_utf8_length()
184 const char32_t *end = src + src_len; in utf32_to_utf8_length()
185 while (src < end) { in utf32_to_utf8_length()
186 ret += utf32_codepoint_utf8_length(*src++); in utf32_to_utf8_length()
191 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst) in utf32_to_utf8() argument
193 if (src == NULL || src_len == 0 || dst == NULL) { in utf32_to_utf8()
197 const char32_t *cur_utf32 = src; in utf32_to_utf8()
[all …]
/system/core/include/utils/
DUnicode.h59 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len);
96 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst);
105 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index);
111 ssize_t utf16_to_utf8_length(const char16_t *src, size_t src_len);
118 void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst);
136 ssize_t utf8_length(const char *src);
141 size_t utf8_to_utf32_length(const char *src, size_t src_len);
148 void utf8_to_utf32(const char* src, size_t src_len, char32_t* dst);
153 ssize_t utf8_to_utf16_length(const uint8_t* src, size_t srcLen);
160 char16_t* utf8_to_utf16_no_null_terminator(const uint8_t* src, size_t srcLen, char16_t* dst);
[all …]
DFileMap.h116 FileMap(const FileMap& src);
117 const FileMap& operator=(const FileMap& src);
/system/core/libsysutils/
DAndroid.mk8 src/SocketListener.cpp \
9 src/FrameworkListener.cpp \
10 src/NetlinkListener.cpp \
11 src/NetlinkEvent.cpp \
12 src/FrameworkCommand.cpp \
13 src/SocketClient.cpp \
14 src/ServiceManager.cpp \
/system/media/audio_utils/include/audio_utils/
Dprimitives.h58 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count);
69 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count);
80 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count);
93 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count);
106 void memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count);
117 void memcpy_to_float_from_i16(float *dst, const int16_t *src, size_t count);
129 void memcpy_to_float_from_p24(float *dst, const uint8_t *src, size_t count);
141 void memcpy_to_i16_from_p24(int16_t *dst, const uint8_t *src, size_t count);
153 void memcpy_to_p24_from_i16(uint8_t *dst, const int16_t *src, size_t count);
166 void memcpy_to_p24_from_float(uint8_t *dst, const float *src, size_t count);
[all …]
/system/media/camera/src/
Dcamera_metadata.c177 const camera_metadata_t *src, in allocate_copy_camera_metadata_checked() argument
180 if (src == NULL) { in allocate_copy_camera_metadata_checked()
185 memcpy(buffer, src, src_size); in allocate_copy_camera_metadata_checked()
280 const camera_metadata_t *src) { in copy_camera_metadata() argument
281 size_t memory_needed = get_camera_metadata_compact_size(src); in copy_camera_metadata()
287 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); in copy_camera_metadata()
289 metadata->flags = src->flags; in copy_camera_metadata()
290 metadata->entry_count = src->entry_count; in copy_camera_metadata()
291 metadata->data_count = src->data_count; in copy_camera_metadata()
293 memcpy(get_entries(metadata), get_entries(src), in copy_camera_metadata()
[all …]
/system/core/libpixelflinger/tests/arch-arm64/col32cb16blend/
Dcol32cb16blend_test.c63 void scanline_col32cb16blend_arm64(uint16_t *dst, int32_t src, size_t count);
64 void scanline_col32cb16blend_c(uint16_t * dst, int32_t src, size_t count) in scanline_col32cb16blend_c() argument
66 int srcAlpha = (src>>24); in scanline_col32cb16blend_c()
74 int srcR = (src >> ( 3))&0x1F; in scanline_col32cb16blend_c()
75 int srcG = (src >> ( 8+2))&0x3F; in scanline_col32cb16blend_c()
76 int srcB = (src >> (16+3))&0x1F; in scanline_col32cb16blend_c()
/system/core/libdiskconfig/
Ddiskutils.c34 write_raw_image(const char *dst, const char *src, loff_t offset, int test) in write_raw_image() argument
44 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, (unsigned long long)offset); in write_raw_image()
45 if ((src_fd = open(src, O_RDONLY)) < 0) { in write_raw_image()
46 ALOGE("Could not open %s for reading (errno=%d).", src, errno); in write_raw_image()
67 ALOGE("Error (%d) while reading from '%s'", errno, src); in write_raw_image()
/system/core/libpixelflinger/tests/arch-arm64/t32cb16blend/
Dt32cb16blend_test.c65 void scanline_t32cb16blend_c(uint16_t * dst, uint32_t* src, size_t count) in scanline_t32cb16blend_c() argument
70 uint32_t s = *src++; in scanline_t32cb16blend_c()
94 uint32_t src[16]; in scanline_t32cb16blend_test() local
111 src[j] = test.src_color; in scanline_t32cb16blend_test()
114 scanline_t32cb16blend_c(dst_c,src,test.count); in scanline_t32cb16blend_test()
115 scanline_t32cb16blend_arm64(dst_asm,src,test.count); in scanline_t32cb16blend_test()
/system/media/camera/docs/
Dmetadata-generate158 local src="$thisdir/$1" # Relative to directory of this script
161 if ! [[ -d $src ]]; then
162 echo "FAIL: Source directory $src does not exist" >& 2
170 cp -R "$src" "$dst"
174 echo "ERROR: Failed to copy $(relpath "$src") to $(relpath "$dst")" >& 2
176 echo "OK: Copied $(relpath "$src") to $(relpath "$dst")"
190 gen_file camera_metadata_tag_info.mako ../src/camera_metadata_tag_info.c || exit 1
/system/core/libmincrypt/
Ddsa_sig.c35 static inline int trim_to_p256_bytes(unsigned char dst[P256_NBYTES], unsigned char *src, in trim_to_p256_bytes() argument
38 while (*src == '\0' && src_len > 0) { in trim_to_p256_bytes()
39 src++; in trim_to_p256_bytes()
47 memcpy(dst + dst_offset, src, src_len); in trim_to_p256_bytes()
/system/core/libpixelflinger/arch-mips/
Dt32cb16blend.S36 .macro pixel dreg src fb shift
45 srl $t7,\src,24
55 ext $t8,\src,3,5 # src[7..3]
63 ext $t6,\src,2+8,6 # src[15..10]
70 ext $t6,\src,(3+8+8),5
87 .macro pixel dreg src fb shift
98 srl $t7,\src,24
117 srl $t6,\src,3
137 srl $t6,\src,8+2
152 srl $t6,\src,(8+8+3)
/system/media/camera/include/system/
Dcamera_metadata.h188 const camera_metadata_t *src,
280 const camera_metadata_t *src);
306 int append_camera_metadata(camera_metadata_t *dst, const camera_metadata_t *src);
315 camera_metadata_t *clone_camera_metadata(const camera_metadata_t *src);
367 int get_camera_metadata_entry(camera_metadata_t *src,
375 int get_camera_metadata_ro_entry(const camera_metadata_t *src,
388 int find_camera_metadata_entry(camera_metadata_t *src,
396 int find_camera_metadata_ro_entry(const camera_metadata_t *src,
/system/core/libpixelflinger/
Dpicker.cpp53 uint32_t src = c->state.blend.src; in ggl_pick() local
59 if ((src == GGL_ONE_MINUS_DST_ALPHA) || in ggl_pick()
60 (src == GGL_DST_ALPHA)) { in ggl_pick()
61 src = GGL_ONE; in ggl_pick()
77 src = ggl_blendfactor_to_needs(src); in ggl_pick()
82 n |= GGL_BUILD_NEEDS( src, BLEND_SRC ); in ggl_pick()
88 n |= GGL_BUILD_NEEDS( src, BLEND_SRCA ); in ggl_pick()
Draster.cpp106 uint8_t* src = reinterpret_cast<uint8_t*>(cb->data) in ggl_copyPixels() local
116 src += height * bpr; in ggl_copyPixels()
120 src -= bpr; in ggl_copyPixels()
121 memcpy(dst, src, rowsize); in ggl_copyPixels()
127 memmove(dst, src, rowsize); in ggl_copyPixels()
129 src += bpr; in ggl_copyPixels()
134 memcpy(dst, src, rowsize); in ggl_copyPixels()
136 src += bpr; in ggl_copyPixels()
Dscanline.cpp131 extern "C" void scanline_t32cb16_arm(uint16_t *dst, uint32_t *src, size_t ct);
464 const pixel_t* src, const pixel_t* dst);
497 blend_factor(c, &sf, c->state.blend.src, fragment, fb); in blending()
542 uint32_t factor, const pixel_t* src, const pixel_t* dst) in blend_factor() argument
564 r->c[1] = blendfactor(src->c[1], src->s[1]); in blend_factor()
565 r->c[2] = blendfactor(src->c[2], src->s[2]); in blend_factor()
566 r->c[3] = blendfactor(src->c[3], src->s[3]); in blend_factor()
567 r->c[0] = blendfactor(src->c[0], src->s[0]); in blend_factor()
576 r->c[1] = FIXED_ONE - blendfactor(src->c[1], src->s[1]); in blend_factor()
577 r->c[2] = FIXED_ONE - blendfactor(src->c[2], src->s[2]); in blend_factor()
[all …]
/system/core/libcutils/
Dmemory.c67 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() argument
70 const char *s = src; in strlcpy()
89 return(s - src - 1); /* count does not include NUL */ in strlcpy()
/system/keymaster/
DMakefile44 CCSRCS=$(GTEST)/src/gtest-all.cc
104 $(GTEST)/src/gtest-all.o
112 $(GTEST)/src/gtest-all.o
120 $(GTEST)/src/gtest-all.o
136 $(GTEST)/src/gtest-all.o
138 $(GTEST)/src/gtest-all.o: CXXFLAGS:=$(subst -Wmissing-declarations,,$(CXXFLAGS))
/system/core/liblog/
Dlogprint.c391 static inline uint32_t get4LE(const uint8_t* src) in get4LE() argument
393 return src[0] | (src[1] << 8) | (src[2] << 16) | (src[3] << 24); in get4LE()
399 static inline uint64_t get8LE(const uint8_t* src) in get8LE() argument
403 low = src[0] | (src[1] << 8) | (src[2] << 16) | (src[3] << 24); in get8LE()
404 high = src[4] | (src[5] << 8) | (src[6] << 16) | (src[7] << 24); in get8LE()
/system/core/run-as/
Dpackage.c55 string_copy(char* dst, size_t dstlen, const char* src, size_t srclen) in string_copy() argument
57 const char* srcend = src + srclen; in string_copy()
61 return src; in string_copy()
65 while (dst < dstend && src < srcend && *src != '\0') in string_copy()
66 *dst++ = *src++; in string_copy()
69 return src; in string_copy()
/system/core/toolbox/upstream-netbsd/bin/cp/
Dcp.c111 char *target, **src; in main() local
293 for (src = argv; *src; src++) { in main()
294 size_t len = strlen(*src); in main()
295 while (len-- > 1 && (*src)[len] == '/') in main()
296 (*src)[len] = '\0'; in main()
/system/core/libpixelflinger/codeflinger/
DMIPSAssembler.cpp420 int src; // src is modified by dataProcAdrModes() - passed as int& in dataProcessing() local
434 if (dataProcAdrModes(Op2, src) == SRC_REG) { in dataProcessing()
435 mMips->AND(Rd, Rn, src); in dataProcessing()
437 mMips->ANDI(Rd, Rn, src); in dataProcessing()
443 if (dataProcAdrModes(Op2, src, true) == SRC_REG) { in dataProcessing()
444 mMips->ADDU(Rd, Rn, src); in dataProcessing()
446 mMips->ADDIU(Rd, Rn, src); in dataProcessing()
452 if (dataProcAdrModes(Op2, src, true) == SRC_REG) { in dataProcessing()
453 mMips->SUBU(Rd, Rn, src); in dataProcessing()
455 mMips->SUBIU(Rd, Rn, src); in dataProcessing()
[all …]

123