123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- #include "ol_ltp.h"
- const char ol_ltp_id[] = "@(#)$Id $" ol_ltp_h;
-
- #include <stdio.h>
- #include "typedef.h"
- #include "cnst.h"
- #include "pitch_ol.h"
- #include "p_ol_wgh.h"
- #include "count.h"
- #include "basic_op.h"
- int ol_ltp(
- pitchOLWghtState *st,
- vadState *vadSt,
- enum Mode mode,
- Word16 wsp[],
-
- Word16 *T_op,
- Word16 old_lags[],
- Word16 ol_gain_flg[],
- Word16 idx,
- Flag dtx
- )
- {
- test ();
- if (sub_ex (mode, MR102) != 0 )
- {
- ol_gain_flg[0] = 0; move16 ();
- ol_gain_flg[1] = 0; move16 ();
- }
-
- test (); test ();
- if (sub_ex (mode, MR475) == 0 || sub_ex (mode, MR515) == 0 )
- {
- *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN, PIT_MAX, L_FRAME, idx, dtx);
- move16 ();
- }
- else
- {
- if ( sub_ex (mode, MR795) <= 0 )
- {
- test();
- *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN, PIT_MAX, L_FRAME_BY2,
- idx, dtx);
- move16 ();
- }
- else if ( sub_ex (mode, MR102) == 0 )
- {
- test(); test();
- *T_op = Pitch_ol_wgh(st, vadSt, wsp, PIT_MIN, PIT_MAX, L_FRAME_BY2,
- old_lags, ol_gain_flg, idx, dtx);
- move16 ();
- }
- else
- {
- test(); test();
- *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN_MR122, PIT_MAX,
- L_FRAME_BY2, idx, dtx);
- move16 ();
- }
- }
- return 0;
- }
|