Home
last modified time | relevance | path

Searched refs:dst_mask (Results 1 – 3 of 3) sorted by relevance

/system/media/audio_utils/tests/
Dprimitives_tests.cpp345 uint32_t dst_mask; in TEST() local
356 dst_mask = 0x8d; in TEST()
358 memcpy_by_channel_mask(u16ary, dst_mask, u16ref, src_mask, sizeof(u16ref[0]), in TEST()
359 65536 / popcount(dst_mask)); in TEST()
364 dst_mask = 0; in TEST()
366 memcpy_by_channel_mask(u16ary, dst_mask, u16ref, src_mask, sizeof(u16ref[0]), in TEST()
371 src_mask = dst_mask = 0x8d; in TEST()
373 memcpy_by_channel_mask(u16ary, dst_mask, u16ref, src_mask, sizeof(u16ref[0]), 555); in TEST()
374 EXPECT_EQ(0, memcmp(u16ary, u16ref, 555 * sizeof(u16ref[0]) * popcount(dst_mask))); in TEST()
379 dst_mask = 0x8d; in TEST()
[all …]
/system/media/audio_utils/
Dprimitives.c362 void memcpy_by_channel_mask(void *dst, uint32_t dst_mask, in memcpy_by_channel_mask() argument
370 memcpy_by_index_array_initialization(idxary, 32, dst_mask, src_mask); in memcpy_by_channel_mask()
374 if (dst_mask == src_mask) { in memcpy_by_channel_mask()
375 memcpy(dst, src, sample_size * popcount(dst_mask) * count); in memcpy_by_channel_mask()
383 copy_frame_by_mask(udst, dst_mask, usrc, src_mask, count, 0); in memcpy_by_channel_mask()
389 copy_frame_by_mask(udst, dst_mask, usrc, src_mask, count, 0); in memcpy_by_channel_mask()
396 copy_frame_by_mask(udst, dst_mask, usrc, src_mask, count, zero); in memcpy_by_channel_mask()
402 copy_frame_by_mask(udst, dst_mask, usrc, src_mask, count, 0); in memcpy_by_channel_mask()
466 uint32_t dst_mask, uint32_t src_mask) in memcpy_by_index_array_initialization() argument
470 uint32_t bit, ormask = src_mask | dst_mask; in memcpy_by_index_array_initialization()
[all …]
/system/media/audio_utils/include/audio_utils/
Dprimitives.h470 void memcpy_by_channel_mask(void *dst, uint32_t dst_mask,
535 uint32_t dst_mask, uint32_t src_mask);
555 uint32_t dst_mask, uint32_t src_mask);
578 uint32_t dst_mask, uint32_t src_mask);