Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 104) sorted by relevance

12345

/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dhp_wsp.c49 void Init_Hp_wsp(Word16 mem[]) in Init_Hp_wsp() argument
51 Set_zero(mem, 9); in Init_Hp_wsp()
56 void scale_mem_Hp_wsp(Word16 mem[], Word16 exp) in scale_mem_Hp_wsp() argument
63 L_tmp = ((mem[i] << 16) + (mem[i + 1]<<1)); in scale_mem_Hp_wsp()
65 mem[i] = L_tmp >> 16; in scale_mem_Hp_wsp()
66 mem[i + 1] = (L_tmp & 0xffff)>>1; in scale_mem_Hp_wsp()
71 L_tmp = L_deposit_h(mem[i]); /* x[i] */ in scale_mem_Hp_wsp()
73 mem[i] = vo_round(L_tmp); in scale_mem_Hp_wsp()
84 Word16 mem[] /* i/o : filter memory [9] */ in Hp_wsp() argument
91 y3_hi = mem[0]; in Hp_wsp()
[all …]
Dhp400.c51 void Init_HP400_12k8(Word16 mem[]) in Init_HP400_12k8() argument
53 Set_zero(mem, 6); in Init_HP400_12k8()
60 Word16 mem[] /* filter memory [6] */ in HP400_12k8() argument
67 y2_hi = *mem++; in HP400_12k8()
68 y2_lo = *mem++; in HP400_12k8()
69 y1_hi = *mem++; in HP400_12k8()
70 y1_lo = *mem++; in HP400_12k8()
71 x0 = *mem++; in HP400_12k8()
72 x1 = *mem; in HP400_12k8()
96 *mem-- = x1; in HP400_12k8()
[all …]
Dhp50.c52 void Init_HP50_12k8(Word16 mem[]) in Init_HP50_12k8() argument
54 Set_zero(mem, 6); in Init_HP50_12k8()
61 Word16 mem[] /* filter memory [6] */ in HP50_12k8() argument
69 y2_hi = *mem++; in HP50_12k8()
70 y2_lo = *mem++; in HP50_12k8()
71 y1_hi = *mem++; in HP50_12k8()
72 y1_lo = *mem++; in HP50_12k8()
73 x0 = *mem++; in HP50_12k8()
74 x1 = *mem; in HP50_12k8()
96 *mem-- = x1; in HP50_12k8()
[all …]
Dgpclip.c38 Word16 mem[] /* (o) : memory of gain of pitch clipping algorithm */ in Init_gp_clip() argument
41 mem[0] = DIST_ISF_MAX; in Init_gp_clip()
42 mem[1] = GAIN_PIT_MIN; in Init_gp_clip()
47 … Word16 mem[] /* (i/o) : memory of gain of pitch clipping algorithm */ in Gp_clip() argument
51 if ((mem[0] < DIST_ISF_THRES) && (mem[1] > GAIN_PIT_THRES)) in Gp_clip()
60 … Word16 mem[] /* (i/o) : memory of gain of pitch clipping algorithm */ in Gp_clip_test_isf() argument
77 dist = extract_h(L_mac(vo_L_mult(26214, mem[0]), 6554, dist_min)); in Gp_clip_test_isf()
83 mem[0] = dist; in Gp_clip_test_isf()
91 … Word16 mem[] /* (i/o) : memory of gain of pitch clipping algorithm */ in Gp_clip_test_gain_pit() argument
96 L_tmp = (29491 * mem[1])<<1; in Gp_clip_test_gain_pit()
[all …]
Ddeemph.c34 Word16 * mem /* (i/o) : memory (y[-1]) */ in Deemph() argument
41 L_tmp = L_mac(L_tmp, *mem, mu); in Deemph()
51 *mem = x[L - 1]; in Deemph()
61 Word16 * mem /* (i/o) : memory (y[-1]) */ in Deemph2() argument
67 i = L_mult(*mem, mu); in Deemph2()
78 *mem = x[L - 1]; in Deemph2()
89 Word16 * mem /* (i/o) : memory (y[-1]) */ in Deemph_32() argument
100 L_tmp += ((*mem) * fac)<<1; in Deemph_32()
114 *mem = y[L - 1]; in Deemph_32()
Dpreemph.c32 Word16 * mem /* (i/o) : memory (x[-1]) */ in Preemph() argument
48 L_tmp -= ((*mem) * mu)<<1; in Preemph()
51 *mem = temp; in Preemph()
61 Word16 * mem /* (i/o) : memory (x[-1]) */ in Preemph2() argument
84 L_tmp -= ((*mem) * mu)<<1; in Preemph2()
94 *mem = temp; in Preemph2()
Dhp6k.c47 void Init_Filt_6k_7k(Word16 mem[]) /* mem[30] */ in Init_Filt_6k_7k() argument
49 Set_zero(mem, L_FIR - 1); in Init_Filt_6k_7k()
56 Word16 mem[] /* in/out: memory (size=30) */ in Filt_6k_7k() argument
62 Copy(mem, x, L_FIR - 1); in Filt_6k_7k()
88 Copy(x + lg, mem, L_FIR - 1); in Filt_6k_7k()
Ddecim54.c60 Word16 mem[] /* output: memory (2*NB_COEF_DOWN) set to zeros */ in Init_Decim_12k8() argument
63 Set_zero(mem, 2 * NB_COEF_DOWN); in Init_Decim_12k8()
71 Word16 mem[] /* in/out: memory (2*NB_COEF_DOWN) */ in Decim_12k8() argument
77 Copy(mem, signal, 2 * NB_COEF_DOWN); in Decim_12k8()
85 Copy(signal + lg, mem, 2 * NB_COEF_DOWN); in Decim_12k8()
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dhighpass_50hz_at_12k8.cpp136 void highpass_50Hz_at_12k8_init(int16 mem[]) in highpass_50Hz_at_12k8_init() argument
138 pv_memset((void *)mem, 0, 6*sizeof(*mem)); in highpass_50Hz_at_12k8_init()
148 int16 mem[] /* filter memory [6] */ in highpass_50Hz_at_12k8() argument
157 y2_hi = mem[0]; in highpass_50Hz_at_12k8()
158 y2_lo = mem[1]; in highpass_50Hz_at_12k8()
159 y1_hi = mem[2]; in highpass_50Hz_at_12k8()
160 y1_lo = mem[3]; in highpass_50Hz_at_12k8()
161 x0 = mem[4]; in highpass_50Hz_at_12k8()
162 x1 = mem[5]; in highpass_50Hz_at_12k8()
197 mem[0] = y2_hi; in highpass_50Hz_at_12k8()
[all …]
Dhighpass_400hz_at_12k8.cpp134 void highpass_400Hz_at_12k8_init(int16 mem[]) in highpass_400Hz_at_12k8_init() argument
136 pv_memset((void *)mem, 0, 6*sizeof(*mem)); in highpass_400Hz_at_12k8_init()
146 int16 mem[] /* filter memory [6] */ in highpass_400Hz_at_12k8() argument
154 y2_hi = mem[0]; in highpass_400Hz_at_12k8()
155 y2_lo = mem[1]; in highpass_400Hz_at_12k8()
156 y1_hi = mem[2]; in highpass_400Hz_at_12k8()
157 y1_lo = mem[3]; in highpass_400Hz_at_12k8()
158 x0 = mem[4]; in highpass_400Hz_at_12k8()
159 x1 = mem[5]; in highpass_400Hz_at_12k8()
192 mem[0] = y2_hi; in highpass_400Hz_at_12k8()
[all …]
Ddec_gain2_amr_wb.cpp145 void dec_gain2_amr_wb_init(int16 * mem) in dec_gain2_amr_wb_init() argument
149 mem[0] = -14336; /* past_qua_en[0] */ in dec_gain2_amr_wb_init()
150 mem[1] = -14336; /* past_qua_en[1] */ in dec_gain2_amr_wb_init()
151 mem[2] = -14336; /* past_qua_en[2] */ in dec_gain2_amr_wb_init()
152 mem[3] = -14336; /* past_qua_en[3] */ in dec_gain2_amr_wb_init()
159 pv_memset((void *)&mem[4], 0, 18*sizeof(*mem)); in dec_gain2_amr_wb_init()
161 mem[22] = 21845; in dec_gain2_amr_wb_init()
181 int16 * mem /* (i/o) : static memory (4 words) */ in dec_gain2_amr_wb() argument
192 past_qua_en = mem; in dec_gain2_amr_wb()
193 past_gain_pit = mem + 4; in dec_gain2_amr_wb()
[all …]
Dpvamrwbdecoder_acelp.h86 void low_pass_filt_7k_init(int16 mem[]);
90 int16 mem[], /* in/out: memory (size=30) */
162 int16 mem[] /* output: memory (2*NB_COEF_UP) set to zeros */
168 int16 mem[], /* in/out: memory (2*NB_COEF_UP) */
172 void highpass_50Hz_at_12k8_init(int16 mem[]);
176 int16 mem[] /* filter memory [6] */
178 void highpass_400Hz_at_12k8_init(int16 mem[]);
182 int16 mem[] /* filter memory [6] */
185 void band_pass_6k_7k_init(int16 mem[]);
189 int16 mem[], /* in/out: memory (size=30) */
[all …]
Dlow_pass_filt_7k.cpp129 void low_pass_filt_7k_init(int16 mem[]) /* mem[30] */ in low_pass_filt_7k_init() argument
131 pv_memset((void *)mem, 0, (L_FIR)*sizeof(*mem)); in low_pass_filt_7k_init()
145 int16 mem[], /* in/out: memory (size=30) */ in low_pass_filt_7k() argument
155 pv_memcpy((void *)x, (void *)mem, (L_FIR)*sizeof(*x)); in low_pass_filt_7k()
216 pv_memcpy((void *)mem, (void *)(x + lg), (L_FIR)*sizeof(*mem)); in low_pass_filt_7k()
Dband_pass_6k_7k.cpp138 void band_pass_6k_7k_init(int16 mem[]) /* mem[30] */ in band_pass_6k_7k_init() argument
140 pv_memset((void *)mem, 0, L_FIR*sizeof(*mem)); in band_pass_6k_7k_init()
152 int16 mem[], /* in/out: memory (size=30) */ in band_pass_6k_7k() argument
164 pv_memcpy((void *)x, (void *)mem, L_FIR*sizeof(*x)); in band_pass_6k_7k()
237 pv_memcpy((void *)mem, (void *)(x + lg), L_FIR*sizeof(*mem)); in band_pass_6k_7k()
Doversamp_12k8_to_16k.cpp189 void oversamp_12k8_to_16k_init(int16 mem[]) in oversamp_12k8_to_16k_init() argument
191 pv_memset((void *)mem, 0, (2*NB_COEF_UP)*sizeof(*mem)); in oversamp_12k8_to_16k_init()
203 int16 mem[], /* in/out: memory (2*NB_COEF_UP) */ in oversamp_12k8_to_16k() argument
210 (void *)mem, in oversamp_12k8_to_16k()
211 (2*NB_COEF_UP)*sizeof(*mem)); in oversamp_12k8_to_16k()
221 pv_memcpy((void *)mem, in oversamp_12k8_to_16k()
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dacelp.h48 Word16 * mem /* output :static memory (18 words) */
56 … Word16 * mem /* (i/o) :static memory (18 words) */
170 Word16 mem[] /* output: memory (2*NB_COEF_DOWN) set to zeros */
176 Word16 mem[] /* in/out: memory (2*NB_COEF_DOWN) */
179 void Init_HP50_12k8(Word16 mem[]);
183 Word16 mem[] /* filter memory [6] */
185 void Init_HP400_12k8(Word16 mem[]);
189 Word16 mem[] /* filter memory [6] */
192 void Init_Filt_6k_7k(Word16 mem[]);
196 Word16 mem[] /* in/out: memory (size=30) */
[all …]
/frameworks/base/core/java/android/os/
DHidlMemoryUtil.java143 byte[] hidlMemoryToByteArray(@NonNull HidlMemory mem) { in hidlMemoryToByteArray() argument
144 Preconditions.checkNotNull(mem); in hidlMemoryToByteArray()
145 Preconditions.checkArgumentInRange(mem.getSize(), 0L, (long) Integer.MAX_VALUE, in hidlMemoryToByteArray()
147 Preconditions.checkArgument(mem.getSize() == 0 || mem.getName().equals("ashmem"), in hidlMemoryToByteArray()
148 "Unsupported memory type: %s", mem.getName()); in hidlMemoryToByteArray()
150 if (mem.getSize() == 0) { in hidlMemoryToByteArray()
154 ByteBuffer buffer = getBuffer(mem); in hidlMemoryToByteArray()
169 ArrayList<Byte> hidlMemoryToByteList(@NonNull HidlMemory mem) { in hidlMemoryToByteList() argument
170 Preconditions.checkNotNull(mem); in hidlMemoryToByteList()
171 Preconditions.checkArgumentInRange(mem.getSize(), 0L, (long) Integer.MAX_VALUE, in hidlMemoryToByteList()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DMatrix.java25 public final double[] mem; field in Matrix
36 mem = new double[rows * cols]; in Matrix()
51 mem = values; in Matrix()
52 if (mem.length != n * m) throw new IllegalArgumentException(); in Matrix()
63 mem = new double[that.mem.length]; in Matrix()
64 for (int i = 0; i < mem.length; i++) { in Matrix()
65 mem[i] = that.mem[i]; in Matrix()
79 return mem[i * m + j]; in get()
92 mem[i * m + j] = v; in put()
119 for (int i = 0; i < mem.length; i++) { in plus()
[all …]
/frameworks/av/media/libstagefright/
DBufferImpl.cpp34 SharedMemoryBuffer::SharedMemoryBuffer(const sp<AMessage> &format, const sp<IMemory> &mem) in SharedMemoryBuffer() argument
39 : MediaCodecBuffer(format, new ABuffer(mem->unsecurePointer(), mem->size())), in SharedMemoryBuffer()
40 mMemory(mem) { in SharedMemoryBuffer()
43 SharedMemoryBuffer::SharedMemoryBuffer(const sp<AMessage> &format, const sp<TMemory> &mem) in SharedMemoryBuffer() argument
44 : MediaCodecBuffer(format, new ABuffer(mem->getPointer(), mem->getSize())), in SharedMemoryBuffer()
45 mTMemory(mem) { in SharedMemoryBuffer()
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.cpp93 camera_memory_t* mem = sGetMemory(descriptor->data[0], bufferSize, bufferCount, this); in registerMemory() local
94 sp<CameraHeapMemory> camMem(static_cast<CameraHeapMemory *>(mem->handle)); in registerMemory()
101 mHidlMemPoolMap.insert(std::make_pair(memPoolId, mem)); in registerMemory()
106 camera_memory_t* mem = nullptr; in unregisterMemory() local
113 mem = mHidlMemPoolMap.at(memId); in unregisterMemory()
116 sPutMemory(mem); in unregisterMemory()
123 camera_memory_t* mem = nullptr; in dataCallback() local
130 mem = mHidlMemPoolMap.at(data); in dataCallback()
135 sDataCb((int32_t) msgType, mem, bufferIndex, &md, this); in dataCallback()
142 camera_memory_t* mem = nullptr; in dataCallbackTimestamp() local
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerStreamListener.cpp39 sp<IMemory> mem = mMemoryDealer->allocate(kBufferSize); in NuPlayerStreamListener() local
40 CHECK(mem != NULL); in NuPlayerStreamListener()
42 mBuffers.push(mem); in NuPlayerStreamListener()
149 sp<IMemory> mem = mBuffers.editItemAt(entry->mIndex); in read() local
150 if (mem == NULL || mem->size() < copy || mem->size() - copy < entry->mOffset) { in read()
155 (const uint8_t *)mem->unsecurePointer() in read()
/frameworks/av/media/libmedia/include/media/
DIMediaSource.h153 uint64_t lookup(const sp<IMemory> &mem) { in lookup()
154 auto p = mMemoryToIndex.find(mem.get()); in lookup()
164 ALOGW_IF(p->second.first.get() != mem.get(), "Mismatched buffers without reset"); in lookup()
169 uint64_t insert(const sp<IMemory> &mem) { in insert()
170 auto p = mMemoryToIndex.find(mem.get()); in insert()
180 std::forward_as_tuple(mem.get()), std::forward_as_tuple(mem, mIndex)); in insert()
/frameworks/base/startop/iorap/stress/
Dmain_memory.cc66 void* mem = malloc(allocationSize); in main() local
67 if (mem == nullptr) { in main()
72 volatile int* imem = static_cast<int *>(mem); // don't optimize out memory usage in main()
106 if (mlock(mem, allocationSize) != 0) { in main()
123 free(mem); in main()
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
DVtsHalSensorManagerV1_0TargetTest.cpp139 map_region map(const hidl_memory &mem) { in map() argument
140 if (mem.handle() == nullptr || mem.handle()->numFds != 1) { in map()
143 size_t size = mem.size(); in map()
144 void *buf = mmap(nullptr, size, PROT_READ, MAP_SHARED, mem.handle()->data[0], 0); in map()
163 ASSERT_OK(ashmem_->allocate(memSize, [&](bool success, const auto &mem) { in TEST_P() argument
165 ASSERT_NE(mem.handle(), nullptr); in TEST_P()
166 ASSERT_OK(manager_->createAshmemDirectChannel(mem, intendedSize, callback)); in TEST_P()
257 ASSERT_OK(ashmem_->allocate(memSize, [&](bool success, const auto &mem) { in TEST_P() argument
259 map_region buf = map(mem); in TEST_P()
262 manager_->createAshmemDirectChannel(mem, memSize, [&](const auto &chan, Result result) { in TEST_P()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/
Dsyn_filt_neon.s21 @ Word16 mem[], /* (i/o) : memory associated with this filtering. */
27 @ mem[] --- r3
38 MOV r4, r3 @ copy mem[] address
43 @ *yy++ = mem[i]@
46 VST1.S16 {D0, D1, D2, D3}, [r5]! @store 16 mem[] to *yy
94 @ update mem[]

12345