/foundation/distributedhardware/distributed_camera/services/data_process/src/pipeline_node/scale_conversion/ |
H A D | scale_convert_process_common.cpp | 151 dstBuf->SetInt32("alignedWidth", processedConfig_.GetWidth()); in ProcessData() 169 if (imgInfo.alignedWidth > MAX_IMG_SIZE && imgInfo.alignedHeight > MAX_IMG_SIZE) { in GetImageUnitInfo() 191 findErr = findErr && imgBuf->FindInt32("alignedWidth", imgInfo.alignedWidth); in GetImageUnitInfo() 194 DHLOGE("GetImageUnitInfo failed, width %{public}d, height %{public}d, alignedWidth %{public}d, " in GetImageUnitInfo() 195 "alignedHeight %{public}d.", imgInfo.width, imgInfo.height, imgInfo.alignedWidth, imgInfo.alignedHeight); in GetImageUnitInfo() 199 imgInfo.chromaOffset = static_cast<size_t>(imgInfo.alignedWidth * imgInfo.alignedHeight); in GetImageUnitInfo() 206 DHLOGD("ScaleConvertProcess imgBuf info : Videoformat %{public}d, alignedWidth %{public}d, alignedHeight " in GetImageUnitInfo() 208 imgInfo.colorFormat, imgInfo.alignedWidth, imgInfo.alignedHeight, in GetImageUnitInfo() 229 DHLOGE("srcImginfo fail: width %{public}d, height %{public}d, alignedWidth in CheckScaleConvertInfo() [all...] |
H A D | scale_convert_process.cpp | 118 dstBuf->SetInt32("alignedWidth", processedConfig_.GetWidth()); in ProcessData() 163 findErr = findErr && imgBuf->FindInt32("alignedWidth", imgInfo.alignedWidth); in GetImageUnitInfo() 166 DHLOGE("GetImageUnitInfo failed, width %{public}d, height %{public}d, alignedWidth %{public}d, " in GetImageUnitInfo() 167 "alignedHeight %{public}d.", imgInfo.width, imgInfo.height, imgInfo.alignedWidth, imgInfo.alignedHeight); in GetImageUnitInfo() 171 imgInfo.chromaOffset = static_cast<size_t>(imgInfo.alignedWidth * imgInfo.alignedHeight); in GetImageUnitInfo() 175 DHLOGD("ScaleConvertProcess imgBuf info : Videoformat %{public}d, alignedWidth %{public}d, alignedHeight " in GetImageUnitInfo() 177 imgInfo.colorFormat, imgInfo.alignedWidth, imgInfo.alignedHeight, in GetImageUnitInfo() 198 DHLOGE("srcImginfo fail: width %{public}d, height %{public}d, alignedWidth %{public}d, alignedHeight " in CheckScaleConvertInfo() 200 srcImgInfo.alignedWidth, srcImgInf in CheckScaleConvertInfo() [all...] |
/foundation/distributedhardware/distributed_screen/services/screentransport/screensinkprocessor/decoder/src/ |
H A D | image_sink_decoder.cpp | 139 uint32_t alignedWidth = static_cast<uint32_t>(surfaceBuffer->GetStride()); in OffsetProcess() local 140 uint32_t chromaOffset = alignedWidth * configParam_.GetVideoHeight(); in OffsetProcess() 143 surfaceAddr + srcDataOffset, alignedWidth); in OffsetProcess() 149 dstDataOffset += alignedWidth; in OffsetProcess() 150 srcDataOffset += alignedWidth; in OffsetProcess() 153 srcDataOffset = alignedWidth * alignedHeight_; in OffsetProcess() 156 surfaceAddr + srcDataOffset, alignedWidth); in OffsetProcess() 162 dstDataOffset += alignedWidth; in OffsetProcess() 163 srcDataOffset += alignedWidth; in OffsetProcess()
|
/foundation/distributedhardware/distributed_camera/services/data_process/src/pipeline_node/multimedia_codec/decoder/ |
H A D | decode_data_process.cpp | 520 int32_t alignedWidth = surfaceBuffer->GetStride(); in GetDecoderOutputBuffer() local 521 if (surfaceBuffer->GetSize() > BUFFER_MAX_SIZE || alignedWidth > ALIGNED_WIDTH_MAX_SIZE) { in GetDecoderOutputBuffer() 522 DHLOGE("surface buffer size or alignedWidth too long"); in GetDecoderOutputBuffer() 526 DHLOGD("OutputBuffer alignedWidth %{public}d, alignedHeight %{public}d, timeStamp %{public}ld ns.", in GetDecoderOutputBuffer() 527 alignedWidth, alignedHeight, timeStamp); in GetDecoderOutputBuffer() 528 CopyDecodedImage(surfaceBuffer, alignedWidth, alignedHeight); in GetDecoderOutputBuffer() 534 void DecodeDataProcess::CopyDecodedImage(const sptr<SurfaceBuffer>& surBuf, int32_t alignedWidth, in CopyDecodedImage() argument 537 if (!IsCorrectSurfaceBuffer(surBuf, alignedWidth, alignedHeight)) { in CopyDecodedImage() 543 sourceConfig_.GetVideoformat(), sourceConfig_.GetWidth(), alignedWidth, sourceConfig_.GetHeight(), in CopyDecodedImage() 545 int srcSizeY = alignedWidth * alignedHeigh in CopyDecodedImage() 589 IsCorrectSurfaceBuffer(const sptr<SurfaceBuffer>& surBuf, int32_t alignedWidth, int32_t alignedHeight) IsCorrectSurfaceBuffer() argument [all...] |
H A D | decode_data_process_common.cpp | 567 int32_t alignedWidth = surfaceBuffer->GetStride(); in GetDecoderOutputBuffer() local 568 if (surfaceBuffer->GetSize() > BUFFER_MAX_SIZE || alignedWidth > ALIGNED_WIDTH_MAX_SIZE) { in GetDecoderOutputBuffer() 569 DHLOGE("surface buffer size or alignedWidth too long"); in GetDecoderOutputBuffer() 573 DHLOGD("OutputBuffer alignedWidth %{public}d, alignedHeight %{public}d, timeStamp %{public}" PRId64" ns.", in GetDecoderOutputBuffer() 574 alignedWidth, alignedHeight, timeStamp); in GetDecoderOutputBuffer() 575 CopyDecodedImage(surfaceBuffer, alignedWidth, alignedHeight); in GetDecoderOutputBuffer() 581 void DecodeDataProcess::CopyDecodedImage(const sptr<SurfaceBuffer>& surBuf, int32_t alignedWidth, in CopyDecodedImage() argument 584 if (!IsCorrectSurfaceBuffer(surBuf, alignedWidth, alignedHeight)) { in CopyDecodedImage() 610 bufferOutput->SetInt32("alignedWidth", processedConfig_.GetWidth()); in CopyDecodedImage() 625 bool DecodeDataProcess::IsCorrectSurfaceBuffer(const sptr<SurfaceBuffer>& surBuf, int32_t alignedWidth, in IsCorrectSurfaceBuffer() argument [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/2.0/src/ |
H A D | screenregion.cpp | 350 uint32_t alignedWidth = videoParam_->GetVideoWidth(); in GetWSBuffer() local 362 srcOffset += alignedWidth; in GetWSBuffer() 366 srcOffset = alignedWidth * alignedHeight_; in GetWSBuffer() 377 srcOffset += alignedWidth; in GetWSBuffer()
|
/foundation/distributedhardware/distributed_camera/services/data_process/include/pipeline_node/multimedia_codec/decoder/ |
H A D | decode_data_process.h | 93 void CopyDecodedImage(const sptr<SurfaceBuffer>& surBuf, int32_t alignedWidth, int32_t alignedHeight); 94 bool IsCorrectSurfaceBuffer(const sptr<SurfaceBuffer>& surBuf, int32_t alignedWidth, int32_t alignedHeight);
|
/foundation/distributedhardware/distributed_camera/services/data_process/include/utils/ |
H A D | image_common_type.h | 77 int32_t alignedWidth; member
|
/foundation/distributedhardware/distributed_camera/services/data_process/test/unittest/common/pipeline_node/ |
H A D | decode_data_process_test.cpp | 481 int32_t alignedWidth = TEST_WIDTH; in HWTEST_F() local 483 testDecodeDataProcess_->CopyDecodedImage(surBuf, alignedWidth, alignedHeight); in HWTEST_F()
|
H A D | scale_convert_process_test.cpp | 198 db->SetInt32("alignedWidth", TEST_WIDTH); in HWTEST_F() 270 imgBuf->SetInt32("alignedWidth", TEST_WIDTH); in HWTEST_F() 293 imgBuf->SetInt32("alignedWidth", TEST_WIDTH); in HWTEST_F() 368 srcImgInfo.alignedWidth = TEST_WIDTH2; in HWTEST_F() 524 imgBuf->SetInt32("alignedWidth", TEST_WIDTH); in HWTEST_F() 572 imgBuf->SetInt32("alignedWidth", TEST_WIDTH); in HWTEST_F() 639 db->SetInt32("alignedWidth", TEST_ALIGNEDWIDTH); in HWTEST_F() 696 db->SetInt32("alignedWidth", TEST_ALIGNEDWIDTH); in HWTEST_F()
|