/third_party/libwebsockets/lib/cose/ |
H A D | cose_key.c | 305 cb_cose_key(struct lecp_ctx *ctx, char reason) in cb_cose_key() argument 308 (struct lws_cose_key_parse_state *)ctx->user; in cb_cose_key() 316 ctx->path, ctx->st[ctx->sp - 1].ordinal, in cb_cose_key() 317 ctx->pst[ctx->pst_sp].ppos); in cb_cose_key() 326 if (cps->pkey_set && ctx->pst[ctx->pst_sp].ppos == 2) { in cb_cose_key() 341 if (cps->pkey_set && ctx in cb_cose_key() 830 struct lws_genrsa_ctx ctx; lws_cose_key_generate() local 866 struct lws_genec_ctx ctx; lws_cose_key_generate() local 912 struct lecp_ctx ctx; lws_cose_key_import() local 978 lws_cose_key_export(lws_cose_key_t *ck, lws_lec_pctx_t *ctx, int flags) lws_cose_key_export() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | pmeth_check.c | 28 static int try_provided_check(EVP_PKEY_CTX *ctx, int selection, int checktype) in try_provided_check() argument 33 if (evp_pkey_ctx_is_legacy(ctx)) in try_provided_check() 36 keymgmt = ctx->keymgmt; in try_provided_check() 37 keydata = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx, in try_provided_check() 38 &keymgmt, ctx->propquery); in try_provided_check() 47 static int evp_pkey_public_check_combined(EVP_PKEY_CTX *ctx, int checktype) in evp_pkey_public_check_combined() argument 49 EVP_PKEY *pkey = ctx->pkey; in evp_pkey_public_check_combined() 57 if ((ok = try_provided_check(ctx, OSSL_KEYMGMT_SELECT_PUBLIC_KEY, in evp_pkey_public_check_combined() 67 if (ctx in evp_pkey_public_check_combined() 81 EVP_PKEY_public_check(EVP_PKEY_CTX *ctx) EVP_PKEY_public_check() argument 86 EVP_PKEY_public_check_quick(EVP_PKEY_CTX *ctx) EVP_PKEY_public_check_quick() argument 91 evp_pkey_param_check_combined(EVP_PKEY_CTX *ctx, int checktype) evp_pkey_param_check_combined() argument 126 EVP_PKEY_param_check(EVP_PKEY_CTX *ctx) EVP_PKEY_param_check() argument 131 EVP_PKEY_param_check_quick(EVP_PKEY_CTX *ctx) EVP_PKEY_param_check_quick() argument 136 EVP_PKEY_private_check(EVP_PKEY_CTX *ctx) EVP_PKEY_private_check() argument 155 EVP_PKEY_check(EVP_PKEY_CTX *ctx) EVP_PKEY_check() argument 160 EVP_PKEY_pairwise_check(EVP_PKEY_CTX *ctx) EVP_PKEY_pairwise_check() argument [all...] |
/third_party/openssl/crypto/evp/ |
H A D | pmeth_check.c | 28 static int try_provided_check(EVP_PKEY_CTX *ctx, int selection, int checktype) in try_provided_check() argument 33 if (evp_pkey_ctx_is_legacy(ctx)) in try_provided_check() 36 keymgmt = ctx->keymgmt; in try_provided_check() 37 keydata = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx, in try_provided_check() 38 &keymgmt, ctx->propquery); in try_provided_check() 47 static int evp_pkey_public_check_combined(EVP_PKEY_CTX *ctx, int checktype) in evp_pkey_public_check_combined() argument 49 EVP_PKEY *pkey = ctx->pkey; in evp_pkey_public_check_combined() 57 if ((ok = try_provided_check(ctx, OSSL_KEYMGMT_SELECT_PUBLIC_KEY, in evp_pkey_public_check_combined() 67 if (ctx in evp_pkey_public_check_combined() 81 EVP_PKEY_public_check(EVP_PKEY_CTX *ctx) EVP_PKEY_public_check() argument 86 EVP_PKEY_public_check_quick(EVP_PKEY_CTX *ctx) EVP_PKEY_public_check_quick() argument 91 evp_pkey_param_check_combined(EVP_PKEY_CTX *ctx, int checktype) evp_pkey_param_check_combined() argument 126 EVP_PKEY_param_check(EVP_PKEY_CTX *ctx) EVP_PKEY_param_check() argument 131 EVP_PKEY_param_check_quick(EVP_PKEY_CTX *ctx) EVP_PKEY_param_check_quick() argument 136 EVP_PKEY_private_check(EVP_PKEY_CTX *ctx) EVP_PKEY_private_check() argument 155 EVP_PKEY_check(EVP_PKEY_CTX *ctx) EVP_PKEY_check() argument 160 EVP_PKEY_pairwise_check(EVP_PKEY_CTX *ctx) EVP_PKEY_pairwise_check() argument [all...] |
/third_party/libcoap/tests/ |
H A D | test_sendqueue.c | 17 static coap_context_t *ctx; /* Holds the coap context for most tests */ variable 44 int result = coap_insert_node(&ctx->sendqueue, node[1]); in t_sendqueue1() 47 CU_ASSERT_PTR_NOT_NULL(ctx->sendqueue); in t_sendqueue1() 48 CU_ASSERT_PTR_EQUAL(ctx->sendqueue, node[1]); in t_sendqueue1() 56 result = coap_insert_node(&ctx->sendqueue, node[2]); in t_sendqueue2() 59 CU_ASSERT_PTR_EQUAL(ctx->sendqueue, node[1]); in t_sendqueue2() 60 CU_ASSERT_PTR_EQUAL(ctx->sendqueue->next, node[2]); in t_sendqueue2() 62 CU_ASSERT(ctx->sendqueue->t == timestamp[1]); in t_sendqueue2() 70 result = coap_insert_node(&ctx->sendqueue, node[3]); in t_sendqueue3() 74 CU_ASSERT_PTR_EQUAL(ctx in t_sendqueue3() [all...] |
/third_party/node/deps/openssl/openssl/crypto/modes/ |
H A D | siv128.c | 89 __owur static ossl_inline int siv128_do_s2v_p(SIV128_CONTEXT *ctx, SIV_BLOCK *out, in siv128_do_s2v_p() argument 97 mac_ctx = EVP_MAC_CTX_dup(ctx->mac_ctx_init); in siv128_do_s2v_p() 105 siv128_xorblock(&t, &ctx->d); in siv128_do_s2v_p() 112 siv128_dbl(&ctx->d); in siv128_do_s2v_p() 113 siv128_xorblock(&t, &ctx->d); in siv128_do_s2v_p() 129 __owur static ossl_inline int siv128_do_encrypt(EVP_CIPHER_CTX *ctx, unsigned char *out, in siv128_do_encrypt() argument 135 if (!EVP_CipherInit_ex(ctx, NULL, NULL, NULL, icv->byte, 1)) in siv128_do_encrypt() 137 return EVP_EncryptUpdate(ctx, out, &out_len, in, out_len); in siv128_do_encrypt() 147 SIV128_CONTEXT *ctx; in ossl_siv128_new() local 150 if ((ctx in ossl_siv128_new() 163 ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen, const EVP_CIPHER *cbc, const EVP_CIPHER *ctr, OSSL_LIB_CTX *libctx, const char *propq) ossl_siv128_init() argument 246 ossl_siv128_aad(SIV128_CONTEXT *ctx, const unsigned char *aad, size_t len) ossl_siv128_aad() argument 273 ossl_siv128_encrypt(SIV128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len) ossl_siv128_encrypt() argument 300 ossl_siv128_decrypt(SIV128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len) ossl_siv128_decrypt() argument 336 ossl_siv128_finish(SIV128_CONTEXT *ctx) ossl_siv128_finish() argument 344 ossl_siv128_set_tag(SIV128_CONTEXT *ctx, const unsigned char *tag, size_t len) ossl_siv128_set_tag() argument 357 ossl_siv128_get_tag(SIV128_CONTEXT *ctx, unsigned char *tag, size_t len) ossl_siv128_get_tag() argument 370 ossl_siv128_cleanup(SIV128_CONTEXT *ctx) ossl_siv128_cleanup() argument 387 ossl_siv128_speed(SIV128_CONTEXT *ctx, int arg) ossl_siv128_speed() argument [all...] |
/third_party/openssl/crypto/modes/ |
H A D | siv128.c | 89 __owur static ossl_inline int siv128_do_s2v_p(SIV128_CONTEXT *ctx, SIV_BLOCK *out, in siv128_do_s2v_p() argument 97 mac_ctx = EVP_MAC_CTX_dup(ctx->mac_ctx_init); in siv128_do_s2v_p() 105 siv128_xorblock(&t, &ctx->d); in siv128_do_s2v_p() 112 siv128_dbl(&ctx->d); in siv128_do_s2v_p() 113 siv128_xorblock(&t, &ctx->d); in siv128_do_s2v_p() 129 __owur static ossl_inline int siv128_do_encrypt(EVP_CIPHER_CTX *ctx, unsigned char *out, in siv128_do_encrypt() argument 135 if (!EVP_CipherInit_ex(ctx, NULL, NULL, NULL, icv->byte, 1)) in siv128_do_encrypt() 137 return EVP_EncryptUpdate(ctx, out, &out_len, in, out_len); in siv128_do_encrypt() 147 SIV128_CONTEXT *ctx; in ossl_siv128_new() local 150 if ((ctx in ossl_siv128_new() 163 ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen, const EVP_CIPHER *cbc, const EVP_CIPHER *ctr, OSSL_LIB_CTX *libctx, const char *propq) ossl_siv128_init() argument 246 ossl_siv128_aad(SIV128_CONTEXT *ctx, const unsigned char *aad, size_t len) ossl_siv128_aad() argument 273 ossl_siv128_encrypt(SIV128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len) ossl_siv128_encrypt() argument 300 ossl_siv128_decrypt(SIV128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len) ossl_siv128_decrypt() argument 336 ossl_siv128_finish(SIV128_CONTEXT *ctx) ossl_siv128_finish() argument 344 ossl_siv128_set_tag(SIV128_CONTEXT *ctx, const unsigned char *tag, size_t len) ossl_siv128_set_tag() argument 357 ossl_siv128_get_tag(SIV128_CONTEXT *ctx, unsigned char *tag, size_t len) ossl_siv128_get_tag() argument 370 ossl_siv128_cleanup(SIV128_CONTEXT *ctx) ossl_siv128_cleanup() argument 387 ossl_siv128_speed(SIV128_CONTEXT *ctx, int arg) ossl_siv128_speed() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
H A D | crypto_nettle.c | 31 struct des_ctx ctx; in des_encrypt() local 44 nettle_des_set_key(&ctx, pkey); in des_encrypt() 45 nettle_des_encrypt(&ctx, DES_BLOCK_SIZE, cypher, clear); in des_encrypt() 46 os_memset(&ctx, 0, sizeof(ctx)); in des_encrypt() 54 void *ctx; in nettle_digest_vector() local 60 ctx = os_malloc(alg->context_size); in nettle_digest_vector() 61 if (!ctx) in nettle_digest_vector() 63 alg->init(ctx); in nettle_digest_vector() 65 alg->update(ctx, le in nettle_digest_vector() 111 struct hmac_md5_ctx ctx; hmac_md5_vector() local 136 struct hmac_sha1_ctx ctx; hmac_sha1_vector() local 163 struct hmac_sha256_ctx ctx; hmac_sha256_vector() local 192 struct hmac_sha384_ctx ctx; hmac_sha384_vector() local 221 struct hmac_sha512_ctx ctx; hmac_sha512_vector() local 247 struct aes_ctx *ctx; aes_encrypt_init() local 261 aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) aes_encrypt() argument 269 aes_encrypt_deinit(void *ctx) aes_encrypt_deinit() argument 278 struct aes_ctx *ctx; aes_decrypt_init() local 292 aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) aes_decrypt() argument 300 aes_decrypt_deinit(void *ctx) aes_decrypt_deinit() argument 415 struct crypto_cipher *ctx; crypto_cipher_init() local 436 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) crypto_cipher_encrypt() argument 451 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) crypto_cipher_decrypt() argument 466 crypto_cipher_deinit(struct crypto_cipher *ctx) crypto_cipher_deinit() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | crypto_nettle.c | 31 struct des_ctx ctx; in des_encrypt() local 44 nettle_des_set_key(&ctx, pkey); in des_encrypt() 45 nettle_des_encrypt(&ctx, DES_BLOCK_SIZE, cypher, clear); in des_encrypt() 46 os_memset(&ctx, 0, sizeof(ctx)); in des_encrypt() 54 void *ctx; in nettle_digest_vector() local 60 ctx = os_malloc(alg->context_size); in nettle_digest_vector() 61 if (!ctx) in nettle_digest_vector() 63 alg->init(ctx); in nettle_digest_vector() 65 alg->update(ctx, le in nettle_digest_vector() 111 struct hmac_md5_ctx ctx; hmac_md5_vector() local 136 struct hmac_sha1_ctx ctx; hmac_sha1_vector() local 163 struct hmac_sha256_ctx ctx; hmac_sha256_vector() local 192 struct hmac_sha384_ctx ctx; hmac_sha384_vector() local 221 struct hmac_sha512_ctx ctx; hmac_sha512_vector() local 247 struct aes_ctx *ctx; aes_encrypt_init() local 261 aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) aes_encrypt() argument 269 aes_encrypt_deinit(void *ctx) aes_encrypt_deinit() argument 278 struct aes_ctx *ctx; aes_decrypt_init() local 292 aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) aes_decrypt() argument 300 aes_decrypt_deinit(void *ctx) aes_decrypt_deinit() argument 415 struct crypto_cipher *ctx; crypto_cipher_init() local 436 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) crypto_cipher_encrypt() argument 451 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) crypto_cipher_decrypt() argument 466 crypto_cipher_deinit(struct crypto_cipher *ctx) crypto_cipher_deinit() argument [all...] |
/third_party/mesa3d/src/intel/tools/ |
H A D | aubinator_viewer_decoder.cpp | 31 aub_viewer_decode_ctx_init(struct aub_viewer_decode_ctx *ctx, in aub_viewer_decode_ctx_init() argument 40 memset(ctx, 0, sizeof(*ctx)); in aub_viewer_decode_ctx_init() 42 ctx->get_bo = get_bo; in aub_viewer_decode_ctx_init() 43 ctx->get_state_size = get_state_size; in aub_viewer_decode_ctx_init() 44 ctx->user_data = user_data; in aub_viewer_decode_ctx_init() 45 ctx->devinfo = devinfo; in aub_viewer_decode_ctx_init() 46 ctx->engine = I915_ENGINE_CLASS_RENDER; in aub_viewer_decode_ctx_init() 48 ctx->cfg = cfg; in aub_viewer_decode_ctx_init() 49 ctx in aub_viewer_decode_ctx_init() 54 aub_viewer_print_group(struct aub_viewer_decode_ctx *ctx, struct intel_group *group, uint64_t address, const void *map) aub_viewer_print_group() argument 95 ctx_get_bo(struct aub_viewer_decode_ctx *ctx, bool ppgtt, uint64_t addr) ctx_get_bo() argument 125 update_count(struct aub_viewer_decode_ctx *ctx, uint32_t offset_from_dsba, unsigned element_dwords, unsigned guess) update_count() argument 143 ctx_disassemble_program(struct aub_viewer_decode_ctx *ctx, uint32_t ksp, const char *type) ctx_disassemble_program() argument 161 handle_state_base_address(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) handle_state_base_address() argument 198 dump_binding_table(struct aub_viewer_decode_ctx *ctx, uint32_t offset, int count) dump_binding_table() argument 251 dump_samplers(struct aub_viewer_decode_ctx *ctx, uint32_t offset, int count) dump_samplers() argument 289 handle_media_interface_descriptor_load(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) handle_media_interface_descriptor_load() argument 353 handle_3dstate_vertex_buffers(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) handle_3dstate_vertex_buffers() argument 418 handle_3dstate_index_buffer(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) handle_3dstate_index_buffer() argument 465 decode_single_ksp(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_single_ksp() argument 505 decode_ps_kernels(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_ps_kernels() argument 552 decode_3dstate_constant(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_3dstate_constant() argument 605 decode_3dstate_binding_table_pointers(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_3dstate_binding_table_pointers() argument 613 decode_3dstate_sampler_state_pointers(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_3dstate_sampler_state_pointers() argument 621 decode_3dstate_sampler_state_pointers_gfx6(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_3dstate_sampler_state_pointers_gfx6() argument 641 decode_dynamic_state_pointers(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p, const char *struct_type, int count) decode_dynamic_state_pointers() argument 693 decode_3dstate_viewport_state_pointers_cc(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_3dstate_viewport_state_pointers_cc() argument 701 decode_3dstate_viewport_state_pointers_sf_clip(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_3dstate_viewport_state_pointers_sf_clip() argument 709 decode_3dstate_blend_state_pointers(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_3dstate_blend_state_pointers() argument 717 decode_3dstate_cc_state_pointers(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_3dstate_cc_state_pointers() argument 725 decode_3dstate_scissor_state_pointers(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_3dstate_scissor_state_pointers() argument 733 decode_load_register_imm(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_load_register_imm() argument 749 decode_3dprimitive(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_3dprimitive() argument 760 handle_urb(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) handle_urb() argument 783 handle_urb_read(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) handle_urb_read() argument 807 handle_urb_constant(struct aub_viewer_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) handle_urb_constant() argument 897 aub_viewer_render_batch(struct aub_viewer_decode_ctx *ctx, const void *_batch, uint32_t batch_size, uint64_t batch_addr, bool from_ring) aub_viewer_render_batch() argument [all...] |
/third_party/ffmpeg/libavdevice/ |
H A D | decklink_common.cpp | 125 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in decklink_select_input() local 127 int64_t bmd_input = (cfg_id == bmdDeckLinkConfigAudioInputConnection) ? (int64_t)ctx->audio_input : (int64_t)ctx->video_input; in decklink_select_input() 133 res = ctx->attr->GetInt(attr_id, &supported_connections); in decklink_select_input() 142 res = ctx->cfg->SetInt(cfg_id, bmd_input); in decklink_select_input() 167 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in ff_decklink_set_configs() local 170 if (ctx->duplex_mode) { in ff_decklink_set_configs() 175 if (ctx in ff_decklink_set_configs() 264 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; ff_decklink_set_format() local 490 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; ff_decklink_list_formats() local 541 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; ff_decklink_cleanup() local 558 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; ff_decklink_init_device() local [all...] |
/third_party/skia/third_party/externals/tint/src/transform/ |
H A D | canonicalize_entry_point_io.cc | 94 CloneContext& ctx; member 126 : ctx(context), in State() 129 func_sem(ctx.src->Sem().Get(function)) {} in State() 138 new_decorations.push_back(ctx.Clone(deco)); in CloneShaderIOAttributes() 148 wrapper_struct_param_name = ctx.dst->Sym(); in InputStructSymbol() 161 auto* ast_type = CreateASTTypeFor(ctx, type); in AddInput() 171 attributes.push_back(ctx.dst->Interpolate( in AddInput() 177 ctx.dst->Disable(ast::DisabledValidation::kIgnoreStorageClass)); in AddInput() 180 auto symbol = ctx.dst->Symbols().New(name); in AddInput() 181 const ast::Expression* value = ctx in AddInput() 551 Run(CloneContext& ctx, const DataMap& inputs, DataMap&) Run() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | libzvbi-teletextdec.c | 150 static char *create_ass_text(TeletextContext *ctx, const char *text) in create_ass_text() argument 161 dialog = ff_ass_get_dialog(ctx->readorder++, 0, NULL, NULL, buf.str); in create_ass_text() 167 static int gen_sub_text(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top) in gen_sub_text() argument 182 av_log(ctx, AV_LOG_ERROR, "vbi_print error\n"); in gen_sub_text() 190 if (ctx->chop_spaces) { in gen_sub_text() 220 sub_rect->ass = create_ass_text(ctx, buf.str); in gen_sub_text() 226 av_log(ctx, AV_LOG_DEBUG, "subtext:%s:txetbus\n", sub_rect->ass); in gen_sub_text() 295 static int gen_sub_ass(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top) in gen_sub_ass() argument 304 int is_subtitle_page = ctx->subtitle_map[page->pgno & 0x7ff]; in gen_sub_ass() 332 ctx in gen_sub_ass() 412 fix_transparency(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top, int resx, int resy) fix_transparency() argument 451 gen_sub_bitmap(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top) gen_sub_bitmap() argument 510 TeletextContext *ctx = user_data; handler() local 584 slice_to_vbi_lines(TeletextContext *ctx, const uint8_t *buf, int size) slice_to_vbi_lines() argument 643 TeletextContext *ctx = avctx->priv_data; teletext_decode_frame() local 728 TeletextContext *ctx = avctx->priv_data; teletext_init_decoder() local 765 TeletextContext *ctx = avctx->priv_data; teletext_close_decoder() local [all...] |
H A D | amrwbdec.c | 120 AMRWBContext *ctx = &s->ch[ch]; in amrwb_decode_init() local 122 av_lfg_init(&ctx->prng, 1); in amrwb_decode_init() 124 ctx->excitation = &ctx->excitation_buf[AMRWB_P_DELAY_MAX + LP_ORDER + 1]; in amrwb_decode_init() 125 ctx->first_frame = 1; in amrwb_decode_init() 128 ctx->isf_past_final[i] = isf_init[i] * (1.0f / (1 << 15)); in amrwb_decode_init() 131 ctx->prediction_error[i] = MIN_ENERGY; in amrwb_decode_init() 133 ff_acelp_filter_init(&ctx->acelpf_ctx); in amrwb_decode_init() 134 ff_acelp_vectors_init(&ctx->acelpv_ctx); in amrwb_decode_init() 135 ff_celp_filter_init(&ctx in amrwb_decode_init() 151 decode_mime_header(AMRWBContext *ctx, const uint8_t *buf) decode_mime_header() argument 329 decode_pitch_vector(AMRWBContext *ctx, const AMRWBSubFrame *amr_subframe, const int subframe) decode_pitch_vector() argument 592 pitch_sharpening(AMRWBContext *ctx, float *fixed_vector) pitch_sharpening() argument 614 voice_factor(float *p_vector, float p_gain, float *f_vector, float f_gain, CELPMContext *ctx) voice_factor() argument 638 anti_sparseness(AMRWBContext *ctx, float *fixed_vector, float *buf) anti_sparseness() argument 781 synthesis(AMRWBContext *ctx, float *lpc, float *excitation, float fixed_gain, const float *fixed_vector, float *samples) synthesis() argument 839 upsample_5_4(float *out, const float *in, int o_size, CELPMContext *ctx) upsample_5_4() argument 871 find_hb_gain(AMRWBContext *ctx, const float *synth, uint16_t hb_idx, uint8_t vad) find_hb_gain() argument 901 scaled_hb_excitation(AMRWBContext *ctx, float *hb_exc, const float *synth_exc, float hb_gain) scaled_hb_excitation() argument 1026 hb_synthesis(AMRWBContext *ctx, int subframe, float *samples, const float *exc, const float *isf, const float *isf_past) hb_synthesis() argument 1089 update_sub_state(AMRWBContext *ctx) update_sub_state() argument 1119 AMRWBContext *ctx = &s->ch[ch]; amrwb_decode_frame() local [all...] |
H A D | webp_parser.c | 41 WebPParseContext *ctx = s->priv_data; in webp_parse() local 42 uint64_t state = ctx->pc.state64; in webp_parse() 50 if (ctx->pc.frame_start_found <= 8) { in webp_parse() 53 if (ctx->pc.frame_start_found == 0) { in webp_parse() 55 ctx->fsize = av_bswap32(state); in webp_parse() 56 if (ctx->fsize > 15 && ctx->fsize <= UINT32_MAX - 10) { in webp_parse() 57 ctx->pc.frame_start_found = 1; in webp_parse() 58 ctx->fsize += 8; in webp_parse() 61 } else if (ctx in webp_parse() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_dump.c | 58 void (*dump_printf)(struct dump_ctx *ctx, const char *format, ...); 62 dump_ctx_printf(struct dump_ctx *ctx, const char *format, ...) in dump_ctx_printf() argument 65 (void)ctx; in dump_ctx_printf() 67 if (ctx->file) in dump_ctx_printf() 68 vfprintf(ctx->file, format, ap); in dump_ctx_printf() 76 struct dump_ctx *ctx, in dump_enum() 82 ctx->dump_printf( ctx, "%u", e ); in dump_enum() 84 ctx->dump_printf( ctx, " in dump_enum() 75 dump_enum( struct dump_ctx *ctx, uint e, const char **enums, uint enum_count ) dump_enum() argument 111 _dump_register_src( struct dump_ctx *ctx, const struct tgsi_full_src_register *src ) _dump_register_src() argument 168 _dump_register_dst( struct dump_ctx *ctx, const struct tgsi_full_dst_register *dst ) _dump_register_dst() argument 223 _dump_writemask( struct dump_ctx *ctx, uint writemask ) _dump_writemask() argument 246 struct dump_ctx *ctx = (struct dump_ctx *)iter; dump_imm_data() local 302 struct dump_ctx *ctx = (struct dump_ctx *)iter; iter_declaration() local 454 struct dump_ctx ctx; tgsi_dump_declaration() local 468 struct dump_ctx *ctx = (struct dump_ctx *)iter; iter_property() local 506 struct dump_ctx ctx; tgsi_dump_property() local 519 struct dump_ctx *ctx = (struct dump_ctx *) iter; iter_immediate() local 538 struct dump_ctx ctx; tgsi_dump_immediate() local 551 struct dump_ctx *ctx = (struct dump_ctx *) iter; iter_instruction() local 689 struct dump_ctx ctx; tgsi_dump_instruction() local 706 struct dump_ctx *ctx = (struct dump_ctx *) iter; prolog() local 713 init_dump_ctx(struct dump_ctx *ctx, uint flags) init_dump_ctx() argument 730 struct dump_ctx ctx; tgsi_dump_to_file() local 757 str_dump_ctx_printf(struct dump_ctx *ctx, const char *format, ...) str_dump_ctx_printf() argument 789 struct str_dump_ctx ctx; tgsi_dump_str() local 814 struct str_dump_ctx ctx; tgsi_dump_instruction_str() local [all...] |
/third_party/mesa3d/src/gallium/frontends/dri/ |
H A D | dri_context.c | 54 struct dri_context *ctx = NULL; in dri_create_context() local 147 ctx = CALLOC_STRUCT(dri_context); in dri_create_context() 148 if (ctx == NULL) { in dri_create_context() 153 cPriv->driverPrivate = ctx; in dri_create_context() 154 ctx->cPriv = cPriv; in dri_create_context() 155 ctx->sPriv = sPriv; in dri_create_context() 169 ctx->st = stapi->create_context(stapi, &screen->base, &attribs, &ctx_err, in dri_create_context() 171 if (ctx->st == NULL) { in dri_create_context() 197 ctx->st->st_manager_private = (void *) ctx; in dri_create_context() 239 struct dri_context *ctx = dri_context(cPriv); dri_destroy_context() local 264 struct dri_context *ctx = dri_context(cPriv); dri_unbind_context() local 290 struct dri_context *ctx = dri_context(cPriv); dri_make_current() local [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | shared.c | 51 free_shared_state(struct gl_context *ctx, struct gl_shared_state *shared); 63 _mesa_alloc_shared_state(struct gl_context *ctx) in _mesa_alloc_shared_state() argument 80 ctx->Driver.NewProgram(ctx, MESA_SHADER_VERTEX, 0, true); in _mesa_alloc_shared_state() 82 ctx->Driver.NewProgram(ctx, MESA_SHADER_FRAGMENT, 0, true); in _mesa_alloc_shared_state() 85 shared->DefaultFragmentShader = _mesa_new_ati_fragment_shader(ctx, 0); in _mesa_alloc_shared_state() 121 shared->DefaultTex[i] = _mesa_new_texture_object(ctx, 0, targets[i]); in _mesa_alloc_shared_state() 156 struct gl_context *ctx = (struct gl_context *) userData; in delete_displaylist_cb() local 157 _mesa_delete_list(ctx, lis in delete_displaylist_cb() 168 struct gl_context *ctx = (struct gl_context *) userData; delete_bitmap_atlas_cb() local 180 struct gl_context *ctx = (struct gl_context *) userData; delete_texture_cb() local 192 struct gl_context *ctx = (struct gl_context *) userData; delete_program_cb() local 209 struct gl_context *ctx = (struct gl_context *) userData; delete_fragshader_cb() local 221 struct gl_context *ctx = (struct gl_context *) userData; delete_bufferobj_cb() local 235 struct gl_context *ctx = (struct gl_context *) userData; free_shader_program_data_cb() local 251 struct gl_context *ctx = (struct gl_context *) userData; delete_shader_cb() local 291 struct gl_context *ctx = (struct gl_context *) userData; delete_renderbuffer_cb() local 305 struct gl_context *ctx = (struct gl_context *) userData; delete_sampler_object_cb() local 317 struct gl_context *ctx = (struct gl_context *) userData; delete_memory_object_cb() local 328 struct gl_context *ctx = (struct gl_context *) userData; delete_semaphore_object_cb() local 345 free_shared_state(struct gl_context *ctx, struct gl_shared_state *shared) free_shared_state() argument 475 _mesa_reference_shared_state(struct gl_context *ctx, struct gl_shared_state **ptr, struct gl_shared_state *state) _mesa_reference_shared_state() argument [all...] |
H A D | program_resource.c | 36 supported_interface_enum(struct gl_context *ctx, GLenum iface) in supported_interface_enum() argument 53 return _mesa_has_ARB_shader_subroutine(ctx); in supported_interface_enum() 56 return _mesa_has_geometry_shaders(ctx) && _mesa_has_ARB_shader_subroutine(ctx); in supported_interface_enum() 59 return _mesa_has_compute_shaders(ctx) && _mesa_has_ARB_shader_subroutine(ctx); in supported_interface_enum() 64 return _mesa_has_tessellation(ctx) && _mesa_has_ARB_shader_subroutine(ctx); in supported_interface_enum() 73 GET_CURRENT_CONTEXT(ctx); in lookup_linked_program() 75 _mesa_lookup_shader_program_err(ctx, progra in lookup_linked_program() [all...] |
H A D | lines.c | 43 line_width(struct gl_context *ctx, GLfloat width, bool no_error) in line_width() argument 46 if (ctx->Line.Width == width) in line_width() 50 _mesa_error( ctx, GL_INVALID_VALUE, "glLineWidth" ); in line_width() 64 if (!no_error && ctx->API == API_OPENGL_CORE in line_width() 65 && ((ctx->Const.ContextFlags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT) in line_width() 68 _mesa_error( ctx, GL_INVALID_VALUE, "glLineWidth" ); in line_width() 72 FLUSH_VERTICES(ctx, 0, GL_LINE_BIT); in line_width() 73 ctx->NewDriverState |= ST_NEW_RASTERIZER; in line_width() 74 ctx->Line.Width = width; in line_width() 81 GET_CURRENT_CONTEXT(ctx); in _mesa_LineWidth_no_error() [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_descriptors.c | 141 zink_get_sampler_view_hash(struct zink_context *ctx, struct zink_sampler_view *sampler_view, bool is_buffer) in zink_get_sampler_view_hash() argument 144 (is_buffer ? zink_screen(ctx->base.screen)->null_descriptor_hashes.buffer_view : in zink_get_sampler_view_hash() 145 zink_screen(ctx->base.screen)->null_descriptor_hashes.image_view); in zink_get_sampler_view_hash() 149 zink_get_image_view_hash(struct zink_context *ctx, struct zink_image_view *image_view, bool is_buffer) in zink_get_image_view_hash() argument 152 (is_buffer ? zink_screen(ctx->base.screen)->null_descriptor_hashes.buffer_view : in zink_get_image_view_hash() 153 zink_screen(ctx->base.screen)->null_descriptor_hashes.image_view); in zink_get_image_view_hash() 158 get_descriptor_surface_hash(struct zink_context *ctx, struct zink_descriptor_surface *dsurf) in get_descriptor_surface_hash() argument 160 return dsurf->is_buffer ? (dsurf->bufferview ? dsurf->bufferview->hash : zink_screen(ctx->base.screen)->null_descriptor_hashes.buffer_view) : in get_descriptor_surface_hash() 161 (dsurf->surface ? dsurf->surface->hash : zink_screen(ctx->base.screen)->null_descriptor_hashes.image_view); in get_descriptor_surface_hash() 295 descriptor_pool_delete(struct zink_context *ctx, struc argument 409 create_layout(struct zink_context *ctx, enum zink_descriptor_type type, VkDescriptorSetLayoutBinding *bindings, unsigned num_bindings, struct zink_descriptor_layout_key **layout_key) create_layout() argument 438 zink_descriptor_util_layout_get(struct zink_context *ctx, enum zink_descriptor_type type, VkDescriptorSetLayoutBinding *bindings, unsigned num_bindings, struct zink_descriptor_layout_key **layout_key) zink_descriptor_util_layout_get() argument 490 zink_descriptor_util_pool_key_get(struct zink_context *ctx, enum zink_descriptor_type type, struct zink_descriptor_layout_key *layout_key, VkDescriptorPoolSize *sizes, unsigned num_type_sizes) zink_descriptor_util_pool_key_get() argument 536 create_gfx_layout(struct zink_context *ctx, struct zink_descriptor_layout_key **layout_key, bool fbfetch) create_gfx_layout() argument 555 zink_descriptor_util_push_layouts_get(struct zink_context *ctx, struct zink_descriptor_layout **dsls, struct zink_descriptor_layout_key **layout_keys) zink_descriptor_util_push_layouts_get() argument 568 zink_descriptor_util_image_layout_eval(const struct zink_context *ctx, const struct zink_resource *res, bool is_compute) zink_descriptor_util_image_layout_eval() argument 589 descriptor_pool_get(struct zink_context *ctx, enum zink_descriptor_type type, const struct zink_descriptor_pool_key *pool_key) descriptor_pool_get() argument 639 allocate_desc_set(struct zink_context *ctx, struct zink_program *pg, enum zink_descriptor_type type, unsigned descs_used, bool is_compute) allocate_desc_set() argument 707 populate_zds_key(struct zink_context *ctx, enum zink_descriptor_type type, bool is_compute, struct zink_descriptor_state_key *key, uint32_t push_usage) populate_zds_key() argument 738 populate_zds_key_compact(struct zink_context *ctx, enum zink_descriptor_type type, bool is_compute, struct zink_descriptor_state_key *key, uint32_t push_usage) populate_zds_key_compact() argument 780 zink_descriptor_set_get(struct zink_context *ctx, enum zink_descriptor_type type, bool is_compute, bool *cache_hit) zink_descriptor_set_get() argument 1034 zink_descriptor_pool_reference(struct zink_context *ctx, struct zink_descriptor_pool **dst, struct zink_descriptor_pool *src) zink_descriptor_pool_reference() argument 1047 create_descriptor_ref_template(struct zink_context *ctx, struct zink_program *pg) create_descriptor_ref_template() argument 1112 zink_descriptor_program_init(struct zink_context *ctx, struct zink_program *pg) zink_descriptor_program_init() argument 1147 zink_descriptor_program_deinit(struct zink_context *ctx, struct zink_program *pg) zink_descriptor_program_deinit() argument 1158 zink_descriptor_pool_deinit(struct zink_context *ctx) zink_descriptor_pool_deinit() argument 1169 zink_descriptor_pool_init(struct zink_context *ctx) zink_descriptor_pool_init() argument 1206 desc_set_sampler_add(struct zink_context *ctx, struct zink_descriptor_set *zds, struct zink_descriptor_surface *dsurf, struct zink_sampler_state *state, unsigned int i, bool cache_hit) desc_set_sampler_add() argument 1227 desc_set_image_add(struct zink_context *ctx, struct zink_descriptor_set *zds, struct zink_descriptor_surface *dsurf, unsigned int i, bool cache_hit) desc_set_image_add() argument 1245 desc_set_descriptor_surface_add(struct zink_context *ctx, struct zink_descriptor_set *zds, struct zink_descriptor_surface *dsurf, unsigned int i, bool cache_hit) desc_set_descriptor_surface_add() argument 1277 update_push_ubo_descriptors(struct zink_context *ctx, struct zink_descriptor_set *zds, VkDescriptorSet desc_set, bool is_compute, bool cache_hit, uint32_t *dynamic_offsets) update_push_ubo_descriptors() argument 1342 set_descriptor_set_refs(struct zink_context *ctx, struct zink_descriptor_set *zds, struct zink_program *pg, bool cache_hit) set_descriptor_set_refs() argument 1369 update_descriptors_internal(struct zink_context *ctx, enum zink_descriptor_type type, struct zink_descriptor_set *zds, struct zink_program *pg, bool cache_hit) update_descriptors_internal() argument 1471 zink_descriptors_update(struct zink_context *ctx, bool is_compute) zink_descriptors_update() argument 1613 calc_descriptor_state_hash_ubo(struct zink_context *ctx, struct zink_shader *zs, enum pipe_shader_type shader, int i, int idx, uint32_t hash, bool need_offset) calc_descriptor_state_hash_ubo() argument 1629 calc_descriptor_state_hash_ssbo(struct zink_context *ctx, struct zink_shader *zs, enum pipe_shader_type shader, int i, int idx, uint32_t hash) calc_descriptor_state_hash_ssbo() argument 1650 calc_descriptor_state_hash_sampler(struct zink_context *ctx, struct zink_shader *zs, enum pipe_shader_type shader, int i, int idx, uint32_t hash) calc_descriptor_state_hash_sampler() argument 1672 calc_descriptor_state_hash_image(struct zink_context *ctx, struct zink_shader *zs, enum pipe_shader_type shader, int i, int idx, uint32_t hash) calc_descriptor_state_hash_image() argument 1684 update_descriptor_stage_state(struct zink_context *ctx, enum pipe_shader_type shader, enum zink_descriptor_type type) update_descriptor_stage_state() argument 1716 update_descriptor_state(struct zink_context *ctx, enum zink_descriptor_type type, bool is_compute) update_descriptor_state() argument 1762 zink_context_update_descriptor_states(struct zink_context *ctx, struct zink_program *pg) zink_context_update_descriptor_states() argument 1834 zink_context_invalidate_descriptor_state(struct zink_context *ctx, enum pipe_shader_type shader, enum zink_descriptor_type type, unsigned start, unsigned count) zink_context_invalidate_descriptor_state() argument 1858 zink_descriptors_init(struct zink_context *ctx) zink_descriptors_init() argument 1867 zink_descriptors_deinit(struct zink_context *ctx) zink_descriptors_deinit() argument 1874 zink_descriptor_layouts_init(struct zink_context *ctx) zink_descriptor_layouts_init() argument 1886 zink_descriptor_layouts_deinit(struct zink_context *ctx) zink_descriptor_layouts_deinit() argument 1901 zink_descriptor_util_init_fbfetch(struct zink_context *ctx) zink_descriptor_util_init_fbfetch() argument 1931 zink_descriptors_init_bindless(struct zink_context *ctx) zink_descriptors_init_bindless() argument 1989 zink_descriptors_deinit_bindless(struct zink_context *ctx) zink_descriptors_deinit_bindless() argument 1999 zink_descriptors_update_bindless(struct zink_context *ctx) zink_descriptors_update_bindless() argument [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_chromakey.c | 46 int (*do_slice)(AVFilterContext *ctx, void *arg, 50 static uint8_t do_chromakey_pixel(ChromakeyContext *ctx, uint8_t u[9], uint8_t v[9]) in do_chromakey_pixel() argument 56 du = (int)u[i] - ctx->chromakey_uv[0]; in do_chromakey_pixel() 57 dv = (int)v[i] - ctx->chromakey_uv[1]; in do_chromakey_pixel() 64 if (ctx->blend > 0.0001) { in do_chromakey_pixel() 65 return av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0) * 255.0; in do_chromakey_pixel() 67 return (diff > ctx->similarity) ? 255 : 0; in do_chromakey_pixel() 71 static uint16_t do_chromakey_pixel16(ChromakeyContext *ctx, uint16_t u[9], uint16_t v[9]) in do_chromakey_pixel16() argument 73 double max = ctx in do_chromakey_pixel16() 124 ChromakeyContext *ctx = avctx->priv; do_chromakey_slice() local 154 ChromakeyContext *ctx = avctx->priv; do_chromakey16_slice() local 183 ChromakeyContext *ctx = avctx->priv; do_chromahold_slice() local 220 ChromakeyContext *ctx = avctx->priv; do_chromahold16_slice() local 260 ChromakeyContext *ctx = avctx->priv; filter_frame() local 278 ChromakeyContext *ctx = avctx->priv; config_output() local 307 ChromakeyContext *ctx = avctx->priv; config_input() local 316 process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) process_command() argument [all...] |
/third_party/mbedtls/library/ |
H A D | ssl_ticket.c | 36 void mbedtls_ssl_ticket_init(mbedtls_ssl_ticket_context *ctx) in mbedtls_ssl_ticket_init() argument 38 memset(ctx, 0, sizeof(mbedtls_ssl_ticket_context)); in mbedtls_ssl_ticket_init() 41 mbedtls_mutex_init(&ctx->mutex); in mbedtls_ssl_ticket_init() 64 static int ssl_ticket_gen_key(mbedtls_ssl_ticket_context *ctx, in ssl_ticket_gen_key() argument 69 mbedtls_ssl_ticket_key *key = ctx->keys + index; in ssl_ticket_gen_key() 81 key->lifetime = ctx->ticket_lifetime; in ssl_ticket_gen_key() 83 if ((ret = ctx->f_rng(ctx->p_rng, key->name, sizeof(key->name))) != 0) { in ssl_ticket_gen_key() 87 if ((ret = ctx->f_rng(ctx in ssl_ticket_gen_key() 118 ssl_ticket_update_keys(mbedtls_ssl_ticket_context *ctx) ssl_ticket_update_keys() argument 154 mbedtls_ssl_ticket_rotate(mbedtls_ssl_ticket_context *ctx, const unsigned char *name, size_t nlength, const unsigned char *k, size_t klength, uint32_t lifetime) mbedtls_ssl_ticket_rotate() argument 214 mbedtls_ssl_ticket_setup(mbedtls_ssl_ticket_context *ctx, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, mbedtls_cipher_type_t cipher, uint32_t lifetime) mbedtls_ssl_ticket_setup() argument 307 mbedtls_ssl_ticket_context *ctx = p_ticket; mbedtls_ssl_ticket_write() local 400 ssl_ticket_select_key( mbedtls_ssl_ticket_context *ctx, const unsigned char name[4]) ssl_ticket_select_key() argument 424 mbedtls_ssl_ticket_context *ctx = p_ticket; mbedtls_ssl_ticket_parse() local 535 mbedtls_ssl_ticket_free(mbedtls_ssl_ticket_context *ctx) mbedtls_ssl_ticket_free() argument [all...] |
H A D | poly1305.c | 68 * \param ctx The Poly1305 context. 76 static void poly1305_process(mbedtls_poly1305_context *ctx, in poly1305_process() argument 88 r0 = ctx->r[0]; in poly1305_process() 89 r1 = ctx->r[1]; in poly1305_process() 90 r2 = ctx->r[2]; in poly1305_process() 91 r3 = ctx->r[3]; in poly1305_process() 97 acc0 = ctx->acc[0]; in poly1305_process() 98 acc1 = ctx->acc[1]; in poly1305_process() 99 acc2 = ctx->acc[2]; in poly1305_process() 100 acc3 = ctx in poly1305_process() 183 poly1305_compute_mac(const mbedtls_poly1305_context *ctx, unsigned char mac[16]) poly1305_compute_mac() argument 240 mbedtls_poly1305_init(mbedtls_poly1305_context *ctx) mbedtls_poly1305_init() argument 245 mbedtls_poly1305_free(mbedtls_poly1305_context *ctx) mbedtls_poly1305_free() argument 254 mbedtls_poly1305_starts(mbedtls_poly1305_context *ctx, const unsigned char key[32]) mbedtls_poly1305_starts() argument 282 mbedtls_poly1305_update(mbedtls_poly1305_context *ctx, const unsigned char *input, size_t ilen) mbedtls_poly1305_update() argument 338 mbedtls_poly1305_finish(mbedtls_poly1305_context *ctx, unsigned char mac[16]) mbedtls_poly1305_finish() argument 366 mbedtls_poly1305_context ctx; mbedtls_poly1305_mac() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | act.c | 67 ACTContext* ctx = s->priv_data; in read_header() local 107 ctx->bytes_left_in_chunk=CHUNK_SIZE; in read_header() 118 ACTContext *ctx = s->priv_data; in read_packet() local 132 if(s->streams[0]->codecpar->sample_rate==4400 && !ctx->second_packet) in read_packet() 134 ret = ffio_read_size(pb, ctx->audio_buffer, frame_size); in read_packet() 139 pkt->data[0]=ctx->audio_buffer[11]; in read_packet() 140 pkt->data[1]=ctx->audio_buffer[0]; in read_packet() 141 pkt->data[2]=ctx->audio_buffer[12]; in read_packet() 142 pkt->data[3]=ctx->audio_buffer[1]; in read_packet() 143 pkt->data[4]=ctx in read_packet() [all...] |
/third_party/libwebsockets/lib/roles/http/compression/deflate/ |
H A D | deflate.c | 28 lcs_init_compression_deflate(lws_comp_ctx_t *ctx, int decomp) in lcs_init_compression_deflate() argument 32 ctx->is_decompression = !!decomp; in lcs_init_compression_deflate() 33 ctx->u.deflate = lws_malloc(sizeof(*ctx->u.deflate), __func__); in lcs_init_compression_deflate() 35 if (!ctx->u.deflate) in lcs_init_compression_deflate() 38 memset(ctx->u.deflate, 0, sizeof(*ctx->u.deflate)); in lcs_init_compression_deflate() 41 (n = deflateInit2(ctx->u.deflate, 1, Z_DEFLATED, -15, 8, in lcs_init_compression_deflate() 44 lws_free_set_NULL(ctx->u.deflate); in lcs_init_compression_deflate() 50 inflateInit2(ctx in lcs_init_compression_deflate() 59 lcs_process_deflate(lws_comp_ctx_t *ctx, const void *in, size_t *ilen_iused, void *out, size_t *olen_oused) lcs_process_deflate() argument 95 lcs_destroy_deflate(lws_comp_ctx_t *ctx) lcs_destroy_deflate() argument [all...] |