Home
last modified time | relevance | path

Searched refs:dstBuf (Results 1 - 23 of 23) sorted by relevance

/foundation/distributedhardware/distributed_camera/services/data_process/src/pipeline_node/scale_conversion/
H A Dscale_convert_process.cpp107 std::shared_ptr<DataBuffer> dstBuf = std::make_shared<DataBuffer>(dstBuffSize); in ProcessData() local
110 processedConfig_.GetWidth() * processedConfig_.GetHeight(), dstBuf->Size(), dstBuf }; in ProcessData()
116 dstBuf->frameInfo_ = inputBuffers[0]->frameInfo_; in ProcessData()
117 dstBuf->SetInt32("Videoformat", static_cast<int32_t>(processedConfig_.GetVideoformat())); in ProcessData()
118 dstBuf->SetInt32("alignedWidth", processedConfig_.GetWidth()); in ProcessData()
119 dstBuf->SetInt32("alignedHeight", processedConfig_.GetHeight()); in ProcessData()
120 dstBuf->SetInt32("width", processedConfig_.GetWidth()); in ProcessData()
121 dstBuf->SetInt32("height", processedConfig_.GetHeight()); in ProcessData()
123 DumpFileUtil::WriteDumpFile(dumpFile_, static_cast<void *>(dstBuf in ProcessData()
240 std::shared_ptr<DataBuffer> dstBuf = ScaleConvert() local
262 ConvertResolution(ImageUnitInfo& srcImgInfo, ImageUnitInfo& dstImgInfo, std::shared_ptr<DataBuffer>& dstBuf) ConvertResolution() argument
315 ConvertFormatToNV21(ImageUnitInfo& srcImgInfo, ImageUnitInfo& dstImgInfo, std::shared_ptr<DataBuffer>& dstBuf) ConvertFormatToNV21() argument
357 ConvertFormatToRGBA(ImageUnitInfo& srcImgInfo, ImageUnitInfo& dstImgInfo, std::shared_ptr<DataBuffer>& dstBuf) ConvertFormatToRGBA() argument
[all...]
H A Dscale_convert_process_common.cpp140 std::shared_ptr<DataBuffer> dstBuf = std::make_shared<DataBuffer>(dstBuffSize_); in ProcessData() local
143 processedConfig_.GetWidth() * processedConfig_.GetHeight(), dstBuf->Size(), dstBuf }; in ProcessData()
149 dstBuf->frameInfo_ = inputBuffers[0]->frameInfo_; in ProcessData()
150 dstBuf->SetInt32("Videoformat", static_cast<int32_t>(processedConfig_.GetVideoformat())); in ProcessData()
151 dstBuf->SetInt32("alignedWidth", processedConfig_.GetWidth()); in ProcessData()
152 dstBuf->SetInt32("alignedHeight", processedConfig_.GetHeight()); in ProcessData()
153 dstBuf->SetInt32("width", processedConfig_.GetWidth()); in ProcessData()
154 dstBuf->SetInt32("height", processedConfig_.GetHeight()); in ProcessData()
156 DumpFileUtil::WriteDumpFile(dumpFile_, static_cast<void *>(dstBuf in ProcessData()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/
H A Ddb_ability.cpp57 std::vector<uint64_t> dstBuf(buffLen, 0); in Serialize()
67 dstBuf[buffOffset] = dstBuf[buffOffset] | value; in Serialize()
69 return parcel.WriteVector<uint64_t>(dstBuf); in Serialize()
77 std::vector<uint64_t> dstBuf; in DeSerialize() local
78 parcel.ReadVector<uint64_t>(dstBuf); in DeSerialize()
86 for (uint32_t pos = 0; pos < targetBuff.size() && pos < SERIALIZE_BIT_SIZE * dstBuf.size(); pos++) { in DeSerialize()
91 targetBuff[pos] = (dstBuf[buffOffset] >> innerBuffOffset) & 0x1; in DeSerialize()
/third_party/lz4/lib/
H A Dlz4file.c51 LZ4_byte* dstBuf; member
217 (*lz4fWrite)->dstBuf = (LZ4_byte*)malloc((*lz4fWrite)->dstBufMaxSize); in LZ4F_writeOpen()
218 if ((*lz4fWrite)->dstBuf == NULL) { in LZ4F_writeOpen()
225 free((*lz4fWrite)->dstBuf); in LZ4F_writeOpen()
233 free((*lz4fWrite)->dstBuf); in LZ4F_writeOpen()
240 free((*lz4fWrite)->dstBuf); in LZ4F_writeOpen()
266 lz4fWrite->dstBuf, lz4fWrite->dstBufMaxSize, in LZ4F_write()
274 if(ret != fwrite(lz4fWrite->dstBuf, 1, ret, lz4fWrite->fp)) { in LZ4F_write()
295 lz4fWrite->dstBuf, lz4fWrite->dstBufMaxSize, in LZ4F_writeClose()
301 if (ret != fwrite(lz4fWrite->dstBuf, in LZ4F_writeClose()
[all...]
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Dturbojpeg.h1033 * @param dstBuf pointer to an image buffer that will receive the YUV image.
1058 unsigned char *dstBuf, int pad, int subsamp,
1186 * @param dstBuf pointer to an image buffer that will receive the decompressed
1190 * returned by #tjGetScalingFactors(). The <tt>dstBuf</tt> pointer may also be
1228 unsigned long jpegSize, unsigned char *dstBuf,
1244 * @param dstBuf pointer to an image buffer that will receive the YUV image.
1280 unsigned long jpegSize, unsigned char *dstBuf,
1365 * @param dstBuf pointer to an image buffer that will receive the decoded
1367 * size, but the <tt>dstBuf</tt> pointer can also be used to decode into a
1392 int pad, int subsamp, unsigned char *dstBuf,
[all...]
H A Dtjunittest.c373 static void compTest(tjhandle handle, unsigned char **dstBuf, in compTest() argument
388 if (*dstBuf && *dstSize > 0) memset(*dstBuf, 0, *dstSize); in compTest()
412 TRY_TJ(tjCompressFromYUV(handle, yuvBuf, w, pad, h, subsamp, dstBuf, in compTest()
417 TRY_TJ(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
423 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
437 unsigned char *dstBuf = NULL, *yuvBuf = NULL; in _decompTest() local
449 if ((dstBuf = (unsigned char *)malloc(dstSize)) == NULL) in _decompTest()
451 memset(dstBuf, 0, dstSize); in _decompTest()
477 TRY_TJ(tjDecodeYUV(handle2, yuvBuf, pad, subsamp, dstBuf, scaledWidt in _decompTest()
529 unsigned char *dstBuf = NULL; doTest() local
613 unsigned char *srcBuf = NULL, *dstBuf = NULL; bufSizeTest() local
[all...]
H A Dturbojpeg.c916 unsigned char *dstBuf, int pad, int subsamp, in tjEncodeYUV3()
926 if (width <= 0 || height <= 0 || dstBuf == NULL || pad < 0 || in tjEncodeYUV3()
932 dstPlanes[0] = dstBuf; in tjEncodeYUV3()
955 unsigned char *dstBuf, int subsamp, int flags) in tjEncodeYUV2()
958 dstBuf, 4, subsamp, flags); in tjEncodeYUV2()
963 unsigned char *dstBuf, int subsamp, int flags) in tjEncodeYUV()
966 getPixelFormat(pixelSize, flags), dstBuf, subsamp, in tjEncodeYUV()
1279 unsigned long jpegSize, unsigned char *dstBuf, in tjDecompress2()
1292 if (jpegBuf == NULL || jpegSize <= 0 || dstBuf == NULL || width < 0 || in tjDecompress2()
1348 row_pointer[i] = &dstBuf[(dinf in tjDecompress2()
914 tjEncodeYUV3(tjhandle handle, const unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int pad, int subsamp, int flags) tjEncodeYUV3() argument
953 tjEncodeYUV2(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int subsamp, int flags) tjEncodeYUV2() argument
961 tjEncodeYUV(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelSize, unsigned char *dstBuf, int subsamp, int flags) tjEncodeYUV() argument
1278 tjDecompress2(tjhandle handle, const unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags) tjDecompress2() argument
1365 tjDecompress(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, int height, int pixelSize, int flags) tjDecompress() argument
1428 tjDecodeYUVPlanes(tjhandle handle, const unsigned char **srcPlanes, const int *strides, int subsamp, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags) tjDecodeYUVPlanes() argument
1576 tjDecodeYUV(tjhandle handle, const unsigned char *srcBuf, int pad, int subsamp, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags) tjDecodeYUV() argument
1795 tjDecompressToYUV2(tjhandle handle, const unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pad, int height, int flags) tjDecompressToYUV2() argument
1859 tjDecompressToYUV(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int flags) tjDecompressToYUV() argument
2063 unsigned char *dstBuf = NULL; tjLoadImage() local
[all...]
H A Dtjbench.c143 unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, in decomp()
167 if (dstBuf == NULL) { in decomp()
171 if ((dstBuf = (unsigned char *)malloc((size_t)pitch * scaledh)) == NULL) in decomp()
177 memset(dstBuf, 127, (size_t)pitch * scaledh); in decomp()
198 for (row = 0, dstPtr = dstBuf; row < ntilesh; in decomp()
274 if (tjSaveImage(tempStr, dstBuf, scaledw, 0, scaledh, pf, flags) == -1) in decomp()
294 dstBuf[rindex] = abs(dstBuf[rindex] - y); in decomp()
295 dstBuf[gindex] = abs(dstBuf[ginde in decomp()
142 decomp(unsigned char *srcBuf, unsigned char **jpegBuf, unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, int subsamp, int jpegQual, char *fileName, int tilew, int tileh) decomp() argument
[all...]
H A Dturbojpeg-jni.c519 unsigned char *srcBuf = NULL, *dstBuf = NULL; in TJCompressor_encodeYUV_12() local
537 BAILIF0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_encodeYUV_12()
539 if (tjEncodeYUV2(handle, srcBuf, width, pitch, height, pf, dstBuf, subsamp, in TJCompressor_encodeYUV_12()
541 SAFE_RELEASE(dst, dstBuf); in TJCompressor_encodeYUV_12()
547 SAFE_RELEASE(dst, dstBuf); in TJCompressor_encodeYUV_12()
688 unsigned char *jpegBuf = NULL, *dstBuf = NULL; in TJDecompressor_decompress() local
705 BAILIF0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJDecompressor_decompress()
708 &dstBuf[y * actualPitch + x * tjPixelSize[pf]], width, in TJDecompressor_decompress()
710 SAFE_RELEASE(dst, dstBuf); in TJDecompressor_decompress()
716 SAFE_RELEASE(dst, dstBuf); in TJDecompressor_decompress()
870 unsigned char *jpegBuf = NULL, *dstBuf = NULL; Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI() local
914 unsigned char *dstBuf = NULL; TJDecompressor_decodeYUV() local
[all...]
/foundation/window/window_manager_lite/services/wms/
H A Dlite_win.cpp163 uint8_t* dstBuf = layerData->virAddr + dy * layerData->stride + dx * sizeof(LayerColorType); in FlushWithModeCopy() local
168 LayerColorType* tmpDst = reinterpret_cast<LayerColorType*>(dstBuf); in FlushWithModeCopy()
173 if (memcpy_s(dstBuf, lineSize, srcBuf, lineSize) != EOK) { in FlushWithModeCopy()
178 dstBuf += layerData->stride; in FlushWithModeCopy()
191 uint8_t* dstBuf = layerData->virAddr + dy * layerData->stride + dx * sizeof(LayerColorType); in FlushWithModeBlend() local
194 LayerColorType* tmpDst = reinterpret_cast<LayerColorType*>(dstBuf); in FlushWithModeBlend()
224 dstBuf += layerData->stride; in FlushWithModeBlend()
H A Dlite_wm.cpp601 uint8_t* dstBuf = layerData_->virAddr + y1 * layerData_->stride + x1 * sizeof(LayerColorType); in DrawMouseCursor() local
604 LayerColorType* tmpDst = reinterpret_cast<LayerColorType*>(dstBuf); in DrawMouseCursor()
616 dstBuf += layerData_->stride; in DrawMouseCursor()
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fBufferCopyTests.cpp85 deUint32 dstBuf = 0; in iterate() local
103 dstBuf = genBuffer(); in iterate()
104 glBindBuffer(m_dstTarget, dstBuf); in iterate()
110 isOk = verifier.verify(dstBuf, dstRef.getPtr(), 0, m_dstSize, m_dstTarget) && isOk; in iterate()
116 glBindBuffer(m_dstTarget, dstBuf); in iterate()
122 isOk = verifier.verify(dstBuf, dstRef.getPtr(), 0, m_dstSize, m_dstTarget) && isOk; in iterate()
/foundation/distributedhardware/distributed_camera/services/data_process/include/pipeline_node/scale_conversion/
H A Dscale_convert_process.h70 std::shared_ptr<DataBuffer>& dstBuf);
72 std::shared_ptr<DataBuffer>& dstBuf);
74 std::shared_ptr<DataBuffer>& dstBuf);
/foundation/multimedia/image_effect/frameworks/native/efilter/base/
H A Defilter.cpp481 EffectBuffer *dstBuf = dst.get(); in RenderInner() local
482 CHECK_AND_RETURN_RET_LOG(srcBuf != nullptr && dstBuf != nullptr, ErrorCode::ERR_INPUT_NULL, in RenderInner()
483 "src or dst is null! src=%{public}p, dst=%{public}p", srcBuf, dstBuf); in RenderInner()
521 CreateDmaEffectBufferIfNeed(runningType, dstBuf, input == nullptr ? srcBuf : input.get(), context, output); in RenderInner()
524 res = Render(input == nullptr ? srcBuf : input.get(), output == nullptr ? dstBuf : output.get(), context); in RenderInner()
529 MemcpyHelper::CopyData(output.get(), dstBuf); in RenderInner()
/third_party/mesa3d/src/gallium/targets/haiku-softpipe/
H A DSoftwareRenderer.cpp232 RasBuf32 dstBuf(fInfo); in Display()
235 RasBuf32 dstClip = dstBuf; in Display()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/resize_crop/smp/
H A Dsmp_resize_crop.c716 uint8_t *dstBuf = (uint8_t*)((uintptr_t)dst->au64VirAddr[0]); in ImgYuvCropU8c1() local
718 uint8_t *dstPtr = dstBuf; in ImgYuvCropU8c1()
724 HI_ASSERT(dstPtr - dstBuf == boxHeight * dstStride); in ImgYuvCropU8c1()
/foundation/graphic/graphic_utils_lite/interfaces/innerkits/
H A Dgraphic_neon_utils.h263 static inline void SetPixelColor_ARGB8888(uint8_t* dstBuf, uint8_t* srcBuf) in SetPixelColor_ARGB8888() argument
271 vst4_u8(dstBuf, vDstBuf); in SetPixelColor_ARGB8888()
/foundation/multimedia/camera_lite/services/impl/src/
H A Dcamera_device.cpp282 char *dstBuf = reinterpret_cast<char *>(dst); in CopyCodecOutput() local
285 errno_t ret = memcpy_s(dstBuf, *size, (void *)(buffer->buffer[i].buf + buffer->buffer[i].offset), packSize); in CopyCodecOutput()
290 dstBuf += packSize; in CopyCodecOutput()
/third_party/musl/Benchmark/musl/
H A Dlibc_string.cpp661 char* dstBuf = haystack.data(); in BM_function_Strlcat() local
666 benchmark::DoNotOptimize(strlcat(dstBuf, srcBuf, nbytes)); in BM_function_Strlcat()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_base_render_util.cpp644 bool ConvertBufferColorGamut(std::vector<uint8_t>& dstBuf, const sptr<OHOS::SurfaceBuffer>& srcBuf,
659 dstBuf.resize(bufferSize);
668 uint8_t* dst = &dstBuf[offsetDst];
677 dstBuf.resize(offsetDst); // dstBuf size might not be as large ad srcBuf in HDR
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/class_file/
H A Dfile_n_exporter.cpp608 string dstBuf = dest + "/" + string(entp->d_name); in DirMove() local
609 if (entp->d_type == DT_DIR && DirMove(srcBuf.c_str(), dstBuf.c_str()) != SUCCESS) { in DirMove()
615 if (FileCopy(srcBuf.c_str(), dstBuf.c_str()) != SUCCESS) { in DirMove()
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_utils.cpp631 uint8_t* dstBuf = dest; in SetDestAndSrc() local
635 pipeLine.Invoke(dstBuf, srcBuf, opa); in SetDestAndSrc()
636 dstBuf += dstStep; in SetDestAndSrc()
641 COLOR_FILL_BLEND(dstBuf, destMode, srcBuf, srcMode, opa); in SetDestAndSrc()
642 dstBuf += destByteSize; in SetDestAndSrc()
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
H A DSurface.cpp3470 char *dstBuf = (char*)dst->lockInternal(-1, -1, 0, sw::LOCK_READWRITE, sw::PRIVATE) + dstStart; in copyCubeEdge() local
3472 for(int i = 0; i < srcW; ++i, dstBuf += dstDelta, srcBuf += srcDelta) in copyCubeEdge()
3474 memcpy(dstBuf, srcBuf, srcBytes); in copyCubeEdge()

Completed in 36 milliseconds