Home
last modified time | relevance | path

Searched refs:srcBuffer (Results 1 – 25 of 74) sorted by relevance

123

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/
H A Dimage_format_convert_utils.h26 …static bool RGB565ToNV12P010(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo…
30 …static bool RGBAToNV12P010(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &…
32 …static bool RGBAToNV21P010(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &…
34 …static bool BGRAToNV12P010(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &…
36 …static bool BGRAToNV21P010(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &…
38 …static bool RGBToNV12P010(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &d…
40 …static bool RGBToNV21P010(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &d…
118 …static bool RGBToNV21(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &destI…
120 …static bool RGBToNV12(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &destI…
124 …static bool NV21ToRGB(const uint8_t *srcBuffer, const YUVDataInfo &yDInfo, DestConvertInfo &destIn…
[all …]
H A Dimage_format_convert_ext_utils.h54 …static bool RGBAToNV12P010(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &…
56 …static bool RGBAToNV21P010(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &…
62 …static bool RGBToNV12P010(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &d…
120 …static bool RGBToNV21(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &destI…
122 …static bool RGBToNV12(const uint8_t *srcBuffer, const RGBDataInfo &rgbInfo, DestConvertInfo &destI…
126 …static bool NV21ToRGB(const uint8_t *srcBuffer, const YUVDataInfo &yDInfo, DestConvertInfo &destIn…
128 …static bool NV21ToRGBA(const uint8_t *srcBuffer, const YUVDataInfo &yDInfo, DestConvertInfo &destI…
130 …static bool NV21ToBGRA(const uint8_t *srcBuffer, const YUVDataInfo &yDInfo, DestConvertInfo &destI…
136 …static bool NV12ToRGBA(const uint8_t *srcBuffer, const YUVDataInfo &yDInfo, DestConvertInfo &destI…
138 …static bool NV12ToBGRA(const uint8_t *srcBuffer, const YUVDataInfo &yDInfo, DestConvertInfo &destI…
[all …]
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/executor/
H A Dzip_output.cpp65 if (!srcBuffer || !destBuffer) { in Execute()
90 if (memcpy_s(srcBuffer->content + srcBuffer->offset, in Execute()
95 srcBuffer->offset = srcBuffer->offset + content_size; in Execute()
96 srcBuffer->content[srcBuffer->offset] = '\n'; in Execute()
97 srcBuffer->offset = srcBuffer->offset + 1; in Execute()
111 if (!srcBuffer || !destBuffer) { in CompressAndWriteToFd()
115 if (srcBuffer->offset > 0) { in CompressAndWriteToFd()
150 if (memcpy_s(srcBuffer->content + srcBuffer->offset, in CompressBigLine()
156 srcBuffer->offset = srcBuffer->offset + process_size; in CompressBigLine()
162 srcBuffer->content[srcBuffer->offset] = '\n'; in CompressBigLine()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dimage_format_convert_utils.cpp299 srcParam.buffer = srcBuffer; in YuvP010ToRGB10()
405 srcParam.buffer = srcBuffer; in RGBToYuvP010()
437 srcParam.buffer = srcBuffer; in RGB10ToYuv()
532 srcParam.buffer = srcBuffer; in RGB10ToYuvP010()
596 srcParam.buffer = srcBuffer; in YUVToRGB10()
649 srcParam.buffer = srcBuffer; in YuvToYuvP010()
707 srcParam.buffer = srcBuffer; in YuvP010ToYuv()
788 srcParam.buffer = srcBuffer;
815 srcParam.buffer = srcBuffer; in YuvP010ToRGB()
910 srcParam.buffer = srcBuffer;
[all …]
H A Dimage_format_convert_ext_utils.cpp280 srcParam.buffer = srcBuffer;
340 srcParam.buffer = srcBuffer; in YuvToRGB()
423 srcParam.buffer = srcBuffer; in RGBToI420ToI010ToP010()
543 srcParam.buffer = srcBuffer; in RGB10ToRGBToI420ToYuv()
591 srcParam.buffer = srcBuffer;
694 srcParam.buffer = srcBuffer;
828 srcParam.buffer = srcBuffer;
923 srcParam.buffer = srcBuffer;
997 srcParam.buffer = srcBuffer;
1221 srcParam.buffer = srcBuffer; in RGBToI420ToYuv()
[all …]
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/test/buffer_handle/
H A Dnative_buffer_test.cpp103 NativeBuffer srcBuffer; variable
104 NativeBuffer destBuffer(srcBuffer);
116 NativeBuffer srcBuffer(srcHandle);
120 NativeBuffer destBuffer(srcBuffer);
133 NativeBuffer srcBuffer(srcHandle);
150 NativeBuffer srcBuffer(srcHandle);
159 destBuffer = srcBuffer;
172 NativeBuffer srcBuffer(srcHandle);
181 destBuffer = std::move(srcBuffer);
194 NativeBuffer srcBuffer; variable
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dimage_format_convert_fail_test.cpp69 const_uint8_buffer_type srcBuffer = src; variable
83 EXPECT_EQ(cvtFunc(srcBuffer, rgbInfo, destInfo, colorspace), true);
141 const_uint8_buffer_type srcBuffer = nullptr; variable
147 EXPECT_EQ(cvtFunc(srcBuffer, rgbInfo, destInfo, colorspace), false);
161 const_uint8_buffer_type srcBuffer = nullptr; variable
181 const_uint8_buffer_type srcBuffer = nullptr; variable
205 const_uint8_buffer_type srcBuffer = src; variable
219 EXPECT_EQ(cvtFunc(srcBuffer, rgbInfo, destInfo, colorspace), false);
256 EXPECT_EQ(cvtFunc(srcBuffer, rgbInfo, destInfo, colorspace), false);
328 EXPECT_EQ(cvtFunc(srcBuffer, rgbInfo, destInfo, colorspace), false);
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.50/
H A Dchangelogs-multimedia.md166 uint8_t* srcBuffer = imgComponent.byteBuffer;
181 // srcBuffer为相机返回的预览流数据buffer
189 uint8_t* srcBuffer = imgComponent.byteBuffer;
208 srcBuffer += imgComponent.rowStride;
218 // 用法3. 将srcBuffer预览流数据和stride信息一起传给支持stride的接口处理
240 // srcBuffer为相机返回的预览流数据buffer
248 uint8_t* srcBuffer = imgComponent.byteBuffer;
267 srcBuffer += imgComponent.rowStride;
277 // 用法3. 将srcBuffer预览流数据和stride信息一起传给支持stride的接口处理
365 srcBuffer += imgComponent.rowStride;
[all …]
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/pipeline/filters/source/
H A Dimage_source_filter.cpp48 ErrorCode UpdateInputBufferIfNeed(std::shared_ptr<EffectBuffer> &srcBuffer, std::shared_ptr<EffectB… in UpdateInputBufferIfNeed() argument
55 .width_ = srcBuffer->bufferInfo_->width_, in UpdateInputBufferIfNeed()
56 .height_ = srcBuffer->bufferInfo_->height_, in UpdateInputBufferIfNeed()
57 .len_ = srcBuffer->bufferInfo_->len_, in UpdateInputBufferIfNeed()
58 .formatType_ = srcBuffer->bufferInfo_->formatType_, in UpdateInputBufferIfNeed()
62 MemoryData *memoryData = context->memoryManager_->AllocMemory(srcBuffer->buffer_, memInfo); in UpdateInputBufferIfNeed()
68 *extraInfo = *srcBuffer->extraInfo_; in UpdateInputBufferIfNeed()
72 … if (extraInfo->surfaceBuffer != nullptr && srcBuffer->extraInfo_->surfaceBuffer != nullptr) { in UpdateInputBufferIfNeed()
73 …GraphicTransformType transformType = srcBuffer->extraInfo_->surfaceBuffer->GetSurfaceBufferTransfo… in UpdateInputBufferIfNeed()
88 MemcpyHelper::CopyData(srcBuffer.get(), dst); in UpdateInputBufferIfNeed()
[all …]
/ohos5.0/foundation/multimedia/drm_framework/services/drm_service/client/src/
H A Dmedia_decrypt_module_service_proxy.cpp48 …IMediaDecryptModuleService::DrmBuffer &srcBuffer, IMediaDecryptModuleService::DrmBuffer &dstBuffer) in ProcessDrmBuffer() argument
50 DRM_CHECK_AND_RETURN_RET_LOG(data.WriteUint32(srcBuffer.bufferType), IPC_PROXY_ERR, in ProcessDrmBuffer()
52 DRM_CHECK_AND_RETURN_RET_LOG(data.WriteFileDescriptor(srcBuffer.fd), IPC_PROXY_ERR, in ProcessDrmBuffer()
54 DRM_CHECK_AND_RETURN_RET_LOG(data.WriteUint32(srcBuffer.bufferLen), IPC_PROXY_ERR, in ProcessDrmBuffer()
56 DRM_CHECK_AND_RETURN_RET_LOG(data.WriteUint32(srcBuffer.allocLen), IPC_PROXY_ERR, in ProcessDrmBuffer()
58 DRM_CHECK_AND_RETURN_RET_LOG(data.WriteUint32(srcBuffer.filledLen), IPC_PROXY_ERR, in ProcessDrmBuffer()
60 DRM_CHECK_AND_RETURN_RET_LOG(data.WriteUint32(srcBuffer.offset), IPC_PROXY_ERR, in ProcessDrmBuffer()
62 DRM_CHECK_AND_RETURN_RET_LOG(data.WriteUint32(srcBuffer.sharedMemType), IPC_PROXY_ERR, in ProcessDrmBuffer()
83 …IMediaDecryptModuleService::CryptInfo &cryptInfo, IMediaDecryptModuleService::DrmBuffer &srcBuffer, in DecryptMediaData() argument
133 int32_t ret = ProcessDrmBuffer(data, srcBuffer, dstBuffer); in DecryptMediaData()
/ohos5.0/foundation/multimedia/drm_framework/services/drm_service/server/src/
H A Dmedia_decrypt_module_service_stub.cpp92 IMediaDecryptModuleService::DrmBuffer srcBuffer; in OnRemoteRequest() local
94 srcBuffer.bufferType = data.ReadUint32(); in OnRemoteRequest()
95 srcBuffer.fd = data.ReadFileDescriptor(); in OnRemoteRequest()
96 srcBuffer.bufferLen = data.ReadUint32(); in OnRemoteRequest()
97 srcBuffer.allocLen = data.ReadUint32(); in OnRemoteRequest()
98 srcBuffer.filledLen = data.ReadUint32(); in OnRemoteRequest()
99 srcBuffer.offset = data.ReadUint32(); in OnRemoteRequest()
100 srcBuffer.sharedMemType = data.ReadUint32(); in OnRemoteRequest()
108 int32_t ret = DecryptMediaData(secureDecodrtState, cryptInfo, srcBuffer, dstBuffer); in OnRemoteRequest()
H A Dmedia_decrypt_module_service.cpp83 …IMediaDecryptModuleService::CryptInfo &cryptInfo, IMediaDecryptModuleService::DrmBuffer &srcBuffer, in DecryptMediaData() argument
96 SetDrmBufferInfo(&drmSrcBuffer, &drmDstBuffer, srcBuffer, dstBuffer, bufLen); in DecryptMediaData()
108 (void)::close(srcBuffer.fd); in DecryptMediaData()
131 OHOS::HDI::Drm::V1_0::DrmBuffer* drmDstBuffer, IMediaDecryptModuleService::DrmBuffer &srcBuffer, in SetDrmBufferInfo() argument
135 drmSrcBuffer->bufferType = srcBuffer.bufferType; in SetDrmBufferInfo()
136 drmSrcBuffer->fd = srcBuffer.fd; in SetDrmBufferInfo()
138 drmSrcBuffer->allocLen = srcBuffer.allocLen; in SetDrmBufferInfo()
139 drmSrcBuffer->filledLen = srcBuffer.filledLen; in SetDrmBufferInfo()
140 drmSrcBuffer->offset = srcBuffer.offset; in SetDrmBufferInfo()
141 drmSrcBuffer->fd = srcBuffer.fd; in SetDrmBufferInfo()
/ohos5.0/foundation/multimedia/media_foundation/video_processing_engine/framework/capi/image_processing/
H A Dimage_processing_native.cpp121 sptr<SurfaceBuffer> srcBuffer = nullptr; in ConvertColorSpace() local
122 auto errorCode = GetSurfaceBufferFromPixelMap(sourceImage->GetInnerPixelmap(), srcBuffer); in ConvertColorSpace()
132 errorCode = ConvertColorSpace(srcBuffer, dstBuffer); in ConvertColorSpace()
148 sptr<SurfaceBuffer> srcBuffer = nullptr; in Compose() local
164 errorCode = Compose(srcBuffer, srcGainmap, dstBuffer); in Compose()
180 sptr<SurfaceBuffer> srcBuffer = nullptr; in Decompose() local
197 errorCode = Decompose(srcBuffer, dstBuffer, dstGainmap); in Decompose()
214 sptr<SurfaceBuffer> srcBuffer = nullptr; in GenerateMetadata() local
219 return GenerateMetadata(srcBuffer); // Need to copy metadata to PixelMap in GenerateMetadata()
230 sptr<SurfaceBuffer> srcBuffer = nullptr; in EnhanceDetail() local
[all …]
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/
H A Ddump_compressor.cpp33 DumpStatus DumpCompressor::Compress(CompressBuffer*& srcBuffer, CompressBuffer*& destBuffer) in Compress() argument
38 uint32_t bound = compressBound(srcBuffer->offset); in Compress()
55 size_t srcBufferOffset = srcBuffer->offset; in Compress()
71 …if (FillBuffer(flush, srcBuffer, buffInV, toRead, srcPos, srcBufferOffset) == DumpStatus::DUMP_FAI… in Compress()
92 DumpStatus DumpCompressor::FillBuffer(int& flush, CompressBuffer*& srcBuffer, char*& buffIn, in FillBuffer() argument
99 … if (memmove_s(buffIn, CHUNK, srcBuffer->content + src_pos, srcBufferOffset - src_pos) != EOK) { in FillBuffer()
106 if (memmove_s(buffIn, CHUNK, srcBuffer->content + src_pos, toRead) != EOK) { in FillBuffer()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/manager/colorspace_manager/
H A Dcolorspace_helper.cpp196 void *buffer = srcBuffer->buffer_; in ApplyColorSpaceIfNeed()
199 …ErrorCode res = context->colorSpaceManager_->ApplyColorSpace(srcBuffer.get(), colorSpace, outputCo… in ApplyColorSpaceIfNeed()
204 if (buffer != srcBuffer->buffer_) { in ApplyColorSpaceIfNeed()
210 updateMemory->memoryData_->data = srcBuffer->buffer_; in ApplyColorSpaceIfNeed()
211 updateMemory->memoryData_->memoryInfo.bufferInfo = *srcBuffer->bufferInfo_; in ApplyColorSpaceIfNeed()
212 updateMemory->memoryData_->memoryInfo.extra = srcBuffer->extraInfo_->surfaceBuffer; in ApplyColorSpaceIfNeed()
213 updateMemory->memoryData_->memoryInfo.bufferType = srcBuffer->extraInfo_->bufferType; in ApplyColorSpaceIfNeed()
258 ErrorCode ColorSpaceHelper::ConvertColorSpace(std::shared_ptr<EffectBuffer> &srcBuffer, in ConvertColorSpace() argument
261 EffectColorSpace colorSpace = srcBuffer->bufferInfo_->colorSpace_; in ConvertColorSpace()
273 ErrorCode res = ApplyColorSpaceIfNeed(srcBuffer, context, colorSpace); in ConvertColorSpace()
[all …]
/ohos5.0/base/update/updater/test/unittest/applypatch_test/
H A Dblockset_unittest.cpp102 std::vector<uint8_t> srcBuffer; variable
103 srcBuffer.resize(H_BLOCK_SIZE);
107 std::fill(srcBuffer.begin(), srcBuffer.end(), 0);
109 BlockSet::MoveBlock(srcBuffer, blk, tgtBuffer);
130 std::vector<uint8_t> srcBuffer(blockSize);
134 srcBuffer, patchBuffer.data(), blockSize, isImgDiff);
138 srcBuffer, patchBuffer.data(), blockSize, isImgDiff);
/ohos5.0/drivers/peripheral/clearplay/hdi_service/src/
H A Dmedia_decrypt_module_service.cpp47 const DrmBuffer &srcBuffer, const DrmBuffer &destBuffer) in DecryptMediaData() argument
55 (void)::close(srcBuffer.fd); in DecryptMediaData()
78 …srcData = (uint8_t *)mmap(nullptr, data_size, PROT_READ | PROT_WRITE, MAP_SHARED, srcBuffer.fd, 0); in DecryptMediaData()
82 (void)::close(srcBuffer.fd); in DecryptMediaData()
92 (void)::close(srcBuffer.fd); in DecryptMediaData()
114 (void)::close(srcBuffer.fd); in DecryptMediaData()
122 (void)::close(srcBuffer.fd); in DecryptMediaData()
222 int32_t MediaDecryptModuleService::CopyBuffer(uint8_t *srcBuffer, uint8_t *destBuffer, in CopyBuffer() argument
230 …ret = memcpy_s(destBuffer + offset, subSample.clearHeaderLen, srcBuffer + offset, subSample.clearH… in CopyBuffer()
239 …ret = memcpy_s(destBuffer + offset, subSample.clearHeaderLen, srcBuffer + offset, subSample.payLoa… in CopyBuffer()
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/drm/
H A Dinterface_i_media_decrypt_module.md20 …o](_crypto_info.md) cryptoInfo, [in] struct [DrmBuffer](_drm_buffer.md) srcBuffer, [in] struct [Dr…
30 …oolean secure, [in] struct CryptoInfo cryptoInfo, [in] struct DrmBuffer srcBuffer, [in] struct Drm…
44 | srcBuffer | 待解密数据buffer。 |
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/convert/
H A Dffmpeg_convert.cpp57 Status Resample::Convert(const uint8_t* srcBuffer, const size_t srcLength, uint8_t*& destBuffer, si… in Convert() argument
67 …auto resCode = memcpy_s(&resampleCache_[0] + i * 2 + 1, sizeof(uint8_t), srcBuffer + i, 1); // 0 2… in Convert()
80 … = memcpy_s(&resampleCache_[0] + i * 2, sizeof(uint8_t) * 2, srcBuffer + i * 3 + 1, 2); // 2 3 1 in Convert()
87 tmpInput[0] = srcBuffer; in Convert()
/ohos5.0/foundation/multimedia/drm_framework/services/drm_service/client/include/
H A Dmedia_decrypt_module_service_proxy.h32 …IMediaDecryptModuleService::DrmBuffer &srcBuffer, IMediaDecryptModuleService::DrmBuffer &dstBuffer…
36 int32_t ProcessDrmBuffer(MessageParcel &data, IMediaDecryptModuleService::DrmBuffer &srcBuffer,
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/include/util/
H A Ddump_compressor.h48 DumpStatus Compress(CompressBuffer*& srcBuffer, CompressBuffer*& destBuffer);
51 DumpStatus FillBuffer(int& flush, CompressBuffer*& srcBuffer, char*& buffIn,
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/drm_v1_0/cpp_target/drm/v1_0/
H A Dmedia_decrypt_module_proxy.cpp.txt33 …m::V1_0::CryptoInfo& cryptoInfo, const OHOS::HDI::Drm::V1_0::DrmBuffer& srcBuffer, const OHOS::HDI…
35 …m::V1_0::MediaDecryptModuleProxy::DecryptMediaData_(secure, cryptoInfo, srcBuffer, destBuffer, Rem…
49 …m::V1_0::CryptoInfo& cryptoInfo, const OHOS::HDI::Drm::V1_0::DrmBuffer& srcBuffer, const OHOS::HDI…
70 if (!OHOS::HDI::Drm::V1_0::DrmBufferBlockMarshalling(mediaDecryptModuleData, srcBuffer)) {
71 HDF_LOGE("%{public}s: write srcBuffer failed!", __func__);
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include/
H A Ddm_app_image_info.h78 …int32_t SetThumbnailData(uint8_t *srcBuffer, int32_t srcBufferLen, int32_t copyIndex, int32_t copy… in SetThumbnailData() argument
80 if (srcBuffer == nullptr || srcBufferLen <= 0 || copyLen > srcBufferLen || copyIndex < 0) { in SetThumbnailData()
92 if (memcpy_s(appThumbnail_ + copyIndex, appThumbnailLen_ - copyIndex, srcBuffer, in SetThumbnailData()
/ohos5.0/drivers/peripheral/clearplay/hdi_service/include/drm/v1_0/
H A Dmedia_decrypt_module_service.h31 int32_t DecryptMediaData(bool secure, const CryptoInfo& cryptoInfo, const DrmBuffer& srcBuffer,
44 …int32_t CopyBuffer(uint8_t* srcBuffer, uint8_t* dstBuffer, const std::vector<SubSample>& subSample…
/ohos5.0/drivers/peripheral/clearplay/interfaces/include/drm/v1_0/
H A Dmedia_decrypt_module_proxy.h39 …const OHOS::HDI::Drm::V1_0::DrmBuffer& srcBuffer, const OHOS::HDI::Drm::V1_0::DrmBuffer& destBuffe…
46 …const OHOS::HDI::Drm::V1_0::DrmBuffer& srcBuffer, const OHOS::HDI::Drm::V1_0::DrmBuffer& destBuffe…

123