Home
last modified time | relevance | path

Searched refs:common (Results 1 – 25 of 89) sorted by relevance

1234

/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/srce/
Dbitalloc-sbc.c35 static void dualBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common) in dualBitAllocation() argument
44 bitcountL = computeBitneed(common, bitneedsL.uint8, 0, &bitpoolPreferenceL); in dualBitAllocation()
45 bitcountR = computeBitneed(common, bitneedsR.uint8, 1, &bitpoolPreferenceR); in dualBitAllocation()
47 oneChannelBitAllocation(common, &bitneedsL, 0, bitcountL); in dualBitAllocation()
48 oneChannelBitAllocation(common, &bitneedsR, 1, bitcountR); in dualBitAllocation()
51 static void stereoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common) in stereoBitAllocation() argument
53 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in stereoBitAllocation()
62 bitcount = computeBitneed(common, &bitneeds.uint8[0], 0, &bitpoolPreference); in stereoBitAllocation()
63 bitcount += computeBitneed(common, &bitneeds.uint8[nrof_subbands], 1, &bitpoolPreference); in stereoBitAllocation()
67 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds.uint32, 2 * nrof_subbands, bitc… in stereoBitAllocation()
[all …]
Ddecoder-sbc.c73 context->common.frameInfo.enhanced = (**frameData == OI_SBC_ENHANCED_SYNCWORD); in FindSyncword()
92 context->common.frameInfo.enhanced = FALSE; in FindSyncword()
110 …OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * context->common.frameInfo.nrof_subb… in DecodeBody()
116 … if (*pcmBytes < (sizeof(OI_INT16) * frameSamples * context->common.pcmStride) && !allowPartial) { in DecodeBody()
121 …} else if (*pcmBytes < sizeof (OI_INT16) * context->common.frameInfo.nrof_subbands * context->comm… in DecodeBody()
129 OI_SBC_ReadScalefactors(&context->common, bodyData, &bs); in DecodeBody()
132 OI_SBC_ComputeBitAllocation(&context->common); in DecodeBody()
135 if (context->common.frameInfo.mode == SBC_JOINT_STEREO) { in DecodeBody()
141 context->bufferedBlocks = context->common.frameInfo.nrof_blocks; in DecodeBody()
145 …code_block_count = *pcmBytes / sizeof(OI_INT16) / context->common.pcmStride / context->common.fram… in DecodeBody()
[all …]
Ddecoder-private.c75 …status = OI_CODEC_SBC_Alloc(&context->common, decoderData, decoderDataBytes, maxChannels, pcmStrid… in internal_DecoderReset()
81 context->common.codecInfo = OI_Codec_Copyright; in internal_DecoderReset()
82 context->common.maxBitneed = 0; in internal_DecoderReset()
84 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in internal_DecoderReset()
95 INLINE void OI_SBC_ReadHeader(OI_CODEC_SBC_COMMON_CONTEXT *common, const OI_BYTE *data) in OI_SBC_ReadHeader() argument
97 OI_CODEC_SBC_FRAME_INFO *frame = &common->frameInfo; in OI_SBC_ReadHeader()
167 PRIVATE void OI_SBC_ReadScalefactors(OI_CODEC_SBC_COMMON_CONTEXT *common, in OI_SBC_ReadScalefactors() argument
171 OI_UINT i = common->frameInfo.nrof_subbands * common->frameInfo.nrof_channels; in OI_SBC_ReadScalefactors()
172 OI_INT8 *scale_factor = common->scale_factor; in OI_SBC_ReadScalefactors()
175 if (common->frameInfo.nrof_subbands == 8 || common->frameInfo.mode != SBC_JOINT_STEREO) { in OI_SBC_ReadScalefactors()
[all …]
Dsynthesis-sbc.c264 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame_80()
265 OI_UINT pcmStrideShift = context->common.pcmStride == 1 ? 0 : 1; in OI_SBC_SynthFrame_80()
266 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_80()
267 OI_INT32 *s = context->common.subdata + 8 * nrof_channels * blkstart; in OI_SBC_SynthFrame_80()
272 …_32BIT_ALIGNED_72_HALFWORDS(context->common.filterBuffer[0] + context->common.filterBufferLen - 72… in OI_SBC_SynthFrame_80()
274 …_32BIT_ALIGNED_72_HALFWORDS(context->common.filterBuffer[1] + context->common.filterBufferLen - 72… in OI_SBC_SynthFrame_80()
276 offset = context->common.filterBufferLen - 80; in OI_SBC_SynthFrame_80()
282 DCT2_8(context->common.filterBuffer[ch] + offset, s); in OI_SBC_SynthFrame_80()
283 SYNTH80(pcm + ch, context->common.filterBuffer[ch] + offset, pcmStrideShift); in OI_SBC_SynthFrame_80()
288 context->common.filterBufferOffset = offset; in OI_SBC_SynthFrame_80()
[all …]
Dalloc.c29 PRIVATE OI_STATUS OI_CODEC_SBC_Alloc(OI_CODEC_SBC_COMMON_CONTEXT *common, in OI_CODEC_SBC_Alloc() argument
48 common->maxChannels = maxChannels; in OI_CODEC_SBC_Alloc()
49 common->pcmStride = pcmStride; in OI_CODEC_SBC_Alloc()
53 subdataSize = maxChannels * sizeof(common->subdata[0]) * SBC_MAX_BANDS * SBC_MAX_BLOCKS; in OI_CODEC_SBC_Alloc()
58 …filterBufferCount = (codecDataBytes - subdataSize) / (sizeof(common->filterBuffer[0][0]) * SBC_MAX… in OI_CODEC_SBC_Alloc()
62 common->filterBufferLen = filterBufferCount * SBC_MAX_BANDS; in OI_CODEC_SBC_Alloc()
65 common->subdata = (OI_INT32 *)codecData; in OI_CODEC_SBC_Alloc()
72 size_t allocSize = common->filterBufferLen * sizeof(common->filterBuffer[0][0]); in OI_CODEC_SBC_Alloc()
73 common->filterBuffer[i] = (SBC_BUFFER_T *)codecData; in OI_CODEC_SBC_Alloc()
Ddecoder-oina.c81 context->common.frameInfo.enhanced = enhanced; in OI_CODEC_SBC_DecoderConfigureRaw()
83 context->common.frameInfo.enhanced = FALSE; in OI_CODEC_SBC_DecoderConfigureRaw()
85 context->common.frameInfo.freqIndex = frequency; in OI_CODEC_SBC_DecoderConfigureRaw()
86 context->common.frameInfo.mode = mode; in OI_CODEC_SBC_DecoderConfigureRaw()
87 context->common.frameInfo.subbands = subbands; in OI_CODEC_SBC_DecoderConfigureRaw()
88 context->common.frameInfo.blocks = blocks; in OI_CODEC_SBC_DecoderConfigureRaw()
89 context->common.frameInfo.alloc = alloc; in OI_CODEC_SBC_DecoderConfigureRaw()
90 context->common.frameInfo.bitpool = maxBitpool; in OI_CODEC_SBC_DecoderConfigureRaw()
92 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in OI_CODEC_SBC_DecoderConfigureRaw()
94 if (context->common.frameInfo.nrof_channels >= context->common.pcmStride) { in OI_CODEC_SBC_DecoderConfigureRaw()
Dbitalloc.c129 OI_UINT computeBitneed(OI_CODEC_SBC_COMMON_CONTEXT *common, in computeBitneed() argument
148 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in computeBitneed()
150 OI_INT8 *scale_factor = &common->scale_factor[ch ? nrof_subbands : 0]; in computeBitneed()
155 if (common->frameInfo.alloc == SBC_SNR) { in computeBitneed()
169 offset = offset4[common->frameInfo.freqIndex]; in computeBitneed()
171 offset = offset8[common->frameInfo.freqIndex]; in computeBitneed()
191 common->maxBitneed = OI_MAX(maxBits, common->maxBitneed); in computeBitneed()
353 void oneChannelBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common, in oneChannelBitAllocation() argument
358 const OI_UINT8 nrof_subbands = common->frameInfo.nrof_subbands; in oneChannelBitAllocation()
367 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds->uint32, nrof_subbands, bitcoun… in oneChannelBitAllocation()
[all …]
Dreadsamplesjoint.inc26 void OI_SBC_ReadSamplesJoint4(OI_CODEC_SBC_COMMON_CONTEXT *common, OI_BITSTREAM *global_bs)
33 void OI_SBC_ReadSamplesJoint8(OI_CODEC_SBC_COMMON_CONTEXT *common, OI_BITSTREAM *global_bs)
42 void OI_SBC_ReadSamplesJoint(OI_CODEC_SBC_COMMON_CONTEXT *common, OI_BITSTREAM *global_bs)
44 OI_UINT nrof_subbands = common->frameInfo.nrof_subbands;
59 OI_CODEC_SBC_COMMON_CONTEXT *common = &context->common;
60 OI_UINT bl = common->frameInfo.nrof_blocks;
61 OI_INT32 * RESTRICT s = common->subdata;
65 OI_UINT8 jmask = common->frameInfo.join << (8 - NROF_SUBBANDS);
68 OI_INT8 *sf_array = &common->scale_factor[0];
69 OI_UINT8 *bits_array = &common->bits.uint8[0];
/hal_espressif-latest/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_time_scene_model.c294 bt_mesh_client_common_param_t common = {0}; in btc_ble_mesh_time_scene_client_call_handler() local
306 common.opcode = params->opcode; in btc_ble_mesh_time_scene_client_call_handler()
307 common.model = (struct bt_mesh_model *)params->model; in btc_ble_mesh_time_scene_client_call_handler()
308 common.ctx.net_idx = params->ctx.net_idx; in btc_ble_mesh_time_scene_client_call_handler()
309 common.ctx.app_idx = params->ctx.app_idx; in btc_ble_mesh_time_scene_client_call_handler()
310 common.ctx.addr = params->ctx.addr; in btc_ble_mesh_time_scene_client_call_handler()
311 common.ctx.send_rel = params->ctx.send_rel; in btc_ble_mesh_time_scene_client_call_handler()
312 common.ctx.send_ttl = params->ctx.send_ttl; in btc_ble_mesh_time_scene_client_call_handler()
313 common.msg_timeout = params->msg_timeout; in btc_ble_mesh_time_scene_client_call_handler()
314 common.msg_role = params->msg_role; in btc_ble_mesh_time_scene_client_call_handler()
[all …]
Dbtc_ble_mesh_lighting_model.c292 bt_mesh_client_common_param_t common = {0}; in btc_ble_mesh_lighting_client_call_handler() local
304 common.opcode = params->opcode; in btc_ble_mesh_lighting_client_call_handler()
305 common.model = (struct bt_mesh_model *)params->model; in btc_ble_mesh_lighting_client_call_handler()
306 common.ctx.net_idx = params->ctx.net_idx; in btc_ble_mesh_lighting_client_call_handler()
307 common.ctx.app_idx = params->ctx.app_idx; in btc_ble_mesh_lighting_client_call_handler()
308 common.ctx.addr = params->ctx.addr; in btc_ble_mesh_lighting_client_call_handler()
309 common.ctx.send_rel = params->ctx.send_rel; in btc_ble_mesh_lighting_client_call_handler()
310 common.ctx.send_ttl = params->ctx.send_ttl; in btc_ble_mesh_lighting_client_call_handler()
311 common.msg_timeout = params->msg_timeout; in btc_ble_mesh_lighting_client_call_handler()
312 common.msg_role = params->msg_role; in btc_ble_mesh_lighting_client_call_handler()
[all …]
Dbtc_ble_mesh_generic_model.c448 bt_mesh_client_common_param_t common = {0}; in btc_ble_mesh_generic_client_call_handler() local
460 common.opcode = params->opcode; in btc_ble_mesh_generic_client_call_handler()
461 common.model = (struct bt_mesh_model *)params->model; in btc_ble_mesh_generic_client_call_handler()
462 common.ctx.net_idx = params->ctx.net_idx; in btc_ble_mesh_generic_client_call_handler()
463 common.ctx.app_idx = params->ctx.app_idx; in btc_ble_mesh_generic_client_call_handler()
464 common.ctx.addr = params->ctx.addr; in btc_ble_mesh_generic_client_call_handler()
465 common.ctx.send_rel = params->ctx.send_rel; in btc_ble_mesh_generic_client_call_handler()
466 common.ctx.send_ttl = params->ctx.send_ttl; in btc_ble_mesh_generic_client_call_handler()
467 common.msg_timeout = params->msg_timeout; in btc_ble_mesh_generic_client_call_handler()
468 common.msg_role = params->msg_role; in btc_ble_mesh_generic_client_call_handler()
[all …]
Dbtc_ble_mesh_sensor_model.c530 bt_mesh_client_common_param_t common = {0}; in btc_ble_mesh_sensor_client_call_handler() local
542 common.opcode = params->opcode; in btc_ble_mesh_sensor_client_call_handler()
543 common.model = (struct bt_mesh_model *)params->model; in btc_ble_mesh_sensor_client_call_handler()
544 common.ctx.net_idx = params->ctx.net_idx; in btc_ble_mesh_sensor_client_call_handler()
545 common.ctx.app_idx = params->ctx.app_idx; in btc_ble_mesh_sensor_client_call_handler()
546 common.ctx.addr = params->ctx.addr; in btc_ble_mesh_sensor_client_call_handler()
547 common.ctx.send_rel = params->ctx.send_rel; in btc_ble_mesh_sensor_client_call_handler()
548 common.ctx.send_ttl = params->ctx.send_ttl; in btc_ble_mesh_sensor_client_call_handler()
549 common.msg_timeout = params->msg_timeout; in btc_ble_mesh_sensor_client_call_handler()
550 common.msg_role = params->msg_role; in btc_ble_mesh_sensor_client_call_handler()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/client/
Dtime_scene_client.c369 static int time_scene_get_state(bt_mesh_client_common_param_t *common, void *value) in time_scene_get_state() argument
373 bt_mesh_model_msg_init(&msg, common->opcode); in time_scene_get_state()
376 switch (common->opcode) { in time_scene_get_state()
384 BT_DBG("No parameters for Time Scene Get 0x%04x", common->opcode); in time_scene_get_state()
389 return bt_mesh_client_send_msg(common, &msg, true, timeout_handler); in time_scene_get_state()
392 static int time_scene_set_state(bt_mesh_client_common_param_t *common, in time_scene_set_state() argument
404 bt_mesh_model_msg_init(msg, common->opcode); in time_scene_set_state()
406 switch (common->opcode) { in time_scene_set_state()
472 BT_ERR("Invalid Time Scene Set opcode 0x%04x", common->opcode); in time_scene_set_state()
477 err = bt_mesh_client_send_msg(common, msg, need_ack, timeout_handler); in time_scene_set_state()
[all …]
Dsensor_client.c352 static int sensor_act_state(bt_mesh_client_common_param_t *common, in sensor_act_state() argument
364 bt_mesh_model_msg_init(msg, common->opcode); in sensor_act_state()
366 switch (common->opcode) { in sensor_act_state()
442 BT_ERR("Invalid Sensor client opcode 0x%04x", common->opcode); in sensor_act_state()
447 err = bt_mesh_client_send_msg(common, msg, need_ack, timeout_handler); in sensor_act_state()
454 int bt_mesh_sensor_client_get_state(bt_mesh_client_common_param_t *common, void *get) in bt_mesh_sensor_client_get_state() argument
459 if (!common || !common->model || !get) { in bt_mesh_sensor_client_get_state()
464 client = (bt_mesh_sensor_client_t *)common->model->user_data; in bt_mesh_sensor_client_get_state()
470 switch (common->opcode) { in bt_mesh_sensor_client_get_state()
512 BT_ERR("Invalid Sensor Get opcode 0x%04x", common->opcode); in bt_mesh_sensor_client_get_state()
[all …]
Dgeneric_client.c686 static int gen_get_state(bt_mesh_client_common_param_t *common, void *value) in gen_get_state() argument
690 bt_mesh_model_msg_init(&msg, common->opcode); in gen_get_state()
693 switch (common->opcode) { in gen_get_state()
719 BT_DBG("No parameters for Generic Get 0x%04x", common->opcode); in gen_get_state()
724 return bt_mesh_client_send_msg(common, &msg, true, timeout_handler); in gen_get_state()
727 static int gen_set_state(bt_mesh_client_common_param_t *common, in gen_set_state() argument
739 bt_mesh_model_msg_init(msg, common->opcode); in gen_set_state()
741 switch (common->opcode) { in gen_set_state()
891 BT_ERR("Invalid Generic Set opcode 0x%04x", common->opcode); in gen_set_state()
896 err = bt_mesh_client_send_msg(common, msg, need_ack, timeout_handler); in gen_set_state()
[all …]
Dlighting_client.c769 static int light_get_state(bt_mesh_client_common_param_t *common, void *value) in light_get_state() argument
773 bt_mesh_model_msg_init(&msg, common->opcode); in light_get_state()
776 switch (common->opcode) { in light_get_state()
784 BT_DBG("No parameters for Lighting Get 0x%04x", common->opcode); in light_get_state()
789 return bt_mesh_client_send_msg(common, &msg, true, timeout_handler); in light_get_state()
792 static int light_set_state(bt_mesh_client_common_param_t *common, in light_set_state() argument
804 bt_mesh_model_msg_init(msg, common->opcode); in light_set_state()
806 switch (common->opcode) { in light_set_state()
1015 BT_ERR("Invalid Lighting Set opcode 0x%04x", common->opcode); in light_set_state()
1020 err = bt_mesh_client_send_msg(common, msg, need_ack, timeout_handler); in light_set_state()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/include/
Doi_codec_sbc_private.h129 OI_UINT computeBitneed(OI_CODEC_SBC_COMMON_CONTEXT *common,
134 void oneChannelBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common,
157 void monoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common);
159 typedef void (*BIT_ALLOC)(OI_CODEC_SBC_COMMON_CONTEXT *common);
210 void OI_SBC_ReadHeader(OI_CODEC_SBC_COMMON_CONTEXT *common, const OI_BYTE *data);
211 PRIVATE void OI_SBC_ReadScalefactors(OI_CODEC_SBC_COMMON_CONTEXT *common, const OI_BYTE *b, OI_BITS…
212 PRIVATE void OI_SBC_ReadSamples(OI_CODEC_SBC_DECODER_CONTEXT *common, OI_BITSTREAM *ob);
213 PRIVATE void OI_SBC_ReadSamplesJoint(OI_CODEC_SBC_DECODER_CONTEXT *common, OI_BITSTREAM *global_bs);
220 PRIVATE OI_STATUS OI_CODEC_SBC_Alloc(OI_CODEC_SBC_COMMON_CONTEXT *common,
/hal_espressif-latest/components/wpa_supplicant/
DCMakeLists.txt21 "src/common/sae.c"
22 "src/common/dragonfly.c"
23 "src/common/wpa_common.c"
42 "src/common/ieee802_11_common.c"
60 "src/utils/common.c"
169 "src/common/ieee802_11_common.c")
171 set(roaming_src ${roaming_src} "src/common/rrm.c" "src/common/wnm_sta.c")
182 "src/common/sae_pk.c")
187 "src/common/bss.c"
188 "src/common/scan.c"
[all …]
/hal_espressif-latest/components/bt/
DCMakeLists.txt48 list(APPEND include_dirs common/osi/include)
51 common/btc/include
52 common/include
57 common/api/include/api
58 common/btc/profile/esp/blufi/include
59 common/btc/profile/esp/include
60 common/hci_log/include
64 list(APPEND srcs "common/btc/core/btc_alarm.c"
65 "common/api/esp_blufi_api.c"
66 "common/hci_log/bt_hci_log.c"
[all …]
/hal_espressif-latest/tools/esptool_py/test/
Dtest_merge_bin.py442 def common(self, t, chunk_size=None, md5_enable=True): member in TestUF2
459 self.common([(0, self.generate_binary(1))])
462 self.common(
467 self.common(
472 self.common(
481 self.common(
490 self.common(
500 self.common(
510 self.common(
/hal_espressif-latest/components/esp_system/
Dapp.lf11 common -> dram0_bss
32 common -> rtc_bss
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/client/include/
Dsensor_client.h139 int bt_mesh_sensor_client_get_state(bt_mesh_client_common_param_t *common, void *get);
149 int bt_mesh_sensor_client_set_state(bt_mesh_client_common_param_t *common, void *set);
Dtime_scene_client.h209 int bt_mesh_time_scene_client_get_state(bt_mesh_client_common_param_t *common, void *get);
219 int bt_mesh_time_scene_client_set_state(bt_mesh_client_common_param_t *common, void *set);
/hal_espressif-latest/components/efuse/
DCMakeLists.txt45 # Make common files esp_efuse_table.c and include/esp_efuse_table.h files.
48 add_custom_target(efuse-common-table COMMAND "${python}"
51 add_deprecated_target_alias(efuse_common_table efuse-common-table)
/hal_espressif-latest/zephyr/esp32/
DCMakeLists.txt20 ../common/include
276 ../common/console_init.c
277 ../common/soc_init.c
349 ../common/flash_init.c
446 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/common/sae.c"
447 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/common/dragonfly.c"
448 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/common/wpa_common.c"
467 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/common/ieee802_11_common.c"
475 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/utils/common.c"
492 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/common/sae_pk.c"
[all …]

1234