/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/include/ |
H A D | nstackx_dfile_frame.h | 242 void EncodeFileHeaderFrame(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, size_t *frameLength); 244 size_t *frameLength); 245 int32_t EncodeFileDataFrame(FileList *fileList, uint16_t fileId, uint8_t *buffer, size_t length, size_t *frameLength); 247 size_t *frameLength); 248 void EncodeFileTransferDoneAckFrame(uint8_t *buffer, size_t length, uint16_t transId, size_t *frameLength); 249 void EncodeSettingFrame(uint8_t *buffer, size_t length, size_t *frameLength, const SettingFrame *settingFramePara); 250 void EncodeRstFrame(uint8_t *buffer, size_t length, size_t *frameLength, uint16_t transId, uint16_t errCode); 251 void EncodeBackPressFrame(uint8_t *buffer, size_t length, size_t *frameLength, uint8_t recvListOverIo);
|
H A D | nstackx_dfile_transfer.h | 295 int32_t SendFrame(DFileTrans *dFileTrans, uint8_t *frame, size_t frameLength, DFileSendState *nextSend,
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/ |
H A D | client_trans_proxy_file_helper.c | 125 if (frame->frameLength < FRAME_HEAD_LEN + FRAME_DATA_SEQ_OFFSET + FRAME_DATA_SEQ_OFFSET) { in UnpackAckReqAndResData() 126 TRANS_LOGE(TRANS_FILE, "unpack ack data fail. frameLen=%{public}d", frame->frameLength); in UnpackAckReqAndResData() 155 fileFrame->frameLength = FRAME_HEAD_LEN + dataLen + FRAME_CRC_LEN; in PackReadFileData() 156 if (fileFrame->frameLength > info->packetSize) { in PackReadFileData() 157 TRANS_LOGE(TRANS_FILE, "frameLength invalid. frameLength=%{public}u", fileFrame->frameLength); in PackReadFileData() 173 fileFrame->frameLength = (uint32_t)tmp; in PackReadFileData() 174 if (fileFrame->frameLength > info->packetSize) { in PackReadFileData() 175 TRANS_LOGE(TRANS_FILE, "frameLength invali in PackReadFileData() [all...] |
H A D | client_trans_proxy_file_manager.c | 261 fileFrame->frameLength = FRAME_HEAD_LEN + dataLen; in PackFileTransStartInfo() 262 if (fileFrame->frameLength > info->packetSize) { in PackFileTransStartInfo() 263 TRANS_LOGE(TRANS_FILE, "frameLength overSize"); in PackFileTransStartInfo() 266 // frameLength = magic(4 bytes) + dataLen(8 bytes) + oneFrameLen(4 bytes) + fileSize(8 bytes) + fileName in PackFileTransStartInfo() 276 // frameLength = seq(4 bytes) + fileName in PackFileTransStartInfo() 277 fileFrame->frameLength = FRAME_DATA_SEQ_OFFSET + len; in PackFileTransStartInfo() 278 if (fileFrame->frameLength > info->packetSize) { in PackFileTransStartInfo() 297 if (fileFrame->frameLength < FRAME_HEAD_LEN + FRAME_DATA_SEQ_OFFSET + sizeof(uint64_t)) { in UnpackFileTransStartInfo() 298 TRANS_LOGE(TRANS_FILE, "frameLength invalid"); in UnpackFileTransStartInfo() 301 // frameLength in UnpackFileTransStartInfo() 1877 CheckFrameLength(int32_t channelId, uint32_t frameLength, int32_t osType, uint32_t *packetSize) CheckFrameLength() argument [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile_frame.c | 139 size_t *frameLength) in EncodeFileHeaderFrameSp() 198 *frameLength = DFILE_FRAME_HEADER_LEN + offset; in EncodeFileHeaderFrameSp() 203 size_t *frameLength) in EncodeFileHeaderFrame() 205 EncodeFileHeaderFrameSp(fileList, fileId, buffer, length, frameLength); in EncodeFileHeaderFrame() 210 size_t *frameLength) in EncodeFileHeaderConfirmFrame() 253 *frameLength = DFILE_FRAME_HEADER_LEN + payloadLength; in EncodeFileHeaderConfirmFrame() 259 size_t *frameLength) in EncodeFileTransferDoneFrame() 280 *frameLength = DFILE_FRAME_HEADER_LEN + payloadLength; in EncodeFileTransferDoneFrame() 284 void EncodeSettingFrame(uint8_t *buffer, size_t length, size_t *frameLength, const SettingFrame *settingFramePara) in EncodeSettingFrame() argument 288 *frameLength in EncodeSettingFrame() 138 EncodeFileHeaderFrameSp(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, size_t *frameLength) EncodeFileHeaderFrameSp() argument 202 EncodeFileHeaderFrame(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, size_t *frameLength) EncodeFileHeaderFrame() argument 209 EncodeFileHeaderConfirmFrame(FileList *fileList, uint16_t *fileId, uint8_t *buffer, size_t length, size_t *frameLength) EncodeFileHeaderConfirmFrame() argument 258 EncodeFileTransferDoneFrame(uint8_t *buffer, size_t length, uint16_t fileIdList[], uint32_t fileIdNum, size_t *frameLength) EncodeFileTransferDoneFrame() argument 308 EncodeRstFrame(uint8_t *buffer, size_t length, size_t *frameLength, uint16_t transId, uint16_t errCode) EncodeRstFrame() argument 326 EncodeBackPressFrame(uint8_t *buffer, size_t length, size_t *frameLength, uint8_t recvListOverIo) EncodeBackPressFrame() argument 348 EncodeFileTransferDoneAckFrame(uint8_t *buffer, size_t length, uint16_t transId, size_t *frameLength) EncodeFileTransferDoneAckFrame() argument [all...] |
H A D | nstackx_dfile_transfer.c | 306 int32_t SendFrame(DFileTrans *dFileTrans, uint8_t *frame, size_t frameLength, DFileSendState *nextSend, in SendFrame() argument 310 int32_t ret = dFileTrans->writeHandle(frame, frameLength, dFileTrans->context); in SendFrame() 311 if (ret != (int32_t)frameLength) { in SendFrame()
|
/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | audio_down_mix_stereo.cpp | 82 int32_t AudioDownMixStereo::Apply(const int32_t &frameLength, float *input, float *output) in Apply() argument 88 int32_t ret = mixer_->Apply(frameLength, input, output); in Apply()
|
/foundation/multimedia/audio_framework/services/audio_service/common/include/ |
H A D | audio_down_mix_stereo.h | 25 int32_t Apply(const int32_t &frameLength, float *input, float *output);
|
H A D | i_audio_mcr_mixer.h | 24 virtual int32_t Apply(const int32_t &frameLength, float *input, float *output) = 0;
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/proxy/ |
H A D | client_trans_proxy_file_manager_test.cpp | 295 fileFrame.frameLength = PROXY_BR_MAX_PACKET_SIZE + 1; in HWTEST_F() 327 fileFrame.frameLength = PROXY_BR_MAX_PACKET_SIZE - 1; in HWTEST_F() 657 frame.frameLength = 0; in HWTEST_F() 670 frame.frameLength = TEST_HEADER_LENGTH; in HWTEST_F() 735 .frameLength = 0, in HWTEST_F() 749 fileFrame.frameLength = TEST_HEADER_LENGTH; in HWTEST_F() 759 fileFrame.frameLength = TEST_HEADER_LENGTH_MIN; in HWTEST_F() 959 .frameLength = 0, in HWTEST_F() 991 .frameLength = 0, in HWTEST_F() 1002 fileFrame.frameLength in HWTEST_F() [all...] |
H A D | client_trans_proxy_file_manager_mock_test.cpp | 105 .frameLength = 0,
in HWTEST_F() 151 .frameLength = TEST_HEADER_LENGTH,
in HWTEST_F()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/minimp3_adapter/ |
H A D | minimp3_demuxer_plugin.cpp | 234 mp3FrameData = outBuffer.AllocMemory(nullptr, mp3DemuxerRst_.frameLength);
in WriteMp3Data() 240 if (mp3DemuxerRst_.frameLength) {
in WriteMp3Data() 241 mp3FrameData->Write(mp3DemuxerRst_.frameBuffer, mp3DemuxerRst_.frameLength);
in WriteMp3Data() 257 MEDIA_LOG_DD("ReadFrame: mp3DemuxerRst_.frameLength " PUBLIC_LOG_U32 ", pts " PUBLIC_LOG_U64,
in WriteMp3Data() 258 mp3DemuxerRst_.frameLength, outBuffer.pts);
in WriteMp3Data() 439 rst->frameLength = 0;
in AudioDemuxerMp3IterateCallback() 455 rst->frameLength = frameSize;
in AudioDemuxerMp3IterateCallback() 507 (void)memset_s(mp3DemuxerRst_.frameBuffer, mp3DemuxerRst_.frameLength, 0x00, mp3DemuxerRst_.frameLength);
in AudioDemuxerMp3Process()
|
H A D | minimp3_demuxer_plugin.h | 47 uint32_t frameLength;
member
|
/foundation/multimedia/audio_framework/frameworks/native/audioeffect/src/ |
H A D | audio_effect_chain.cpp | 50 audioBufIn_.frameLength = 0; in AudioEffectChain() 51 audioBufOut_.frameLength = 0; in AudioEffectChain() 75 audioBufIn_.frameLength = 0; in AudioEffectChain() 76 audioBufOut_.frameLength = 0; in AudioEffectChain() 306 audioBufIn_.frameLength = frameLen; in ApplyEffectChain() 307 audioBufOut_.frameLength = frameLen; in ApplyEffectChain()
|
H A D | audio_enhance_chain.cpp | 365 audioBufIn_.frameLength = algoCache_.input.size(); in ApplyEnhanceChain() 366 audioBufOut_.frameLength = algoCache_.output.size(); in ApplyEnhanceChain() 375 audioBufOut_.raw, audioBufOut_.frameLength) == 0, in ApplyEnhanceChain()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/demuxer/aac_demuxer/ |
H A D | aac_demuxer_plugin.cpp | 196 aacFrameData = outBuffer.AllocMemory(nullptr, aacDemuxerRst_.frameLength);
in ReadFrame() 202 aacFrameData->Write(aacDemuxerRst_.frameBuffer, aacDemuxerRst_.frameLength);
in ReadFrame() 361 rst->frameLength = 0;
in AudioDemuxerAACProcess() 386 rst->frameLength = length;
in AudioDemuxerAACProcess()
|
H A D | aac_demuxer_plugin.h | 37 uint32_t frameLength;
member
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/acl/ |
H A D | hci_acl.c | 401 static Packet **HciFargment(uint16_t handle, uint8_t flushable, Packet *packet, uint16_t frameLength, int *frameCount) in HciFargment() argument 403 if (frameLength == 0) { in HciFargment() 409 int count = (totalLength / frameLength) + ((totalLength % frameLength) ? 1 : 0); in HciFargment() 420 PacketFragment(packet, fargmented, frameLength); in HciFargment()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/ |
H A D | rfcomm_frames.c | 289 uint8_t frameLength = (modemSts->breakSignal) ? RFCOMM_MSC_FRAME_HAVEBREAK_LEN : RFCOMM_MSC_FRAME_NO_BREAK_LEN; in RfcommSendUihMsc() local 297 header[RFCOMM_LENGTH_1] = EA | (frameLength << 1); in RfcommSendUihMsc() 369 uint8_t frameLength = portConfig ? RFCOMM_RPN_CMDFRAME_LEN : RFCOMM_RPN_REQFRAME_LEN; in RfcommSendUihRpn() local 379 header[RFCOMM_LENGTH_1] = EA | (frameLength << 1); in RfcommSendUihRpn() 482 uint8_t frameLength = (size <= 0x7F) ? (RFCOMM_TEST_FRAME_LEN_MIN + size) : in RfcommSendUihTest() local 494 if ((frameLength) <= 0x7F) { in RfcommSendUihTest() 495 header[len] = EA | ((frameLength) << 1); in RfcommSendUihTest() 498 header[len] = ((frameLength) & 0x7F) << 1; in RfcommSendUihTest() 500 header[len] = (frameLength) >> RFCOMM_SHIFT_LENGTH2; in RfcommSendUihTest()
|
/foundation/multimedia/av_codec/services/engine/codec/audio/encoder/ |
H A D | audio_ffmpeg_aac_encoder_plugin.cpp | 76 uint32_t frameLength = static_cast<uint32_t>(aacLength) + ADTS_HEADER_SIZE; in GetAdtsHeader() local 81 adtsHeader += (((chanCfg & 0x3) << 0x6) + (frameLength >> 0xB)); in GetAdtsHeader() 82 adtsHeader += ((frameLength & 0x7FF) >> 0x3); in GetAdtsHeader() 83 adtsHeader += (((frameLength & 0x7) << 0x5) + 0x1F); in GetAdtsHeader()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/include/ |
H A D | client_trans_proxy_file_manager.h | 77 uint32_t frameLength; member
|
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | audio_spatial_channel_converter.cpp | 147 AudioBuffer inBuffer = {.frameLength = AUDIO_VIVID_SAMPLES, in Process() 150 AudioBuffer outBuffer = {.frameLength = AUDIO_VIVID_SAMPLES, in Process()
|
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/ |
H A D | audio_effect.h | 349 size_t frameLength; member 458 uint32_t frameLength; member
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_encoder/aac/ |
H A D | ffmpeg_aac_encoder_plugin.cpp | 109 uint32_t frameLength = static_cast<uint32_t>(aacLength + ADTS_HEADER_SIZE); in GetAdtsHeader() local 114 adtsHeader += (((chanCfg & 0x3) << 0x6) + (frameLength >> 0xB)); in GetAdtsHeader() 115 adtsHeader += ((frameLength & 0x7FF) >> 0x3); in GetAdtsHeader() 116 adtsHeader += (((frameLength & 0x7) << 0x5) + 0x1F); in GetAdtsHeader()
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | pro_renderer_stream_impl.cpp | 427 uint32_t frameLength = bufferDesc.bufLength / samplePerFrame; in EnqueueBuffer() local 430 reinterpret_cast<int16_t *>(sinkBuffer_[writeIndex].data()), frameLength, volume); in EnqueueBuffer() 433 reinterpret_cast<int32_t *>(sinkBuffer_[writeIndex].data()), frameLength, volume); in EnqueueBuffer()
|