Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 84) 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 L_tmp += ((*mem) * mu)<<1; in Deemph2()
75 *mem = x[L - 1]; in Deemph2()
86 Word16 * mem /* (i/o) : memory (y[-1]) */ in Deemph_32() argument
97 L_tmp += ((*mem) * fac)<<1; in Deemph_32()
111 *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
78 L_tmp -= ((*mem) * mu)<<1; in Preemph2()
82 *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_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 …]
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 …]
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()
Ddeemphasis_32.cpp126 int16 * mem /* (i/o) : memory (y[-1]) */ in deemphasis_32() argument
137 L_tmp = fxp_mac_16by16(*mem, mu, L_tmp), in deemphasis_32()
162 *mem = y[L - 1]; in deemphasis_32()
/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/services/camera/libcameraservice/device1/
DCameraHardwareInterface.h322 void releaseRecordingFrame(const sp<IMemory>& mem) in releaseRecordingFrame() argument
328 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in releaseRecordingFrame()
466 sp<CameraHeapMemory> mem(static_cast<CameraHeapMemory *>(data->handle)); in __data_cb()
467 if (index >= mem->mNumBufs) { in __data_cb()
469 index, mem->mNumBufs); in __data_cb()
472 __this->mDataCb(msg_type, mem->mBuffers[index], metadata, __this->mCbUser); in __data_cb()
485 sp<CameraHeapMemory> mem(static_cast<CameraHeapMemory *>(data->handle)); in __data_cb_timestamp()
486 if (index >= mem->mNumBufs) { in __data_cb_timestamp()
488 index, mem->mNumBufs); in __data_cb_timestamp()
491 __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/camera/
DICameraRecordingProxy.cpp61 void releaseRecordingFrame(const sp<IMemory>& mem) in releaseRecordingFrame() argument
66 data.writeStrongBinder(IInterface::asBinder(mem)); in releaseRecordingFrame()
96 sp<IMemory> mem = interface_cast<IMemory>(data.readStrongBinder()); in onTransact() local
97 releaseRecordingFrame(mem); in onTransact()
/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/services/camera/libcameraservice/api1/
DCameraClient.h51 virtual void releaseRecordingFrame(const sp<IMemory>& mem);
104 void handlePreviewData(int32_t msgType, const sp<IMemory>& mem,
106 void handlePostview(const sp<IMemory>& mem);
107 void handleRawPicture(const sp<IMemory>& mem);
108 void handleCompressedPicture(const sp<IMemory>& mem);
DCameraClient.cpp470 void CameraClient::releaseRecordingFrame(const sp<IMemory>& mem) { in releaseRecordingFrame() argument
473 mHardware->releaseRecordingFrame(mem); in releaseRecordingFrame()
798 const sp<IMemory>& mem, in handlePreviewData() argument
802 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in handlePreviewData()
835 c->dataCallback(msgType, mem, metadata); in handlePreviewData()
843 void CameraClient::handlePostview(const sp<IMemory>& mem) { in handlePostview() argument
849 c->dataCallback(CAMERA_MSG_POSTVIEW_FRAME, mem, NULL); in handlePostview()
854 void CameraClient::handleRawPicture(const sp<IMemory>& mem) { in handleRawPicture() argument
859 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in handleRawPicture()
864 c->dataCallback(CAMERA_MSG_RAW_IMAGE, mem, NULL); in handleRawPicture()
[all …]

1234