Home
last modified time | relevance | path

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

1234

/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()
Dlp_dec2.c38 Word16 mem[] /* in/out: memory (size=3) */ in LP_Decim2() argument
48 *p_x++ = mem[i]; in LP_Decim2()
49 mem[i] = x[l - L_MEM + i]; in LP_Decim2()
Dlevinson.c99 Word16 * mem /* output :static memory (18 words) */ in Init_Levinson() argument
102 Set_zero(mem, 18); /* old_A[0..M-1] = 0, old_rc[0..1] = 0 */ in Init_Levinson()
112 … Word16 * mem /* (i/o) :static memory (18 words) */ in Levinson() argument
125 old_A = mem; in Levinson()
126 old_rc = mem + M; in Levinson()
/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()
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()
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()
/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/av/media/libmediaplayerservice/nuplayer/
DNuPlayerStreamListener.cpp41 sp<IMemory> mem = mMemoryDealer->allocate(kBufferSize); in NuPlayerStreamListener() local
42 CHECK(mem != NULL); in NuPlayerStreamListener()
44 mBuffers.push(mem); in NuPlayerStreamListener()
151 sp<IMemory> mem = mBuffers.editItemAt(entry->mIndex); in read() local
152 if (mem == NULL || mem->size() < copy || mem->size() - copy < entry->mOffset) { in read()
157 (const uint8_t *)mem->pointer() in read()
/frameworks/av/include/media/
DIMediaSource.h208 uint64_t lookup(const sp<IMemory> &mem) { in lookup()
209 auto p = mMemoryToIndex.find(mem.get()); in lookup()
219 ALOGW_IF(p->second.first.get() != mem.get(), "Mismatched buffers without reset"); in lookup()
224 uint64_t insert(const sp<IMemory> &mem) { in insert()
225 auto p = mMemoryToIndex.find(mem.get()); in insert()
235 std::forward_as_tuple(mem.get()), std::forward_as_tuple(mem, mIndex)); in insert()
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.h360 void releaseRecordingFrame(const sp<IMemory>& mem) in releaseRecordingFrame() argument
366 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in releaseRecordingFrame()
504 sp<CameraHeapMemory> mem(static_cast<CameraHeapMemory *>(data->handle)); in __data_cb()
505 if (index >= mem->mNumBufs) { in __data_cb()
507 index, mem->mNumBufs); in __data_cb()
510 __this->mDataCb(msg_type, mem->mBuffers[index], metadata, __this->mCbUser); in __data_cb()
523 sp<CameraHeapMemory> mem(static_cast<CameraHeapMemory *>(data->handle)); in __data_cb_timestamp()
524 if (index >= mem->mNumBufs) { in __data_cb_timestamp()
526 index, mem->mNumBufs); in __data_cb_timestamp()
529 __this->mDataCbTimestamp(timestamp, msg_type, mem->mBuffers[index], __this->mCbUser); in __data_cb_timestamp()
[all …]
/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[]
/frameworks/av/media/libmedia/
DIMediaSource.cpp54 RemoteMediaBufferWrapper(const sp<IMemory> &mem) in RemoteMediaBufferWrapper() argument
55 : MediaBuffer(mem) { in RemoteMediaBufferWrapper()
155 sp<IMemory> mem; in readMultiple() local
158 mem = interface_cast<IMemory>(binder); in readMultiple()
159 LOG_ALWAYS_FATAL_IF(mem.get() == nullptr, in readMultiple()
161 mMemoryCache.insert(index, mem); in readMultiple()
163 mem = mMemoryCache.lookup(index); in readMultiple()
164 LOG_ALWAYS_FATAL_IF(mem.get() == nullptr, in readMultiple()
170 buf = new RemoteMediaBufferWrapper(mem); in readMultiple()
239 void insert(uint64_t index, const sp<IMemory> &mem) { in insert()
[all …]
/frameworks/av/cmds/stagefright/
Dstream.cpp114 sp<IMemory> mem = mBuffers.itemAt(index); in onBufferAvailable() local
116 ssize_t n = read(mFd, mem->pointer(), mem->size()); in onBufferAvailable()
225 sp<IMemory> mem = mBuffers.itemAt(mCurrentBufferIndex); in writeData() local
228 if (copy + mCurrentBufferOffset > mem->size()) { in writeData()
229 copy = mem->size() - mCurrentBufferOffset; in writeData()
232 memcpy((uint8_t *)mem->pointer() + mCurrentBufferOffset, data, copy); in writeData()
235 if (mCurrentBufferOffset == mem->size()) { in writeData()
/frameworks/av/camera/
DICameraRecordingProxy.cpp64 void releaseRecordingFrame(const sp<IMemory>& mem) in releaseRecordingFrame() argument
69 data.writeStrongBinder(IInterface::asBinder(mem)); in releaseRecordingFrame()
112 sp<IMemory> mem = interface_cast<IMemory>(data.readStrongBinder()); in onTransact() local
113 releaseRecordingFrame(mem); in onTransact()

1234