/foundation/CastEngine/castengine_wifi_display/services/protocol/rtcp/src/ |
H A D | rtcp.cpp | 85 auto realSize = sizeof(RtcpSR) - sizeof(ReportItem) + itemCount * sizeof(ReportItem); in Create() local 86 auto bytes = AlignSize(realSize); in Create() 95 SetupPadding(ptr, bytes - realSize); in Create() 186 auto realSize = sizeof(RtcpRR) - sizeof(ReportItem) + itemCount * sizeof(ReportItem); in Create() local 187 auto bytes = AlignSize(realSize); in Create() 196 SetupPadding(ptr, bytes - realSize); in Create() 231 auto realSize = sizeof(RtcpSdes) - sizeof(SdesChunk) + itemTotalSize; in Create() local 232 auto bytes = AlignSize(realSize); in Create() 253 SetupPadding(ptr, bytes - realSize); in Create() 297 auto realSize [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_image.cpp | 152 RSRect SvgImage::CalcDstRect(const Size& realSize, const Rect& viewBox) in CalcDstRect() argument 154 if (NearEqual(realSize.Width(), 0.0f) || NearEqual(realSize.Height(), 0.0f)) { in CalcDstRect() 157 auto scaleValue = std::min(viewBox.Width() / realSize.Width(), viewBox.Height() / realSize.Height()); in CalcDstRect() 158 auto spaceX = viewBox.Width() - realSize.Width() * scaleValue; in CalcDstRect() 159 auto spaceY = viewBox.Height() - realSize.Height() * scaleValue; in CalcDstRect() 162 return RSRect(offsetX, offsetY, realSize.Width() * scaleValue + offsetX, realSize.Height() * scaleValue + offsetY); in CalcDstRect()
|
H A D | svg_image.h | 36 RSRect CalcDstRect(const Size& realSize, const Rect& viewBox);
|
/foundation/arkui/ace_engine/test/unittest/core/svg/ |
H A D | svg_manager_test_ng.cpp | 108 Size realSize(0.0f, 0.0f); in HWTEST_F() 110 RSRect ret = svgImage.CalcDstRect(realSize, viewBox); in HWTEST_F() 111 realSize.SetSize(Size(0.0f, 1.0f)); in HWTEST_F() 112 ret = svgImage.CalcDstRect(realSize, viewBox); in HWTEST_F() 113 realSize.SetSize(Size(1.0f, 0.0f)); in HWTEST_F() 114 ret = svgImage.CalcDstRect(realSize, viewBox); in HWTEST_F() 115 realSize.SetSize(Size(1.0f, 1.0f)); in HWTEST_F() 116 ret = svgImage.CalcDstRect(realSize, viewBox); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_pixel_map_util.cpp | 151 Size realSize; in TransformDataSetForAstc() local 152 pixelMap->GetAstcRealSize(realSize); in TransformDataSetForAstc() 153 dst.SetLeft(dst.GetLeft() - (realSize.width - src.GetRight()) / HALF_F); in TransformDataSetForAstc() 154 dst.SetTop(dst.GetTop() - (realSize.height - src.GetBottom()) / HALF_F); in TransformDataSetForAstc() 155 dst.SetRight(dst.GetRight() + (realSize.width - src.GetRight()) / HALF_F); in TransformDataSetForAstc() 156 dst.SetBottom(dst.GetBottom() + (realSize.height - src.GetBottom()) / HALF_F); in TransformDataSetForAstc() 176 transformData.cropHeight > 0 && transformData.cropLeft + transformData.cropWidth <= realSize.width && in TransformDataSetForAstc() 177 transformData.cropTop + transformData.cropHeight <= realSize.height) { in TransformDataSetForAstc() 184 dst.SetLeft(dst.GetLeft() + (realSize.width - transformData.cropWidth) / HALF_F); in TransformDataSetForAstc() 185 dst.SetTop(dst.GetTop() + (realSize in TransformDataSetForAstc() [all...] |
H A D | rs_image_cache.cpp | 80 auto realSize = type == Media::AllocatorType::SHARE_MEM_ALLOC in CachePixelMap() local 83 MemorySnapshot::Instance().AddCpuMemory(pid, realSize); in CachePixelMap() 151 auto realSize = pixelMap->GetAllocatorType() == Media::AllocatorType::SHARE_MEM_ALLOC in ReleasePixelMapCache() local 154 MemorySnapshot::Instance().RemoveCpuMemory(pid, realSize); in ReleasePixelMapCache() 182 auto realSize = pixelMap->GetAllocatorType() == Media::AllocatorType::SHARE_MEM_ALLOC in ReleasePixelMapCacheUnique() local 185 MemorySnapshot::Instance().RemoveCpuMemory(pid, realSize); in ReleasePixelMapCacheUnique()
|
H A D | rs_image.cpp | 403 Media::Size realSize; in UploadGpu() local 404 pixelMap_->GetAstcRealSize(realSize); in UploadGpu() 409 static_cast<int>(realSize.width), static_cast<int>(realSize.height), in UploadGpu()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_split/ |
H A D | linear_split_layout_algorithm.cpp | 41 OptionalSizeF realSize; in Measure() local 44 realSize.UpdateSizeWithCheck(layoutConstraint->selfIdealSize); in Measure() 45 if (realSize.IsValid()) { in Measure() 50 realSize.UpdateIllegalSizeWithCheck(layoutConstraint->parentIdealSize); in Measure() 70 realSize.SetWidth(width); in Measure() 73 realSize.SetHeight(std::min(maxSize.Height(), childMaxSize.Height())); in Measure() 75 layoutWrapper->GetGeometryNode()->SetFrameSize((realSize.ConvertToSizeT())); in Measure() 82 realSize.SetHeight(height); in Measure() 85 realSize.SetWidth(std::min(maxSize.Width(), childMaxSize.Width())); in Measure() 87 layoutWrapper->GetGeometryNode()->SetFrameSize((realSize in Measure() 99 OptionalSizeF realSize; MeasureBeforeAPI10() local [all...] |
/foundation/multimedia/drm_framework/frameworks/native/test/common/src/ |
H A D | http.cpp | 27 size_t realSize = size * nmemb;
in HttpCurlWriteStrData() local 30 pstr->append((const char *)buffer, realSize);
in HttpCurlWriteStrData() 33 return realSize;
in HttpCurlWriteStrData()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_layout/ |
H A D | linear_layout_utils.cpp | 112 OptionalSizeF realSize; in Measure() local 116 realSize.UpdateSizeWithCheck(layoutConstraint->selfIdealSize); in Measure() 117 if (realSize.IsValid()) { in Measure() 122 realSize.UpdateIllegalSizeWithCheck(parentIdeaSize); in Measure() 125 linearMeasureProperty.realSize = realSize; in Measure() 128 realSize.UpdateIllegalSizeWithCheck(maxSize); in Measure() 129 auto idealSize = realSize.ConvertToSizeT(); in Measure() 177 linearMeasureProperty.realSize.UpdateIllegalSizeWithCheck(ConstrainSize(childTotalSize, minSize, maxSize)); in Measure() 178 layoutWrapper->GetGeometryNode()->SetFrameSize((linearMeasureProperty.realSize in Measure() [all...] |
H A D | linear_layout_utils.h | 28 OptionalSizeF realSize; member
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/ |
H A D | drag_bar_layout_algorithm.cpp | 49 auto realSize = SizeF(DRAG_ICON_WIDTH.ConvertToPx(), DRAG_ICON_HEIGHT.ConvertToPx()); in MeasureContent() local 50 iconOffset_ = Alignment::GetAlignPosition(idealSize, realSize, Alignment::CENTER); in MeasureContent()
|
/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/ |
H A D | ark_interop_loader.cpp | 94 size_t realSize = BUF_SIZE; in LoadCJModule() local 95 if (!ParseLoadParams(env, info, nameBuf, realSize)) { in LoadCJModule()
|
/foundation/arkui/ace_engine/frameworks/core/components/drag_bar/ |
H A D | render_drag_bar.cpp | 113 auto realSize = Size(NormalizeToPx(DRAG_ICON_WIDTH), NormalizeToPx(DRAG_ICON_HEIGHT)); in PerformLayout() local 114 iconOffset_ = Alignment::GetAlignPosition(dragBarSize, realSize, Alignment::CENTER); in PerformLayout() 115 scaleX_ = realSize.Width() / DRAG_BAR_SIZE.Width(); in PerformLayout() 116 scaleY_ = realSize.Height() / DRAG_BAR_SIZE.Height(); in PerformLayout()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/ |
H A D | flex_layout_algorithm.cpp | 229 void FlexLayoutAlgorithm::TravelChildrenFlexProps(LayoutWrapper* layoutWrapper, const SizeF& realSize) in TravelChildrenFlexProps() argument 856 auto realSize = CreateIdealSizeByPercentRef(layoutConstraint.value(), axis, measureType, needToConstraint, in Measure() local 859 layoutWrapper->GetGeometryNode()->SetFrameSize(realSize); in Measure() 862 mainAxisSize_ = GetMainAxisSizeHelper(realSize, direction_); in Measure() 910 TravelChildrenFlexProps(layoutWrapper, realSize); in Measure() 911 selfIdealCrossAxisSize_ = GetCrossAxisSizeHelper(realSize, direction_); in Measure() 960 realSize.UpdateIllegalSizeWithCheck( in Measure() 962 layoutWrapper->GetGeometryNode()->SetFrameSize(realSize); in Measure()
|
H A D | flex_layout_algorithm.h | 72 void TravelChildrenFlexProps(LayoutWrapper* layoutWrapper, const SizeF& realSize);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image_animator/ |
H A D | image_animator_pattern.cpp | 131 CalcSize realSize = { CalcLength(images_[index].width), CalcLength(images_[index].height) };
in UpdateShowingImageInfo() local 132 imageLayoutProperty->UpdateUserDefinedIdealSize(realSize);
in UpdateShowingImageInfo() 184 CalcSize realSize = { CalcLength(image.width), CalcLength(image.height) };
in UpdateCacheImageInfo() local 185 imageLayoutProperty->UpdateUserDefinedIdealSize(realSize);
in UpdateCacheImageInfo()
|
/foundation/multimedia/media_foundation/engine/pipeline/filters/source/media_source/ |
H A D | media_source_filter.cpp | 181 auto realSize = data->GetMemory()->GetCapacity(); in PullData() local 182 readSize = (readSize > realSize) ? realSize : readSize; in PullData()
|
/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/ |
H A D | stream_demuxer.cpp | 279 auto realSize = data->GetMemory()->GetCapacity(); in PullData() local 280 readSize = (readSize > realSize) ? realSize : readSize; in PullData()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/ |
H A D | dialog_layout_algorithm.cpp | 91 OptionalSizeF realSize; in Measure() local 93 realSize.UpdateIllegalSizeWithCheck(parentIdealSize); in Measure() 94 layoutWrapper->GetGeometryNode()->SetFrameSize(realSize.ConvertToSizeT()); in Measure() 95 layoutWrapper->GetGeometryNode()->SetContentSize(realSize.ConvertToSizeT()); in Measure()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/ |
H A D | image_pattern.cpp | 1919 CalcSize realSize = { 1921 imageLayoutProperty->UpdateUserDefinedIdealSize(realSize); 1965 CalcSize realSize = { 1967 imageLayoutProperty->UpdateUserDefinedIdealSize(realSize); 2026 CalcSize realSize = { 2031 layoutProperty->UpdateUserDefinedIdealSize(realSize);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | flatbuffer_schema.cpp | 216 auto realSize = flatbuffers::ReadScalar<flatbuffers::uoffset_t>(inValue.first); in CheckSizePrefixRawValue() local 217 if (realSize != inValue.second - SIZE_PREFIX_SIZE) { in CheckSizePrefixRawValue() 218 LOGE("[FBSchema][CheckSizePreValue] RealSize=%" PRIu32 " mismatch %" PRIu32, realSize, inValue.second); in CheckSizePrefixRawValue()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | pixel_map.cpp | 2521 Size realSize; in ReadAstcRealSize() local 2522 realSize.width = parcel.ReadInt32(); in ReadAstcRealSize() 2523 realSize.height = parcel.ReadInt32(); in ReadAstcRealSize() 2524 pixelMap->SetAstcRealSize(realSize); in ReadAstcRealSize()
|