Home
last modified time | relevance | path

Searched refs:lsp (Results 1 - 25 of 34) sorted by relevance

12

/third_party/libwebsockets/lib/plat/unix/
H A Dunix-spawn.c40 struct lws_spawn_piped *lsp = lws_container_of(sul, in lws_spawn_timeout() local
45 lws_spawn_piped_kill_child_process(lsp); in lws_spawn_timeout()
51 struct lws_spawn_piped *lsp = lws_container_of(sul, in lws_spawn_sul_reap() local
55 __func__, lsp->reap_retry_budget); in lws_spawn_sul_reap()
56 if (!lws_spawn_reap(lsp) && !lsp->pipes_alive) { in lws_spawn_sul_reap()
57 if (--lsp->reap_retry_budget) { in lws_spawn_sul_reap()
58 lws_sul_schedule(lsp->info.vh->context, lsp->info.tsi, in lws_spawn_sul_reap()
59 &lsp in lws_spawn_sul_reap()
116 struct lws_spawn_piped *lsp = *_lsp; lws_spawn_piped_destroy() local
147 lws_spawn_reap(struct lws_spawn_piped *lsp) lws_spawn_reap() argument
264 lws_spawn_piped_kill_child_process(struct lws_spawn_piped *lsp) lws_spawn_piped_kill_child_process() argument
332 struct lws_spawn_piped *lsp; lws_spawn_piped() local
593 lws_spawn_stdwsi_closed(struct lws_spawn_piped *lsp, struct lws *wsi) lws_spawn_stdwsi_closed() argument
[all...]
/third_party/libwebsockets/lib/plat/windows/
H A Dwindows-spawn.c34 struct lws_spawn_piped *lsp = lws_container_of(sul, in lws_spawn_timeout() local
39 lws_spawn_piped_kill_child_process(lsp); in lws_spawn_timeout()
45 struct lws_spawn_piped *lsp = lws_container_of(sul, in lws_spawn_sul_reap() local
49 __func__, lsp->reap_retry_budget); in lws_spawn_sul_reap()
50 if (!lws_spawn_reap(lsp) && !lsp->pipes_alive) { in lws_spawn_sul_reap()
51 if (--lsp->reap_retry_budget) { in lws_spawn_sul_reap()
52 lws_sul_schedule(lsp->info.vh->context, lsp->info.tsi, in lws_spawn_sul_reap()
53 &lsp in lws_spawn_sul_reap()
113 struct lws_spawn_piped *lsp = *_lsp; lws_spawn_piped_destroy() local
149 lws_spawn_reap(struct lws_spawn_piped *lsp) lws_spawn_reap() argument
229 lws_spawn_piped_kill_child_process(struct lws_spawn_piped *lsp) lws_spawn_piped_kill_child_process() argument
252 struct lws_spawn_piped *lsp = lws_container_of(sul, windows_pipe_poll_hack() local
344 struct lws_spawn_piped *lsp; lws_spawn_piped() local
555 lws_spawn_stdwsi_closed(struct lws_spawn_piped *lsp, struct lws *wsi) lws_spawn_stdwsi_closed() argument
[all...]
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/
H A Dlangsvr.go34 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/jsonrpc2"
35 lsp "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/protocol"
85 s.ctx, s.conn, s.client = lsp.NewServer(context.Background(), stream, &s)
97 client lsp.Client
110 func (f *file) tokAt(lp lsp.Position) *parser.Token {
123 func (s *server) DidChangeWorkspaceFolders(ctx context.Context, p *lsp.DidChangeWorkspaceFoldersParams) error {
127 func (s *server) Initialized(ctx context.Context, p *lsp.InitializedParams) error {
135 func (s *server) DidChangeConfiguration(ctx context.Context, p *lsp.DidChangeConfigurationParams) error {
139 func (s *server) DidOpen(ctx context.Context, p *lsp
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/
H A Dlangsvr.go34 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/jsonrpc2"
35 lsp "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/protocol"
85 s.ctx, s.conn, s.client = lsp.NewServer(context.Background(), stream, &s)
97 client lsp.Client
110 func (f *file) tokAt(lp lsp.Position) *parser.Token {
123 func (s *server) DidChangeWorkspaceFolders(ctx context.Context, p *lsp.DidChangeWorkspaceFoldersParams) error {
127 func (s *server) Initialized(ctx context.Context, p *lsp.InitializedParams) error {
135 func (s *server) DidChangeConfiguration(ctx context.Context, p *lsp.DidChangeConfigurationParams) error {
139 func (s *server) DidOpen(ctx context.Context, p *lsp
[all...]
/third_party/spirv-tools/utils/vscode/src/
H A Dlangsvr.go34 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/jsonrpc2"
35 lsp "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/protocol"
85 s.ctx, s.conn, s.client = lsp.NewServer(context.Background(), stream, &s)
97 client lsp.Client
110 func (f *file) tokAt(lp lsp.Position) *parser.Token {
123 func (s *server) DidChangeWorkspaceFolders(ctx context.Context, p *lsp.DidChangeWorkspaceFoldersParams) error {
127 func (s *server) Initialized(ctx context.Context, p *lsp.InitializedParams) error {
135 func (s *server) DidChangeConfiguration(ctx context.Context, p *lsp.DidChangeConfigurationParams) error {
139 func (s *server) DidOpen(ctx context.Context, p *lsp
[all...]
/third_party/ffmpeg/libavcodec/
H A Dlsp.c29 #include "lsp.h"
83 void ff_acelp_lsf2lsp(int16_t *lsp, const int16_t *lsf, int lp_order) in ff_acelp_lsf2lsp() argument
87 /* Convert LSF to LSP, lsp=cos(lsf) */ in ff_acelp_lsf2lsp()
90 lsp[i] = ff_cos(lsf[i] * 20861 >> 15); // divide by PI and (0,13) -> (0,14) in ff_acelp_lsf2lsp()
93 void ff_acelp_lsf2lspd(double *lsp, const float *lsf, int lp_order) in ff_acelp_lsf2lspd() argument
98 lsp[i] = cos(2.0 * M_PI * lsf[i]); in ff_acelp_lsf2lspd()
104 * @param lsp LSP coefficients (-0x8000 <= (0.15) <= 0x7fff)
106 static void lsp2poly(int* f, const int16_t* lsp, int lp_half_order) in lsp2poly() argument
111 f[1] = -lsp[0] * 256; // *2 and (0.15) -> (3.22) in lsp2poly()
117 f[j] -= MULL(f[j-1], lsp[ in lsp2poly()
123 ff_acelp_lsp2lpc(int16_t* lp, const int16_t* lsp, int lp_half_order) ff_acelp_lsp2lpc() argument
145 ff_amrwb_lsp2lpc(const double *lsp, float *lp, int lp_order) ff_amrwb_lsp2lpc() argument
191 ff_lsp2polyf(const double *lsp, double *f, int lp_half_order) ff_lsp2polyf() argument
209 ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order) ff_acelp_lspd2lpc() argument
[all...]
H A Dlsp.h57 * @param[out] lsp LSP coefficients (-0x8000 <= (0.15) < 0x8000)
61 * @remark It is safe to pass the same array into the lsf and lsp parameters.
63 void ff_acelp_lsf2lsp(int16_t *lsp, const int16_t *lsf, int lp_order);
68 void ff_acelp_lsf2lspd(double *lsp, const float *lsf, int lp_order);
73 * @param lsp LSP coefficients (-0x8000 <= (0.15) < 0x8000)
76 void ff_acelp_lsp2lpc(int16_t* lp, const int16_t* lsp, int lp_half_order);
81 void ff_amrwb_lsp2lpc(const double *lsp, float *lp, int lp_order);
100 * @param lsp line spectral pairs in cosine domain
109 void ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order);
123 * @param lsp lin
[all...]
H A Dtwinvq.c30 #include "lsp.h"
38 * @param lsp a vector of the cosine of the LSP values
40 * @param order the order of the LSP (and the size of the *lsp buffer). Must
46 static float eval_lpc_spectrum(const float *lsp, float cos_val, int order) in eval_lpc_spectrum() argument
55 q *= lsp[j] - two_cos_w; in eval_lpc_spectrum()
56 p *= lsp[j + 1] - two_cos_w; in eval_lpc_spectrum()
58 q *= lsp[j + 2] - two_cos_w; in eval_lpc_spectrum()
59 p *= lsp[j + 3] - two_cos_w; in eval_lpc_spectrum()
251 static void rearrange_lsp(int order, float *lsp, float min_dist) in rearrange_lsp() argument
256 if (lsp[ in rearrange_lsp()
264 decode_lsp(TwinVQContext *tctx, int lpc_idx1, uint8_t *lpc_idx2, int lpc_hist_idx, float *lsp, float *hist) decode_lsp() argument
304 dec_lpc_spectrum_inv(TwinVQContext *tctx, float *lsp, enum TwinVQFrameType ftype, float *lpc) dec_lpc_spectrum_inv() argument
444 float lsp[TWINVQ_LSP_COEFS_MAX]; read_and_decode_spectrum() local
[all...]
H A Damrnbdec.c56 #include "lsp.h"
107 double lsp[4][LP_FILTER_ORDER]; ///< lsp vectors from current frame member
108 double prev_lsp_sub4[LP_FILTER_ORDER]; ///< lsp vector for the 4th subframe of the previous frame
260 * Decode a set of 5 split-matrix quantized lsf indexes into an lsp vector.
263 * @param lsp output LSP vector
270 static void lsf2lsp_for_mode12k2(AMRContext *p, double lsp[LP_FILTER_ORDER], in lsf2lsp_for_mode12k2() argument
300 ff_acelp_lsf2lspd(lsp, lsf_q, LP_FILTER_ORDER); in lsf2lsp_for_mode12k2()
304 * Decode a set of 5 split-matrix quantized lsf indexes into 2 lsp vectors.
324 lsf2lsp_for_mode12k2(p, p->lsp[ in lsf2lsp_5()
[all...]
H A Dg723_1enc.c243 static void lpc2lsp(int16_t *lpc, int16_t *prev_lsp, int16_t *lsp) in lpc2lsp() argument
255 lsp[i] = (lpc[i] * bandwidth_expand[i] + (1 << 14)) >> 15; in lpc2lsp()
263 f[2 * i + 2] = -f[2 * i] - ((lsp[i] + lsp[LPC_ORDER - 1 - i]) << 12); in lpc2lsp()
265 f[2 * i + 3] = f[2 * i + 1] - ((lsp[i] - lsp[LPC_ORDER - 1 - i]) << 12); in lpc2lsp()
308 lsp[count++] = ((i - 1) << 7) + (abs_prev >> 1) / (sum >> 16); in lpc2lsp()
327 memcpy(lsp, prev_lsp, LPC_ORDER * sizeof(int16_t)); in lpc2lsp()
348 error = ff_g723_1_dot_product(lsp + (offset), temp, size) << 1; \
360 * @param lsp th
363 lsp_quantize(uint8_t *lsp_index, int16_t *lsp, int16_t *prev_lsp) lsp_quantize() argument
[all...]
H A Devrcdec.c37 #include "lsp.h"
61 uint16_t lsp[4]; ///< index into LSP codebook member
118 frame->lsp[0] = get_bits(gb, 6); in unpack_frame()
119 frame->lsp[1] = get_bits(gb, 6); in unpack_frame()
120 frame->lsp[2] = get_bits(gb, 9); in unpack_frame()
121 frame->lsp[3] = get_bits(gb, 7); in unpack_frame()
145 frame->lsp [0] = get_bits(gb, 7); in unpack_frame()
146 frame->lsp [1] = get_bits(gb, 7); in unpack_frame()
147 frame->lsp [2] = get_bits(gb, 8); in unpack_frame()
160 frame->lsp [ in unpack_frame()
317 interpolate_lsp(float *ilsp, const float *lsp, const float *prev, int index) interpolate_lsp() argument
350 double lsp[FILTER_ORDER]; decode_predictor_coeffs() local
[all...]
H A Dspeexdec.c261 static void lsp_unquant_lbr(float *lsp, int order, GetBitContext *gb) in lsp_unquant_lbr() argument
266 lsp[i] = LSP_LINEAR(i); in lsp_unquant_lbr()
270 lsp[i] += LSP_DIV_256(cdbk_nb[id * 10 + i]); in lsp_unquant_lbr()
274 lsp[i] += LSP_DIV_512(cdbk_nb_low1[id * 5 + i]); in lsp_unquant_lbr()
278 lsp[i + 5] += LSP_DIV_512(cdbk_nb_high1[id * 5 + i]); in lsp_unquant_lbr()
409 static void lsp_unquant_nb(float *lsp, int order, GetBitContext *gb) in lsp_unquant_nb() argument
414 lsp[i] = LSP_LINEAR(i); in lsp_unquant_nb()
418 lsp[i] += LSP_DIV_256(cdbk_nb[id * 10 + i]); in lsp_unquant_nb()
422 lsp[i] += LSP_DIV_512(cdbk_nb_low1[id * 5 + i]); in lsp_unquant_nb()
426 lsp[ in lsp_unquant_nb()
437 lsp_unquant_high(float *lsp, int order, GetBitContext *gb) lsp_unquant_high() argument
805 lsp_interpolate(const float *old_lsp, const float *new_lsp, float *lsp, int len, int subframe, int nb_subframes, float margin) lsp_interpolate() argument
[all...]
H A Dg729dec.c34 #include "lsp.h"
117 int16_t *lsp[2]; ///< pointers to lsp_buf member
380 ctx->lsp[0] = ctx->lsp_buf[0]; in decoder_init()
381 ctx->lsp[1] = ctx->lsp_buf[1]; in decoder_init()
382 memcpy(ctx->lsp[0], lsp_init, 10 * sizeof(int16_t)); in decoder_init()
488 ff_acelp_lsf2lsp(ctx->lsp[1], ctx->lsfq, 10); in decode_frame()
490 ff_acelp_lp_decode(&lp[0][0], &lp[1][0], ctx->lsp[1], ctx->lsp[0], 10); in decode_frame()
492 FFSWAP(int16_t*, ctx->lsp[1], ctx->lsp[ in decode_frame()
[all...]
H A Dopus_silk.c201 static void silk_lsp2poly(const int32_t lsp[/* 2 * half_order - 1 */], in silk_lsp2poly()
207 pol[1] = -lsp[0]; in silk_lsp2poly()
210 pol[i + 1] = pol[i - 1] * 2 - ROUND_MULL(lsp[2 * i], pol[i], 16); in silk_lsp2poly()
212 pol[j] += pol[j - 2] - ROUND_MULL(lsp[2 * i], pol[j - 1], 16); in silk_lsp2poly()
214 pol[1] -= lsp[2 * i]; in silk_lsp2poly()
221 int32_t lsp[16]; // Q17; 2*cos(LSF) in silk_lsf2lpc() local
233 lsp[k2] = ff_silk_cosine[index] * 256; in silk_lsf2lpc()
234 lsp[k2] += (ff_silk_cosine[index + 1] - ff_silk_cosine[index]) * offset; in silk_lsf2lpc()
235 lsp[k2] = (lsp[k in silk_lsf2lpc()
[all...]
H A Dvorbisdec.c80 float *lsp; member
219 av_freep(&vc->floors[i].data.t0.lsp); in vorbis_free()
658 floor_setup->data.t0.lsp = in vorbis_parse_setup_hdr_floors()
660 sizeof(*floor_setup->data.t0.lsp)); in vorbis_parse_setup_hdr_floors()
661 if (!floor_setup->data.t0.lsp) in vorbis_parse_setup_hdr_floors()
1106 float *lsp = vf->lsp; in vorbis_floor0_decode() local
1145 lsp[lsp_len+idx] = codebook.codevectors[vec_off+idx] + last; in vorbis_floor0_decode()
1146 last = lsp[lsp_len+idx-1]; /* set last to last vector component */ in vorbis_floor0_decode()
1150 /* DEBUG: output lsp coeff in vorbis_floor0_decode()
[all...]
H A Dsipr16k.c31 #include "lsp.h"
40 * Convert an lsf vector into an lsp vector.
43 * @param lsp output lsp vector
45 static void lsf2lsp(const float *lsf, double *lsp) in lsf2lsp() argument
50 lsp[i] = cosf(lsf[i]); in lsf2lsp()
H A Dilbcdec.c344 static void lsf2lsp(int16_t *lsf, int16_t *lsp, int order) in lsf2lsp() argument
363 lsp[i] = cos_tbl[k] + (tmp >> 12); in lsf2lsp()
367 static void get_lsp_poly(int16_t *lsp, int32_t *f) in get_lsp_poly() argument
374 f[1] = lsp[0] * -1024; in get_lsp_poly()
383 tmp = ((high * lsp[k]) * 4) + (((low * lsp[k]) >> 15) * 4); in get_lsp_poly()
389 f[l] -= lsp[k] * (1 << 10); in get_lsp_poly()
397 int16_t lsp[10]; in lsf2poly() local
401 lsf2lsp(lsf, lsp, LPC_FILTERORDER); in lsf2poly()
403 get_lsp_poly(&lsp[ in lsf2poly()
[all...]
/third_party/ffmpeg/libavcodec/mips/
H A Dlsp_mips.h52 * Reference: libavcodec/lsp.c
64 static av_always_inline void ff_lsp2polyf_mips(const double *lsp, double *f, int lp_half_order) in ff_lsp2polyf_mips() argument
71 f[1] = -2 * lsp[0]; in ff_lsp2polyf_mips()
72 lsp -= 2; in ff_lsp2polyf_mips()
77 double val = lsp[2*i]; in ff_lsp2polyf_mips()
/third_party/libwebsockets/lib/roles/cgi/
H A Dcgi-server.c404 info.plsp = &wsi->http.cgi->lsp; in lws_cgi()
417 wsi->http.cgi->lsp = lws_spawn_piped(&info); in lws_cgi()
418 if (!wsi->http.cgi->lsp) { in lws_cgi()
430 wsi->user_space, NULL, (unsigned int)cgi->lsp->child_pid); in lws_cgi()
677 n = lws_get_socket_fd(wsi->http.cgi->lsp->stdwsi[LWS_STDOUT]); in lws_cgi_write_split_stdout_headers()
828 n = lws_get_socket_fd(wsi->http.cgi->lsp->stdwsi[LWS_STDOUT]); in lws_cgi_write_split_stdout_headers()
914 if (!wsi->http.cgi || !wsi->http.cgi->lsp) in lws_cgi_kill()
917 pid = wsi->http.cgi->lsp->child_pid; in lws_cgi_kill()
919 args.stdwsi = &wsi->http.cgi->lsp->stdwsi[0]; in lws_cgi_kill()
920 lws_spawn_piped_kill_child_process(wsi->http.cgi->lsp); in lws_cgi_kill()
[all...]
H A Dops-cgi.c61 if (!wsi->parent->http.cgi->lsp) { in rops_handle_POLLIN_cgi()
62 lwsl_wsi_notice(wsi, "stdwsi content with reaped lsp"); in rops_handle_POLLIN_cgi()
68 args.stdwsi = &wsi->parent->http.cgi->lsp->stdwsi[0]; in rops_handle_POLLIN_cgi()
132 if (wsi->parent && wsi->parent->http.cgi && wsi->parent->http.cgi->lsp) in rops_close_role_cgi()
133 lws_spawn_stdwsi_closed(wsi->parent->http.cgi->lsp, wsi); in rops_close_role_cgi()
H A Dprivate-lib-roles-cgi.h58 struct lws_spawn_piped *lsp; member
/third_party/ffmpeg/tests/fate/
H A Dvorbis.mak38 fate-vorbis-8: CMD = pcm -i $(TARGET_SAMPLES)/vorbis/lsp-test2_small.ogg
39 fate-vorbis-8: REF = $(SAMPLES)/vorbis/lsp-test2_small.pcm
42 fate-vorbis-9: CMD = pcm -i $(TARGET_SAMPLES)/vorbis/lsp-test3_small.ogg
43 fate-vorbis-9: REF = $(SAMPLES)/vorbis/lsp-test3_small.pcm
46 fate-vorbis-10: CMD = pcm -i $(TARGET_SAMPLES)/vorbis/lsp-test4_small.ogg
47 fate-vorbis-10: REF = $(SAMPLES)/vorbis/lsp-test4_small.pcm
50 fate-vorbis-11: CMD = pcm -i $(TARGET_SAMPLES)/vorbis/lsp-test_small.ogg
51 fate-vorbis-11: REF = $(SAMPLES)/vorbis/lsp-test_small.pcm
/third_party/libsnd/src/GSM610/
H A Dpreprocess.c44 int16_t msp, lsp ; in Gsm_Preprocess() local
82 lsp = L_z2 - arith_shift_left ((int32_t) msp, 15) ; /* gsm_L_sub (L_z2,(msp<<15)) ; */ in Gsm_Preprocess()
84 L_s2 += GSM_MULT_R (lsp, 32735) ; in Gsm_Preprocess()
/third_party/libwebsockets/lib/core-net/
H A Ddummy-callback.c337 if (!n && wsi->http.cgi && wsi->http.cgi->lsp && in lws_callback_http_dummy()
338 wsi->http.cgi->lsp->stdwsi[LWS_STDOUT]) in lws_callback_http_dummy()
340 wsi->http.cgi->lsp->stdwsi[LWS_STDOUT], 1); in lws_callback_http_dummy()
837 wsi->http.cgi->lsp->stdwsi[LWS_STDIN] = NULL; in lws_callback_http_dummy()
838 lws_spawn_stdwsi_closed(wsi->http.cgi->lsp, siwsi); in lws_callback_http_dummy()
/third_party/tzdata/
H A Dlocaltime.c411 union local_storage *lsp) in tzloadbody()
418 register union input_buffer *up = &lsp->u.u; in tzloadbody()
440 if (sizeof lsp->fullname - sizeof tzdirslash <= strlen(name)) in tzloadbody()
446 memcpy(lsp->fullname, tzdirslash, sizeof tzdirslash); in tzloadbody()
447 strcpy(lsp->fullname + sizeof tzdirslash, name); in tzloadbody()
459 name = lsp->fullname; in tzloadbody()
644 struct state *ts = &lsp->u.st; in tzloadbody()
774 union local_storage *lsp = malloc(sizeof *lsp); in tzload() local
775 if (!lsp) { in tzload()
410 tzloadbody(char const *name, struct state *sp, bool doextend, union local_storage *lsp) tzloadbody() argument
[all...]

Completed in 20 milliseconds

12