/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbccodecctrl/src/ |
H A D | a2dp_decoder_sbc.cpp | 54 int frameLen = 0; in DecodePacket() local 71 frameLen = sbcDecoder_->SBCDecode(g_sbcDecode, &buf[pos], packetSize - pos, in DecodePacket() 73 pos += frameLen; in DecodePacket() 74 if (frameLen < 0) { in DecodePacket() 80 LOG_INFO("[DataAvailable][packetSize:%hu][count:%{public}d][len:%{public}zu][frameLen:%{public}d]", in DecodePacket() 81 packetSize, count, len, frameLen); in DecodePacket()
|
H A D | a2dp_encoder_sbc.cpp | 629 int16_t frameLen = in A2dpSbcCalculateEncBitPool() local 633 bitRate = (BIT8 * frameLen * samplingFreq) / (encParams->subBands * encParams->numOfBlocks * MS_TO_US); in A2dpSbcCalculateEncBitPool()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile_retransmission.c | 28 size_t frameLen = 0; in SendBackPressureFrame() local 61 EncodeBackPressFrame(buf, NSTACKX_DEFAULT_FRAME_SIZE, &frameLen, dFileTrans->fileManager->recvListOverIo); in SendBackPressureFrame() 62 int32_t ret = DFileWriteHandle(buf, frameLen, peerInfo); in SendBackPressureFrame() 63 if (ret != (int32_t)frameLen && ret != NSTACKX_EAGAIN) { in SendBackPressureFrame()
|
H A D | nstackx_dfile_control.c | 30 size_t frameLen = 0; in SendSessionFileTransferDoneAckFrame() local 34 EncodeFileTransferDoneAckFrame(buf, NSTACKX_DEFAULT_FRAME_SIZE, transId, &frameLen); in SendSessionFileTransferDoneAckFrame() 35 int32_t ret = DFileWriteHandle(buf, frameLen, peerInfo); in SendSessionFileTransferDoneAckFrame() 36 if (ret != (int32_t)frameLen && ret != NSTACKX_EAGAIN) { in SendSessionFileTransferDoneAckFrame()
|
H A D | nstackx_dfile_session.c | 449 size_t frameLen = 0; in DFileSessionSendSetting() local 461 EncodeSettingFrame(buf, NSTACKX_DEFAULT_FRAME_SIZE, &frameLen, &settingFramePara); in DFileSessionSendSetting() 464 int32_t ret = DFileWriteHandle(buf, frameLen, peerInfo); in DFileSessionSendSetting() 465 if (ret != (int32_t)frameLen && ret != NSTACKX_EAGAIN) { in DFileSessionSendSetting() 489 int32_t ret = DFileWriteHandle(buf, frameLen, peerInfo); in DFileSessionSendSetting() 490 if (ret != (int32_t)frameLen && ret != NSTACKX_EAGAIN) { in DFileSessionSendSetting()
|
/foundation/distributedhardware/distributed_screen/services/screendemo/ |
H A D | decoder_demo.cpp | 219 const int32_t* frameLen = nullptr; in GetFrameLen() local 221 frameLen = ES_W; in GetFrameLen() 224 frameLen = ES_R; in GetFrameLen() 227 return frameLen; in GetFrameLen() 232 const int32_t *frameLen = GetFrameLen(); in InputFunc() local 246 char *fileBuffer = static_cast<char *>(malloc(sizeof(char) * (*frameLen) + 1)); in InputFunc() 251 (void)testFile_->read(fileBuffer, *frameLen); in InputFunc() 252 if (memcpy_s(buffer->GetBase(), buffer->GetSize(), fileBuffer, *frameLen) != EOK) { in InputFunc() 259 info.size = *frameLen; in InputFunc() 272 frameLen in InputFunc() [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/ |
H A D | coap_discover.c | 455 uint16_t frameLen, ret; local 456 if (size < sizeof(frameLen)) { 460 if (memcpy_s(&frameLen, sizeof(frameLen), frame, sizeof(frameLen)) != EOK) { 464 ret = ntohs(frameLen); 507 uint16_t frameLen = GetServiceMsgFrameLen(frame, size); local 508 if (frameLen < sizeof(frameLen) + sizeof(CoapMsgUnit)) { 513 uint16_t len = sizeof(frameLen); 895 uint16_t frameLen, moduleNameUnitLen, deviceIdUnitLen, msgUnitLen, bufferLen; global() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/ |
H A D | header_converter.cpp | 36 headerConverted.frameLen = HostToNet(headerOriginal.frameLen); in ConvertHostToNet()
|
H A D | frame_header.h | 45 uint32_t frameLen = 0; // Indicate length of frame before fragmentation. Frame include CommHeader no padding member
|
H A D | protocol_proto.cpp | 324 uint32_t frameLen = inResult.GetFrameLen(); in AnalyzeSplitStructure() local 328 // Firstly: Check frameLen in AnalyzeSplitStructure() 329 if (frameLen <= sizeof(CommPhyHeader) || frameLen > MAX_FRAME_LEN) { in AnalyzeSplitStructure() 330 LOGE("[Proto][ParsePhyOpt] FrameLen=%" PRIu32 " illegal.", frameLen); in AnalyzeSplitStructure() 335 uint32_t lengthBeSplit = frameLen - sizeof(CommPhyHeader); in AnalyzeSplitStructure() 350 ", PaddingLen=%" PRIu32 ", PacketLen=%" PRIu32, frameLen, fragCount, fragNo, inResult.GetPaddingLen(), in AnalyzeSplitStructure() 575 LOGI("[Proto][Display] This is %s, frameId=%" PRIu32 ", frameLen=%" PRIu32 ", fragCount=%" PRIu32 in DisplayPacketInformation() 577 frameId, NetToHost(phyOpt->frameLen), in DisplayPacketInformation() 823 inResult.SetFrameLen(phyOptHeader.frameLen); in ParseCommPhyOptHeader() [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audioeffect/include/ |
H A D | audio_effect_chain_manager.h | 85 int frameLen; member 87 EffectBufferAttr(float *bufIn, float *bufOut, int numChans, int frameLen) in EffectBufferAttr() 88 : bufIn(bufIn), bufOut(bufOut), numChans(numChans), frameLen(frameLen) in EffectBufferAttr()
|
H A D | audio_effect_chain_adapter.h | 33 int frameLen; member
|
H A D | audio_effect_chain.h | 68 void ApplyEffectChain(float *bufIn, float *bufOut, uint32_t frameLen, AudioEffectProcInfo procInfo);
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/common/include/ |
H A D | audio_hdiadapter_info.h | 60 uint64_t frameLen; member
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/primary/ |
H A D | audio_capturer_source.cpp | 812 uint32_t frameLen = static_cast<uint32_t>(requestBytes); in CaptureFrame() local 813 int32_t ret = audioCapture_->CaptureFrame(audioCapture_, reinterpret_cast<int8_t*>(frame), &frameLen, &replyBytes); in CaptureFrame() 860 struct AudioFrameLen frameLen = {}; in CaptureFrameWithEc() local 861 frameLen.frameLen = fdesc->frameLen; in CaptureFrameWithEc() 862 frameLen.frameEcLen = fdescEc->frameLen; in CaptureFrameWithEc() 865 int32_t ret = audioCapture_->CaptureFrameEc(audioCapture_, &frameLen, &frameInfo); in CaptureFrameWithEc() 874 if (memcpy_s(fdesc->frame, fdesc->frameLen, frameInf in CaptureFrameWithEc() 896 struct AudioFrameLen frameLen = {}; CaptureFrameEcInternal() local [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audioeffect/src/ |
H A D | audio_effect_chain.cpp | 285 void AudioEffectChain::ApplyEffectChain(float *bufIn, float *bufOut, uint32_t frameLen, AudioEffectProcInfo procInfo) in ApplyEffectChain() argument 287 size_t inTotlen = frameLen * ioBufferConfig_.inputCfg.channels * sizeof(float); in ApplyEffectChain() 288 size_t outTotlen = frameLen * ioBufferConfig_.outputCfg.channels * sizeof(float); in ApplyEffectChain() 306 audioBufIn_.frameLength = frameLen; in ApplyEffectChain() 307 audioBufOut_.frameLength = frameLen; in ApplyEffectChain()
|
H A D | audio_effect_chain_adapter.cpp | 71 bufferAttr->frameLen); in EffectChainManagerProcess()
|
H A D | audio_effect_chain_manager.cpp | 383 size_t totLen = static_cast<size_t>(bufferAttr->frameLen * bufferAttr->numChans * sizeof(float)); in ApplyAudioEffectChain() 395 audioEffectChain->ApplyEffectChain(bufferAttr->bufIn, bufferAttr->bufOut, bufferAttr->frameLen, procInfo); in ApplyAudioEffectChain()
|
/foundation/multimedia/audio_framework/test/fuzztest/audioeffect_fuzzer/ |
H A D | audio_effect_fuzzer.cpp | 114 int frameLen = *reinterpret_cast<const int*>(rawData); in ApplyAudioEffectChainFuzzTest() local 117 auto eBufferAttr = make_unique<EffectBufferAttr>(bufIn, bufOut, numChans, frameLen); in ApplyAudioEffectChainFuzzTest()
|
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/hdi/ |
H A D | hdi_sink.c | 1614 static void DoSpatializationFading(float *buf, int8_t fadingState, int8_t *fadingCount, int32_t frameLen, in DoSpatializationFading() argument 1622 for (int32_t i = 0; i < frameLen; i++) { in DoSpatializationFading() 1625 ((*fadingCount) * frameLen + i * fadingState) / (float)(SPATIALIZATION_FADING_FRAMECOUNT * frameLen); in DoSpatializationFading() 1639 int32_t frameLen = bitSize > 0 ? ((int32_t) length / bitSize) : 0; in SinkRenderPrimaryAfterProcess() local 1641 frameLen / DEFAULT_IN_CHANNEL_NUM, DEFAULT_IN_CHANNEL_NUM); in SinkRenderPrimaryAfterProcess() 1642 ConvertFromFloat(u->format, frameLen, u->bufferAttr->tempBufOut, dst); in SinkRenderPrimaryAfterProcess() 1835 int32_t outLength = u->bufferAttr->frameLen * u->bufferAttr->numChanOut * sizeof(float); in UpdateStreamAvailableMap() 1860 for (int32_t k = 0; k < u->bufferAttr->frameLen * u->bufferAttr->numChanOut; k++) { in PrimaryEffectProcess() 1949 int32_t frameLen in SinkRenderPrimaryProcess() local [all...] |
H A D | hdi_source.c | 129 static FrameDesc *AllocateFrameDesc(char *frame, uint64_t frameLen) in AllocateFrameDesc() argument 134 fdesc->frameLen = frameLen; in AllocateFrameDesc()
|
/foundation/multimedia/audio_framework/frameworks/native/audioeffect/test/unittest/effect_unit_test/src/ |
H A D | audio_effect_chain_manager_unit_test.cpp | 555 int frameLen = 960; in HWTEST() local 556 auto eBufferAttr = make_unique<EffectBufferAttr>(bufIn, bufOut, numChans, frameLen); in HWTEST() 583 int frameLen = 960; in HWTEST() local 584 auto eBufferAttr = make_unique<EffectBufferAttr>(bufIn, bufOut, numChans, frameLen); in HWTEST() 611 int frameLen = 960; in HWTEST() local 612 auto eBufferAttr = make_unique<EffectBufferAttr>(bufIn, bufOut, numChans, frameLen); in HWTEST() 639 int frameLen = 960; in HWTEST() local 640 auto eBufferAttr = make_unique<EffectBufferAttr>(bufIn, bufOut, numChans, frameLen); in HWTEST()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbclib/src/ |
H A D | sbc_encoder.cpp | 147 ssize_t frameLen = VALUE_0; in SBCEncode() local 176 frameLen = frame_.Pack(out, frame_, j); in SBCEncode() 180 frameLen = frame_.Pack(out, frame_, VALUE_0); in SBCEncode() 184 *written = frameLen; in SBCEncode()
|