/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | volume_tools.cpp | 202 if (frameSize < MIN_FRAME_SIZE) { in Process() 267 if (frameSize <= MIN_FRAME_SIZE || frameSize >= MAX_FRAME_SIZE) { in CountU8Volume() 286 size_t size = frameSize / split; in CountU8Volume() 311 if (frameSize <= MIN_FRAME_SIZE || frameSize >= MAX_FRAME_SIZE) { in CountS16Volume() 330 size_t size = frameSize / split; in CountS16Volume() 355 if (frameSize <= MIN_FRAME_SIZE || frameSize >= MAX_FRAME_SIZE) { in CountS24Volume() 377 size_t size = frameSize / split; in CountS24Volume() 402 if (frameSize <= MIN_FRAME_SIZE || frameSize >= MAX_FRAME_SIZE) { in CountS32Volume() 424 size_t size = frameSize / split; in CountS32Volume() 450 if (frameSize <= MIN_FRAME_SIZE || frameSize >= MAX_FRAME_SIZE) { in CountF32Volume() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/ |
H A D | button_layout_algorithm.cpp | 183 auto minSize = std::min(frameSize.Height(), frameSize.Width()); in HandleBorderRadius() 240 … frameSize = SizeF(frameSize.Width(), childSize_.Height() + topPadding + bottomPadding); in PerformMeasureSelf() 256 minLength = frameSize.Width(); in HandleLabelCircleButtonFrameSize() 259 minLength = frameSize.Height(); in HandleLabelCircleButtonFrameSize() 261 minLength = std::min(frameSize.Width(), frameSize.Height()); in HandleLabelCircleButtonFrameSize() 263 frameSize.SetWidth(minLength); in HandleLabelCircleButtonFrameSize() 264 frameSize.SetHeight(minLength); in HandleLabelCircleButtonFrameSize() 272 SizeF frameSize = { -1, -1 }; in MeasureCircleButton() local 328 pattern->SetPreFrameSize(frameSize); in MarkNeedFlushMouseEvent() 365 frameSize.SetHeight(frameSize.Height() + agingPadding); in NeedAgingMeasure() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | box_layout_algorithm.cpp | 90 OptionalSizeF frameSize; in PerformMeasureSelfWithChildList() local 95 frameSize.UpdateSizeWithCheck(layoutConstraint->selfIdealSize); in PerformMeasureSelfWithChildList() 96 if (frameSize.IsValid()) { in PerformMeasureSelfWithChildList() 102 if (frameSize.IsValid()) { in PerformMeasureSelfWithChildList() 103 frameSize.Constrain(minSize, maxSize, version10OrLarger); in PerformMeasureSelfWithChildList() 113 frameSize.UpdateIllegalSizeWithCheck(contentSize); in PerformMeasureSelfWithChildList() 137 frameSize.UpdateIllegalSizeWithCheck(childFrame); in PerformMeasureSelfWithChildList() 142 frameSize.ConstrainFloat(minSize, maxSize, true, version10OrLarger); in PerformMeasureSelfWithChildList() 144 frameSize.Constrain(minSize, maxSize, version10OrLarger); in PerformMeasureSelfWithChildList() 146 frameSize.UpdateIllegalSizeWithCheck(SizeF { 0.0f, 0.0f }); in PerformMeasureSelfWithChildList() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | textpicker_layout_algorithm.cpp | 53 SizeF frameSize = { -1.0f, -1.0f }; in Measure() local 71 pickerItemHeight_ = frameSize.Height(); in Measure() 77 MeasureText(layoutWrapper, frameSize); in Measure() 106 frameSize.Height(); in GetGradientPercent() 167 frameSize.SetWidth(pickerWidth); in GetColumnSize() 168 frameSize.SetHeight(pickerHeight); in GetColumnSize() 216 SizeF frameSize = { -1.0f, -1.0f }; in ChangeTextStyle() local 221 frameSize.SetWidth(size.Width()); in ChangeTextStyle() 228 frameSize.SetHeight( in ChangeTextStyle() 231 frameSize.SetHeight( in ChangeTextStyle() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/marquee/ |
H A D | marquee_layout_algorithm.cpp | 59 OptionalSizeF frameSize; in Measure() local 62 frameSize.UpdateSizeWithCheck(layoutConstraint->selfIdealSize); in Measure() 63 if (frameSize.IsValid()) { in Measure() 67 frameSize.UpdateIllegalSizeWithCheck(layoutConstraint->parentIdealSize); in Measure() 68 frameSize.UpdateIllegalSizeWithCheck(layoutConstraint->percentReference); in Measure() 70 frameSize.Constrain(SizeF { 0.0f, 0.0f }, SizeF { maxSize.Width(), childFrame.Height() }); in Measure() 73 layoutWrapper->GetGeometryNode()->SetFrameSize(frameSize.ConvertToSizeT()); in Measure() 78 auto frameSize = layoutWrapper->GetGeometryNode()->GetFrameSize(); in Layout() local 98 auto minusLen = frameSize.Width() - textGeoNode->GetMarginFrameSize().Width(); in Layout()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/ |
H A D | drawing_decoration_painter.h | 57 static void PaintGrayScale(const RSRoundRect& frameSize, RSCanvas* canvas, float grayscale); 58 static void PaintBrightness(const RSRoundRect& frameSize, RSCanvas* canvas, float brightness); 59 static void PaintContrast(const RSRoundRect& frameSize, RSCanvas* canvas, float contrast); 60 …static void PaintColorBlend(const RSRoundRect& frameSize, RSCanvas* canvas, const Color& colorBlen… 61 static void PaintSaturate(const RSRoundRect& frameSize, RSCanvas* canvas, float saturate); 62 static void PaintSepia(const RSRoundRect& frameSize, RSCanvas* canvas, float sepia); 63 static void PaintInvert(const RSRoundRect& frameSize, RSCanvas* canvas, float invert); 64 static void PaintHueRotate(const RSRoundRect& frameSize, RSCanvas* canvas, float hueRotate);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_layout/ |
H A D | linear_layout_utils.cpp | 197 auto frameSize = child->GetGeometryNode()->GetMarginFrameSize(); in AdjustChildOnDirection() local 230 yPos += frameSize.Height(); in Layout() 243 auto frameSize = child->GetGeometryNode()->GetMarginFrameSize(); in Layout() local 247 xPos += frameSize.Width(); in Layout() 265 auto frameSize = child->GetGeometryNode()->GetMarginFrameSize(); in LayoutCondition() local 266 frameHeightSum += frameSize.Height(); in LayoutCondition() 300 yPos += frameSize.Height(); in LayoutCondition() 315 auto frameSize = child->GetGeometryNode()->GetMarginFrameSize(); in LayoutCondition() local 316 frameWidthSum += frameSize.Width(); in LayoutCondition() 343 auto frameSize = child->GetGeometryNode()->GetMarginFrameSize(); in LayoutCondition() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_area/ |
H A D | text_area_layout_algorithm.cpp | 94 OptionalSizeF frameSize; in Measure() local 118 frameSize.SetWidth(finalWidth); in Measure() 123 frameSize.SetWidth(finalWidth); in Measure() 124 ConstraintHeight(layoutWrapper, frameSize, contentHeight); in Measure() 126 layoutWrapper->GetGeometryNode()->SetFrameSize(frameSize.ConvertToSizeT()); in Measure() 143 frameSize.SetHeight(textFieldContentConstraint.maxSize.Height()); in ConstraintHeight() 145 frameSize.SetHeight( in ConstraintHeight() 149 frameSize.SetHeight(contentHeight + pattern->GetVerticalPaddingAndBorderSum()); in ConstraintHeight() 155 frameSize.Constrain(layoutConstraint->minSize, layoutConstraint->maxSize); in ConstraintHeight() 157 auto finalSize = UpdateOptionSizeByCalcLayoutConstraint(frameSize, in ConstraintHeight() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_layout_algorithm.h | 89 void MeasureFixedMode(LayoutWrapper* layoutWrapper, SizeF frameSize); 90 void MeasureScrollableMode(LayoutWrapper* layoutWrapper, SizeF frameSize); 91 LayoutConstraintF GetChildConstraint(LayoutWrapper* layoutWrapper, SizeF& frameSize); 92 void LayoutChildren(LayoutWrapper* layoutWrapper, const SizeF& frameSize, OffsetF& childOffset); 103 …emSecond(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint, SizeF& frameSize); 109 GridSizeType GetGridSizeType(const SizeF& frameSize) const; 110 …float GetGridWidth(const BarGridColumnOptions& option, const SizeF& frameSize, int32_t columns) co… 111 …pplyBarGridAlign(const RefPtr<TabBarLayoutProperty>& layoutProperty, const SizeF& frameSize) const; 114 float GetContentMainSize(LayoutWrapper* layoutWrapper, const SizeF& frameSize) const;
|
H A D | tab_bar_layout_algorithm.cpp | 109 auto frameSize = idealSize.ConvertToSizeT(); in Measure() local 127 MeasureFixedMode(layoutWrapper, frameSize); in Measure() 139 geometryNode->SetFrameSize(frameSize); in Measure() 152 CHECK_NULL_RETURN(padding, frameSize.Width()); in GetContentMainSize() 155 return Positive(frameSize.Width() - left - right) ? frameSize.Width() - left - right : 0.0f; in GetContentMainSize() 158 return frameSize.Height(); in GetContentMainSize() 605 SizeF& frameSize) in MeasureItemSecond() argument 909 auto gridSizeType = GetGridSizeType(frameSize); in ApplyBarGridAlign() 933 return (frameSize.Width() - gridWidth) / TWO; in ApplyBarGridAlign() 1048 parent->BuildColumnWidth(frameSize.Width()); in GetGridSizeType() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_utils.cpp | 63 float GridUtils::GetMainGap(const RefPtr<GridLayoutProperty>& props, const SizeF& frameSize, Axis a… in GetMainGap() argument 65 …eturn axis == Axis::HORIZONTAL ? GetColumnGap(props, frameSize.Width()) : GetRowGap(props, frameSi… in GetMainGap() 68 float GridUtils::GetCrossGap(const RefPtr<GridLayoutProperty>& props, const SizeF& frameSize, Axis … in GetCrossGap() argument 70 …return axis == Axis::HORIZONTAL ? GetRowGap(props, frameSize.Height()) : GetColumnGap(props, frame… in GetCrossGap()
|
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/avmuxer/ |
H A D | avmuxer_demo_common.c | 25 .frameSize = 1152, 33 .frameSize = 1024, 41 .frameSize = 1024, 49 .frameSize = 1024, 57 .frameSize = 2048, 65 .frameSize = 1024,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navrouter/ |
H A D | navdestination_group_node.cpp | 198 auto frameSize = GetGeometryNode()->GetFrameSize(); in InitSystemTransitionPush() local 205 RectF(frameSize.Width() * HALF, 0.0f, frameSize.Width(), REMOVE_CLIP_SIZE), in InitSystemTransitionPush() 208 GetRenderContext()->UpdateTranslateInXY({ frameSize.Width() * HALF * isRTL, 0.0f }); in InitSystemTransitionPush() 232 auto frameSize = GetGeometryNode()->GetFrameSize(); in StartSystemTransitionPush() local 249 { -frameSize.Width() * CONTENT_OFFSET_PERCENT * isRTL, 0.0f }); in StartSystemTransitionPush() 253 { frameSize.Width() * TITLE_OFFSET_PERCENT * isRTL, 0.0f }); in StartSystemTransitionPush() 289 auto frameSize = GetGeometryNode()->GetFrameSize(); in InitSystemTransitionPop() local 302 { frameSize.Width() * TITLE_OFFSET_PERCENT * isRTL, 0.0f }); in InitSystemTransitionPop() 333 auto frameSize = GetGeometryNode()->GetFrameSize(); in StartSystemTransitionPop() local 341 RectF(frameSize.Width() * HALF, 0.0f, frameSize.Width(), REMOVE_CLIP_SIZE), in StartSystemTransitionPop() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | timepicker_column_layout_algorithm.cpp | 56 SizeF frameSize = { -1.0f, -1.0f }; in Measure() local 84 frameSize.SetWidth(pickerWidth); in Measure() 85 frameSize.SetHeight(std::min(height, layoutConstraint->maxSize.Height())); in Measure() 86 layoutWrapper->GetGeometryNode()->SetFrameSize(frameSize); in Measure() 91 MeasureText(layoutWrapper, frameSize); in Measure() 93 gradientFontScale_) / frameSize.Height(); in Measure() 130 SizeF frameSize = { -1.0f, -1.0f }; in ChangeAmPmTextStyle() local 135 frameSize.SetWidth(size.Width()); in ChangeAmPmTextStyle() 139 frameSize.SetHeight( in ChangeAmPmTextStyle() 142 …frameSize.SetHeight(static_cast<float>(pickerTheme->GetGradientHeight().ConvertToPx() * gradientFo… in ChangeAmPmTextStyle() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | datepicker_column_layout_algorithm.cpp | 50 SizeF frameSize = { -1.0f, -1.0f }; in Measure() local 106 frameSize.SetWidth(pickerWidth); in Measure() 107 frameSize.SetHeight(std::min(height, pickerMaxHeight)); in Measure() 108 layoutWrapper->GetGeometryNode()->SetFrameSize(frameSize); in Measure() 113 MeasureText(layoutWrapper, frameSize); in Measure() 115 gradientFontScale_ / frameSize.Height(); in Measure() 152 SizeF frameSize = { -1.0f, -1.0f }; in ChangeTextStyle() local 157 frameSize.SetWidth(size.Width()); in ChangeTextStyle() 161 frameSize.SetHeight(static_cast<float>(pickerTheme->GetDividerSpacing().ConvertToPx() * in ChangeTextStyle() 164 frameSize.SetHeight(static_cast<float>(pickerTheme->GetGradientHeight().ConvertToPx() * in ChangeTextStyle() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/demuxer/minimp4_demuxer/ |
H A D | minimp4_demuxer_plugin.cpp | 275 unsigned int frameSize = 0; in GetMediaInfo() local 278 int64_t offset = MP4D_frame_offset(&miniMP4_, 0, 0, &frameSize, &timeStamp, &duration); in GetMediaInfo() 294 unsigned int packetLen = frameSize + 7; in FillADTSHead() 354 unsigned int frameSize = 0; in ReadFrame() local 362 frameSize, static_cast<uint32_t>(offset), sampleIndex_); in ReadFrame() 364 mp4FrameData = outBuffer.AllocMemory(nullptr, frameSize + ADTS_HEADER_SIZE); in ReadFrame() 378 FillADTSHead(mp4FrameData, frameSize); in ReadFrame() 379 size_t writeSize = mp4FrameData->Write(inIoBuffer_, frameSize, ADTS_HEADER_SIZE); in ReadFrame() 382 ioDataRemainSize_ -= frameSize; in ReadFrame() 383 g_readDataSize = frameSize; in ReadFrame() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_paint_method.cpp | 27 auto frameSize = paintWrapper->GetGeometryNode()->GetFrameSize(); in PaintEdgeEffect() local 28 edgeEffect->Paint(canvas, frameSize, { 0.0f, 0.0f }); in PaintEdgeEffect() 48 auto frameSize = renderContext->GetPaintRectWithoutTransform().GetSize(); in UpdateContentModifier() local 51 frameSize.MinusPadding(*padding->left, *padding->right, *padding->top, *padding->bottom); in UpdateContentModifier() 61 listContentModifier_->SetClipSize(frameSize); in UpdateContentModifier() 65 float contentSize = vertical_ ? frameSize.Width() : frameSize.Height(); in UpdateContentModifier() 76 .mainSize = vertical_ ? frameSize.Width() : frameSize.Height(), in UpdateContentModifier() 77 .crossSize = vertical_ ? frameSize.Height() : frameSize.Width(), in UpdateContentModifier()
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/func_sample/sample/ |
H A D | avcc_reader.cpp | 108 void AvccReader::FillBufferAttr(OH_AVCodecBufferAttr &attr, int32_t frameSize, uint8_t naluType, in FillBufferAttr() argument 111 attr.size += frameSize; in FillBufferAttr() 142 int32_t frameSize = 0; in FillBuffer() local 144 auto ret = nalUnitReader_->ReadNalUnit(bufferAddr, frameSize, isEosFrame); in FillBuffer() 147 bufferAddr += frameSize; in FillBuffer() 148 FillBufferAttr(attr, frameSize, naluType, isEosFrame); in FillBuffer() 163 int32_t frameSize = 0; in FillBufferExt() local 165 auto ret = nalUnitReader_->ReadNalUnit(bufferAddr, frameSize, isEosFrame); in FillBufferExt() 168 bufferAddr += frameSize; in FillBufferExt() 169 FillBufferAttr(attr, frameSize, naluType, isEosFrame); in FillBufferExt()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/ |
H A D | avrcp_tg_browse.cpp | 151 (frameSize > mtu_) ? (frameSize = mtu_) : (frameSize); in AssemblePacket() 406 uint16_t tempSize = frameSize; in CountMpFrameSize() 425 frameSize = tempSize; in CountMpFrameSize() 432 return frameSize; in CountMpFrameSize() 439 uint16_t frameSize = CountMpFrameSize(); in AssembleMpPacket() local 528 uint16_t tempSize = frameSize; in CountMeFrameSize() 554 frameSize = tempSize; in CountMeFrameSize() 561 return frameSize; in CountMeFrameSize() 568 uint16_t frameSize = CountMeFrameSize(); in AssembleMePacket() local 791 uint16_t tempSize = frameSize; in AssemblePacket() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_paint_method.cpp | 57 auto frameSize = paintWrapper->GetGeometryNode()->GetFrameSize(); in PaintFade() local 58 float width = frameSize.Width(); in PaintFade() 59 float height = frameSize.Height(); in PaintFade() 128 auto frameSize = geometryNode->GetPaddingSize(); in ClipPadding() local 132 …auto clipRect = RSRect(paddingOffset.GetX(), paddingOffset.GetY(), frameSize.Width() + paddingOffs… in ClipPadding() 133 paddingOffset.GetY() + frameSize.Height()); in ClipPadding()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | geometry_node.cpp | 67 auto frameSize = frame_.rect_.GetSize(); in ToJsonValue() local 68 json->Put("width", std::to_string(frameSize.Width()).c_str()); in ToJsonValue() 69 json->Put("height", std::to_string(frameSize.Height()).c_str()); in ToJsonValue() 72 jsonSize->Put("width", std::to_string(frameSize.Width()).c_str()); in ToJsonValue() 73 jsonSize->Put("height", std::to_string(frameSize.Height()).c_str()); in ToJsonValue()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/ |
H A D | dot_indicator_layout_algorithm.cpp | 96 SizeF frameSize = { -1.0f, -1.0f }; in Measure() local 98 frameSize.SetSizeT(SizeF { indicatorWidth_, indicatorHeight_ }); in Measure() 99 if (frameSize.IsNonNegative()) { in Measure() 102 frameSize.Constrain(layoutConstraint->minSize, layoutConstraint->maxSize); in Measure() 105 layoutWrapper->GetGeometryNode()->SetFrameSize(frameSize); in Measure()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/ |
H A D | water_flow_paint_method.cpp | 26 auto frameSize = paintWrapper->GetGeometryNode()->GetFrameSize(); in PaintEdgeEffect() local 27 edgeEffect->Paint(canvas, frameSize, { 0.0f, 0.0f }); in PaintEdgeEffect() 51 auto frameSize = geometryNode->GetPaddingSize(); in UpdateContentModifier() local 55 contentModifier_->SetClipSize(frameSize); in UpdateContentModifier()
|
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiohdiproxy/src/ |
H A D | daudio_manager_callback.cpp | 93 paramHDF.frameSize = param.frameSize; in GetAudioParamHDF() 101 …paramHDF.channelMask, paramHDF.bitFormat, paramHDF.streamUsage, paramHDF.frameSize, paramHDF.perio… in GetAudioParamHDF() 174 DHLOGD("Write Stream Data, audio data param frameSize is %{public}d.", data.param.frameSize); in WriteStreamData() 175 if (data.param.frameSize == 0 || data.param.frameSize > DEFAULT_AUDIO_DATA_SIZE) { in WriteStreamData() 180 std::shared_ptr<AudioData> audioData = std::make_shared<AudioData>(data.param.frameSize); in WriteStreamData()
|
/ohos5.0/drivers/hdf_core/framework/model/audio/usb/src/ |
H A D | audio_usb_dma_ops.c | 674 *pointer = hwptrDone / data->renderPcmInfo.frameSize; in AudioUsbPcmPointer() 677 *pointer = hwptrDone / data->capturePcmInfo.frameSize; in AudioUsbPcmPointer() 1006 stride = audioUsbDriver->renderPcmInfo.frameSize; in AudioUsbPreparePlaybackUrb() 1041 uint32_t frameSize, frames, bytes, oldptr, offset; in AudioUsbRetireCaptureUrb() local 1046 frameSize = audioUsbDriver->capturePcmInfo.frameSize; in AudioUsbRetireCaptureUrb() 1053 frames = bytes / frameSize; in AudioUsbRetireCaptureUrb() 1055 if (bytes % audioUsbDriver->capturePcmInfo.frameSize != 0) { in AudioUsbRetireCaptureUrb() 1056 bytes = frames * frameSize; in AudioUsbRetireCaptureUrb() 1065 frames = (bytes + (oldptr % frameSize)) / frameSize; in AudioUsbRetireCaptureUrb() 1070 if (oldptr + bytes > audioUsbDriver->captureBufInfo.cirBufSize * frameSize) { in AudioUsbRetireCaptureUrb() [all …]
|