Home
last modified time | relevance | path

Searched refs:lsp (Results 1 – 25 of 38) sorted by relevance

12

/third_party/libwebsockets/lib/plat/unix/
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->sul_reap, lws_spawn_sul_reap, in lws_spawn_sul_reap()
63 __func__, lsp); in lws_spawn_sul_reap()
64 lsp->reap_retry_budget = 20; in lws_spawn_sul_reap()
[all …]
/third_party/libwebsockets/lib/plat/windows/
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->sul_reap, lws_spawn_sul_reap, in lws_spawn_sul_reap()
57 __func__, lsp); in lws_spawn_sul_reap()
58 lsp->reap_retry_budget = 20; in lws_spawn_sul_reap()
[all …]
/third_party/spirv-tools/utils/vscode/src/
Dlangsvr.go35 lsp "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/protocol" packageName
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.DidChangeWorkspaceFoldersPar…
127 func (s *server) Initialized(ctx context.Context, p *lsp.InitializedParams) error {
135 func (s *server) DidChangeConfiguration(ctx context.Context, p *lsp.DidChangeConfigurationParams) e…
139 func (s *server) DidOpen(ctx context.Context, p *lsp.DidOpenTextDocumentParams) error {
143 func (s *server) DidChange(ctx context.Context, p *lsp.DidChangeTextDocumentParams) error {
147 func (s *server) DidClose(ctx context.Context, p *lsp.DidCloseTextDocumentParams) error {
[all …]
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/
Dlangsvr.go35 lsp "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/protocol" packageName
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.DidChangeWorkspaceFoldersPar…
127 func (s *server) Initialized(ctx context.Context, p *lsp.InitializedParams) error {
135 func (s *server) DidChangeConfiguration(ctx context.Context, p *lsp.DidChangeConfigurationParams) e…
139 func (s *server) DidOpen(ctx context.Context, p *lsp.DidOpenTextDocumentParams) error {
143 func (s *server) DidChange(ctx context.Context, p *lsp.DidChangeTextDocumentParams) error {
147 func (s *server) DidClose(ctx context.Context, p *lsp.DidCloseTextDocumentParams) error {
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/
Dlangsvr.go35 lsp "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/protocol" packageName
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.DidChangeWorkspaceFoldersPar…
127 func (s *server) Initialized(ctx context.Context, p *lsp.InitializedParams) error {
135 func (s *server) DidChangeConfiguration(ctx context.Context, p *lsp.DidChangeConfigurationParams) e…
139 func (s *server) DidOpen(ctx context.Context, p *lsp.DidOpenTextDocumentParams) error {
143 func (s *server) DidChange(ctx context.Context, p *lsp.DidChangeTextDocumentParams) error {
147 func (s *server) DidClose(ctx context.Context, p *lsp.DidCloseTextDocumentParams) error {
[all …]
/third_party/ffmpeg/libavcodec/
Dlsp.c83 void ff_acelp_lsf2lsp(int16_t *lsp, const int16_t *lsf, int lp_order) in ff_acelp_lsf2lsp() argument
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()
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[2*i-2], FRAC_BITS) - f[j-2]; in lsp2poly()
119 f[1] -= lsp[2*i-2] * 256; in lsp2poly()
123 void ff_acelp_lsp2lpc(int16_t* lp, const int16_t* lsp, int lp_half_order) in ff_acelp_lsp2lpc() argument
129 lsp2poly(f1, lsp , lp_half_order); in ff_acelp_lsp2lpc()
[all …]
Dlsp.h63 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);
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);
109 void ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order);
128 void ff_lsp2polyf(const double *lsp, double *f, int lp_half_order);
Dtwinvq.c46 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()
250 static void rearrange_lsp(int order, float *lsp, float min_dist) in rearrange_lsp() argument
255 if (lsp[i] - lsp[i - 1] < min_dist) { in rearrange_lsp()
256 float avg = (lsp[i] + lsp[i - 1]) * 0.5; in rearrange_lsp()
258 lsp[i - 1] = avg - min_dist2; in rearrange_lsp()
259 lsp[i] = avg + min_dist2; in rearrange_lsp()
[all …]
Damrnbdec.c106 double lsp[4][LP_FILTER_ORDER]; ///< lsp vectors from current frame member
260 static void lsf2lsp_for_mode12k2(AMRContext *p, double lsp[LP_FILTER_ORDER], in lsf2lsp_for_mode12k2()
290 ff_acelp_lsf2lspd(lsp, lsf_q, LP_FILTER_ORDER); in lsf2lsp_for_mode12k2()
314 lsf2lsp_for_mode12k2(p, p->lsp[1], lsf_no_r, lsf_quantizer, 0, lsf_param[2] & 1, 0); in lsf2lsp_5()
315 lsf2lsp_for_mode12k2(p, p->lsp[3], lsf_no_r, lsf_quantizer, 2, lsf_param[2] & 1, 1); in lsf2lsp_5()
318 weighted_vector_sumd(p->lsp[0], p->prev_lsp_sub4, p->lsp[1], 0.5, 0.5, LP_FILTER_ORDER); in lsf2lsp_5()
319 weighted_vector_sumd(p->lsp[2], p->lsp[1] , p->lsp[3], 0.5, 0.5, LP_FILTER_ORDER); in lsf2lsp_5()
354 ff_acelp_lsf2lspd(p->lsp[3], lsf_q, LP_FILTER_ORDER); in lsf2lsp_3()
359 p->lsp[i-1][j] = p->prev_lsp_sub4[j] + in lsf2lsp_3()
360 (p->lsp[3][j] - p->prev_lsp_sub4[j]) * 0.25 * i; in lsf2lsp_3()
[all …]
Devrcdec.c59 uint16_t lsp[4]; ///< index into LSP codebook member
116 frame->lsp[0] = get_bits(gb, 6); in unpack_frame()
117 frame->lsp[1] = get_bits(gb, 6); in unpack_frame()
118 frame->lsp[2] = get_bits(gb, 9); in unpack_frame()
119 frame->lsp[3] = get_bits(gb, 7); in unpack_frame()
143 frame->lsp [0] = get_bits(gb, 7); in unpack_frame()
144 frame->lsp [1] = get_bits(gb, 7); in unpack_frame()
145 frame->lsp [2] = get_bits(gb, 8); in unpack_frame()
158 frame->lsp [0] = get_bits(gb, 4); in unpack_frame()
159 frame->lsp [1] = get_bits(gb, 4); in unpack_frame()
[all …]
Dg723_1enc.c247 static void lpc2lsp(int16_t *lpc, int16_t *prev_lsp, int16_t *lsp) in lpc2lsp() argument
259 lsp[i] = (lpc[i] * bandwidth_expand[i] + (1 << 14)) >> 15; in lpc2lsp()
267 f[2 * i + 2] = -f[2 * i] - ((lsp[i] + lsp[LPC_ORDER - 1 - i]) << 12); in lpc2lsp()
269 f[2 * i + 3] = f[2 * i + 1] - ((lsp[i] - lsp[LPC_ORDER - 1 - i]) << 12); in lpc2lsp()
312 lsp[count++] = ((i - 1) << 7) + (abs_prev >> 1) / (sum >> 16); in lpc2lsp()
331 memcpy(lsp, prev_lsp, LPC_ORDER * sizeof(int16_t)); in lpc2lsp()
352 error = ff_g723_1_dot_product(lsp + (offset), temp, size) << 1; \
367 static void lsp_quantize(uint8_t *lsp_index, int16_t *lsp, int16_t *prev_lsp) in lsp_quantize() argument
374 weight[0] = (1 << 20) / (lsp[1] - lsp[0]); in lsp_quantize()
376 (lsp[LPC_ORDER - 1] - lsp[LPC_ORDER - 2]); in lsp_quantize()
[all …]
Dg729dec.c116 int16_t *lsp[2]; ///< pointers to lsp_buf member
378 ctx->lsp[0] = ctx->lsp_buf[0]; in decoder_init()
379 ctx->lsp[1] = ctx->lsp_buf[1]; in decoder_init()
380 memcpy(ctx->lsp[0], lsp_init, 10 * sizeof(int16_t)); in decoder_init()
486 ff_acelp_lsf2lsp(ctx->lsp[1], ctx->lsfq, 10); in decode_frame()
488 ff_acelp_lp_decode(&lp[0][0], &lp[1][0], ctx->lsp[1], ctx->lsp[0], 10); in decode_frame()
490 FFSWAP(int16_t*, ctx->lsp[1], ctx->lsp[0]); in decode_frame()
Dopus_silk.c201 static void silk_lsp2poly(const int32_t lsp[16], int32_t pol[16], int half_order) in silk_lsp2poly()
206 pol[1] = -lsp[0]; in silk_lsp2poly()
209 pol[i + 1] = pol[i - 1] * 2 - ROUND_MULL(lsp[2 * i], pol[i], 16); in silk_lsp2poly()
211 pol[j] += pol[j - 2] - ROUND_MULL(lsp[2 * i], pol[j - 1], 16); in silk_lsp2poly()
213 pol[1] -= lsp[2 * i]; in silk_lsp2poly()
220 int32_t lsp[16]; // Q17; 2*cos(LSF) in silk_lsf2lpc() local
232 lsp[k2] = ff_silk_cosine[index] * 256; in silk_lsf2lpc()
233 lsp[k2] += (ff_silk_cosine[index + 1] - ff_silk_cosine[index]) * offset; in silk_lsf2lpc()
234 lsp[k2] = (lsp[k2] + 4) >> 3; in silk_lsf2lpc()
237 silk_lsp2poly(lsp , p, order >> 1); in silk_lsf2lpc()
[all …]
Dvorbisdec.c79 float *lsp; member
218 av_freep(&vc->floors[i].data.t0.lsp); in vorbis_free()
653 floor_setup->data.t0.lsp = in vorbis_parse_setup_hdr_floors()
655 sizeof(*floor_setup->data.t0.lsp)); in vorbis_parse_setup_hdr_floors()
656 if (!floor_setup->data.t0.lsp) in vorbis_parse_setup_hdr_floors()
1099 float *lsp = vf->lsp; in vorbis_floor0_decode() local
1138 lsp[lsp_len+idx] = codebook.codevectors[vec_off+idx] + last; in vorbis_floor0_decode()
1139 last = lsp[lsp_len+idx-1]; /* set last to last vector component */ in vorbis_floor0_decode()
1147 ff_dlog(NULL, "floor0 dec: coeff at %d is %f\n", idx, lsp[idx]); in vorbis_floor0_decode()
1157 lsp[i] = 2.0f * cos(lsp[i]); in vorbis_floor0_decode()
[all …]
Dilbcdec.c342 static void lsf2lsp(int16_t *lsf, int16_t *lsp, int order) in lsf2lsp() argument
361 lsp[i] = cos_tbl[k] + (tmp >> 12); in lsf2lsp()
365 static void get_lsp_poly(int16_t *lsp, int32_t *f) in get_lsp_poly() argument
372 f[1] = lsp[0] * -1024; in get_lsp_poly()
381 tmp = ((high * lsp[k]) * 4) + (((low * lsp[k]) >> 15) * 4); in get_lsp_poly()
387 f[l] -= lsp[k] * (1 << 10); in get_lsp_poly()
395 int16_t lsp[10]; in lsf2poly() local
399 lsf2lsp(lsf, lsp, LPC_FILTERORDER); in lsf2poly()
401 get_lsp_poly(&lsp[0], f[0]); in lsf2poly()
402 get_lsp_poly(&lsp[1], f[1]); in lsf2poly()
/third_party/ffmpeg/libavcodec/mips/
Dlsp_mips.h61 static av_always_inline void ff_lsp2polyf_mips(const double *lsp, double *f, int lp_half_order) in ff_lsp2polyf_mips() argument
68 f[1] = -2 * lsp[0]; in ff_lsp2polyf_mips()
69 lsp -= 2; in ff_lsp2polyf_mips()
74 double val = lsp[2*i]; in ff_lsp2polyf_mips()
/third_party/ffmpeg/tests/fate/
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/libwebsockets/lib/roles/cgi/
Dcgi-server.c402 info.plsp = &wsi->http.cgi->lsp; in lws_cgi()
415 wsi->http.cgi->lsp = lws_spawn_piped(&info); in lws_cgi()
416 if (!wsi->http.cgi->lsp) { in lws_cgi()
428 wsi->user_space, NULL, (unsigned int)cgi->lsp->child_pid); in lws_cgi()
675 n = lws_get_socket_fd(wsi->http.cgi->lsp->stdwsi[LWS_STDOUT]); in lws_cgi_write_split_stdout_headers()
826 n = lws_get_socket_fd(wsi->http.cgi->lsp->stdwsi[LWS_STDOUT]); in lws_cgi_write_split_stdout_headers()
912 if (!wsi->http.cgi || !wsi->http.cgi->lsp) in lws_cgi_kill()
915 pid = wsi->http.cgi->lsp->child_pid; in lws_cgi_kill()
917 args.stdwsi = &wsi->http.cgi->lsp->stdwsi[0]; in lws_cgi_kill()
918 lws_spawn_piped_kill_child_process(wsi->http.cgi->lsp); in lws_cgi_kill()
[all …]
Dops-cgi.c61 if (!wsi->parent->http.cgi->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()
Dprivate-lib-roles-cgi.h58 struct lws_spawn_piped *lsp; member
/third_party/libsnd/src/GSM610/
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/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/
DREADME.md1 This directory contains code forked from https://github.com/golang/tools/tree/master/internal/lsp.
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/lsp/
DREADME.md1 This directory contains code forked from https://github.com/golang/tools/tree/master/internal/lsp.
/third_party/spirv-tools/utils/vscode/src/lsp/
DREADME.md1 This directory contains code forked from https://github.com/golang/tools/tree/master/internal/lsp.
/third_party/libwebsockets/lib/core-net/
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()
835 wsi->http.cgi->lsp->stdwsi[LWS_STDIN] = NULL; in lws_callback_http_dummy()
836 lws_spawn_stdwsi_closed(wsi->http.cgi->lsp, siwsi); in lws_callback_http_dummy()

12