/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | format_converter.cpp | 28 int16_t *dstPtr = reinterpret_cast<int16_t *>(dstDesc.buffer); in S16MonoToS16Stereo() local 31 *(dstPtr++) = *stcPtr; in S16MonoToS16Stereo() 32 *(dstPtr++) = *stcPtr++; in S16MonoToS16Stereo() 44 int16_t *dstPtr = reinterpret_cast<int16_t *>(dstDesc.buffer); in S16StereoToS16Mono() local 47 *(dstPtr++) = (*stcPtr + *(stcPtr + 1)) / 2; // To obtain mono channel, add left to right, then divide by 2 in S16StereoToS16Mono()
|
/foundation/multimedia/media_foundation/engine/pipeline/filters/demux/ |
H A D | data_packer.cpp | 161 uint8_t* dstPtr = GetBufferWritableData(bufferPtr, needCopySize); in PeekRangeInternal() local 162 FALSE_RETURN_V(dstPtr != nullptr, false); in PeekRangeInternal() 170 copySize = CopyFirstBuffer(size, startIndex, dstPtr, bufferPtr, bufferOffset); in PeekRangeInternal() 184 copySize = CopyFirstBuffer(size, startIndex, dstPtr, bufferPtr, bufferOffset); in PeekRangeInternal() 191 dstPtr += copySize; in PeekRangeInternal() 194 (void)CopyFromSuccessiveBuffer(prevOffset, offsetEnd, startIndex, dstPtr, needCopySize); in PeekRangeInternal() 262 uint8_t* dstPtr = GetBufferWritableData(bufferPtr, size); in GetRange() local 263 FALSE_RETURN_V(dstPtr != nullptr, false); in GetRange() 269 currCopySize = CopyFirstBuffer(currCopySize, index, dstPtr, bufferPtr, 0); in GetRange() 271 dstPtr in GetRange() 431 CopyFirstBuffer(size_t size, int32_t index, uint8_t *dstPtr, AVBufferPtr &dstBufferPtr, int32_t bufferOffset) CopyFirstBuffer() argument 450 CopyFromSuccessiveBuffer(uint64_t prevOffset, uint64_t offsetEnd, int32_t startIndex, uint8_t *dstPtr, uint32_t &needCopySize) CopyFromSuccessiveBuffer() argument [all...] |
H A D | data_packer.h | 99 size_t CopyFirstBuffer(size_t size, int32_t index, uint8_t *dstPtr, AVBufferPtr &dstBufferPtr, 102 int32_t CopyFromSuccessiveBuffer(uint64_t prevOffset, uint64_t offsetEnd, int32_t startIndex, uint8_t *dstPtr,
|
/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/ |
H A D | init_utils.c | 63 int SplitString(char *srcPtr, const char *del, char **dstPtr, int maxNum)
in SplitString() argument 65 FSCRYPT_CHECK_RETURN_VALUE(srcPtr != NULL && dstPtr != NULL && del != NULL, -1);
in SplitString() 67 dstPtr[0] = strtok_r(srcPtr, del, &buf);
in SplitString() 69 while ((counter < maxNum) && (dstPtr[counter] != NULL)) {
in SplitString() 74 dstPtr[counter] = strtok_r(NULL, del, &buf);
in SplitString()
|
/foundation/multimedia/media_foundation/engine/foundation/utils/ |
H A D | dump_buffer.cpp | 106 char* dstPtr = tmpStr; in DumpBufferToLog() local 110 len = snprintf_s(dstPtr, 3, 2, "%02x", p[i]); // max write 3 bytes, string len 2 in DumpBufferToLog() 112 dstPtr += len; in DumpBufferToLog()
|
/foundation/filemanagement/storage_service/services/storage_daemon/include/utils/ |
H A D | init_utils.h | 26 int SplitString(char *srcPtr, const char *del, char **dstPtr, int maxNum);
|
/foundation/multimedia/media_foundation/src/buffer/avsharedmemory/ |
H A D | avsharedmemorybase.cpp | 170 uint8_t *dstPtr = base_ + start; in Write() local 171 FALSE_RETURN_V_MSG_E(dstPtr != nullptr, 0, "Inner dstPtr is nullptr"); in Write() 173 auto error = memcpy_s(dstPtr, length, in, length); in Write()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | mesh_builder.cpp | 248 void Convert(uint8_t* dstPtr, size_t dstStride, const uint8_t* srcPtr, size_t srcStride, size_t elements) in Convert() argument 252 reinterpret_cast<typename Converter::OutType*>(dstPtr)[i] = static_cast<typename Converter::OutType>( in Convert() 256 dstPtr += dstStride; in Convert() 333 void Convert(uint8_t* dstPtr, size_t dstStride, const uint8_t* srcPtr, size_t srcStride, size_t elements) in Convert() argument 337 reinterpret_cast<typename DestFn::Type*>(dstPtr)[i] = in Convert() 341 dstPtr += dstStride; in Convert() 640 auto dstPtr = dstData.buffer.data(); in Fill() local 644 CloneData(dstPtr, dstSize, srcPtr, srcElementSize); in Fill() 645 dstPtr += dstData.stride; in Fill() 654 auto dstPtr in Fill() local [all...] |
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | audio_process_in_client.cpp | 733 int16_t *dstPtr = reinterpret_cast<int16_t *>(dstDesc.buffer); in S16MonoToS16Stereo() local 736 *(dstPtr++) = *stcPtr; in S16MonoToS16Stereo() 737 *(dstPtr++) = *stcPtr++; in S16MonoToS16Stereo() 750 int16_t *dstPtr = reinterpret_cast<int16_t *>(dstDesc.buffer); in S32MonoToS16Stereo() local 758 *(dstPtr++) = temp; in S32MonoToS16Stereo() 759 *(dstPtr++) = temp; in S32MonoToS16Stereo() 772 int16_t *dstPtr = reinterpret_cast<int16_t *>(dstDesc.buffer); in S32StereoS16Stereo() local 779 *(dstPtr++) = temp; in S32StereoS16Stereo() 811 int16_t *dstPtr = reinterpret_cast<int16_t *>(dstDesc.buffer); in CopyWithVolume() local 818 *dstPtr in CopyWithVolume() 827 int16_t *dstPtr = reinterpret_cast<int16_t *>(targetData.bufferDesc.buffer); ProcessVolume() local 1548 int16_t *dstPtr = reinterpret_cast<int16_t *>(buffDesc.buffer); DoFadeInOut() local [all...] |
/foundation/multimedia/player_framework/services/engine/histreamer/avmetadatahelper/ |
H A D | av_thumbnail_generator.cpp | 488 uint8_t *dstPtr = static_cast<uint8_t *>(sizeof(OutputFrame) + fetchedFrameAtTime_->GetBase()); in GetYuvDataAlignStride() local 492 ConvertP010ToNV12(surfaceBuffer, dstPtr, stride, outputHeight); in GetYuvDataAlignStride() 498 auto ret = memcpy_s(dstPtr, width, srcPtr, width); in GetYuvDataAlignStride() 503 dstPtr += width; in GetYuvDataAlignStride() 510 auto ret = memcpy_s(dstPtr, width, srcPtr, width); in GetYuvDataAlignStride() 515 dstPtr += width; in GetYuvDataAlignStride()
|
/foundation/multimedia/media_foundation/src/buffer/avbuffer/ |
H A D | avmemory.cpp | 346 uint8_t *dstPtr = addr + start; in Write() local 347 FALSE_RETURN_V_MSG_E(dstPtr != nullptr, 0, "Inner dstPtr is nullptr"); in Write() 348 auto error = memcpy_s(dstPtr, length, in, length); in Write()
|
/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/ |
H A D | avmetadatahelper_impl.cpp | 417 uint8_t *dstPtr = const_cast<uint8_t *>(pixelMap->GetPixels()); in CopySurfaceBufferToPixelMap() local 421 auto ret = memcpy_s(dstPtr, lineByteCount, srcPtr, lineByteCount); in CopySurfaceBufferToPixelMap() 424 dstPtr += lineByteCount; in CopySurfaceBufferToPixelMap() 431 auto ret = memcpy_s(dstPtr, lineByteCount, srcPtr, lineByteCount); in CopySurfaceBufferToPixelMap() 434 dstPtr += lineByteCount; in CopySurfaceBufferToPixelMap()
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | audio_endpoint.cpp | 1380 int16_t *dstPtr = reinterpret_cast<int16_t *>(dupBuffer_.get()); in MixToDupStream() local 1383 int32_t sum = *dstPtr; in MixToDupStream() 1385 *dstPtr = sum > INT16_MAX ? INT16_MAX : (sum < INT16_MIN ? INT16_MIN : sum); in MixToDupStream() 1386 dstPtr++; in MixToDupStream() 1424 int16_t *dstPtr = reinterpret_cast<int16_t *>(dstData.bufferDesc.buffer); in ProcessData() local 1434 *dstPtr++ = sum > INT16_MAX ? INT16_MAX : (sum < INT16_MIN ? INT16_MIN : sum); in ProcessData() 1488 int16_t *dstPtr = reinterpret_cast<int16_t *>(dstData.bufferDesc.buffer); in ProcessSingleData() local 1495 *dstPtr++ = sum > INT16_MAX ? INT16_MAX : (sum < INT16_MIN ? INT16_MIN : sum); in ProcessSingleData()
|
H A D | audio_endpoint_separate.cpp | 615 int16_t *dstPtr = reinterpret_cast<int16_t *>(dstData.bufferDesc.buffer); in ProcessData() local 624 *dstPtr++ = sum > INT16_MAX ? INT16_MAX : (sum < INT16_MIN ? INT16_MIN : sum); in ProcessData()
|