Home
last modified time | relevance | path

Searched refs:frameRate (Results 1 – 25 of 222) sorted by relevance

123456789

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_render_display_sync.cpp94 int32_t frameRate = round(1.0 / (static_cast<double>(currentPeriod_) / NS_TO_S)); in OnFrameSkip() local
95 frameRate = GetNearestFrameRate(frameRate, SOURCE_FRAME_RATES); in OnFrameSkip()
96 if (currentFrameRate_ != frameRate) { in OnFrameSkip()
97 currentFrameRate_ = frameRate; in OnFrameSkip()
122 int32_t RSRenderDisplaySync::CalcSkipRateCount(int32_t frameRate) in CalcSkipRateCount() argument
126 if (preferred == 0 || frameRate == 0) { in CalcSkipRateCount()
131 if (frameRate % i == 0 && frameRate / i >= MIN_DIVISOR_FRAME_RATE) { in CalcSkipRateCount()
132 divisorRates.emplace_back(frameRate / i); in CalcSkipRateCount()
138 count = frameRate / divisorFrameRate; in CalcSkipRateCount()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhencoder_buffer_unit_test.cpp82 .frameRate = 30,
102 .frameRate = 30,
122 .frameRate = 30,
145 .frameRate = 30,
164 .frameRate = 30,
183 .frameRate = 30,
202 .frameRate = 30,
209 .frameRate = 60, // 60: target framerate
227 .frameRate = 30,
246 .frameRate = 30,
[all …]
H A Dhdecoder_buffer_unit_test.cpp37 .frameRate = 30,
57 .frameRate = 30,
76 .frameRate = 30,
95 .frameRate = 30,
114 .frameRate = 30,
133 .frameRate = 30,
153 .frameRate = 30,
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/impl/
H A Dvideo_output_impl.cpp153 std::vector<std::vector<int32_t>> frameRate = innerVideoOutput_->GetSupportedFrameRates(); in GetSupportedFrameRates() local
154 if (frameRate.size() == 0) { in GetSupportedFrameRates()
159 Camera_FrameRateRange* newframeRateRange = new Camera_FrameRateRange[frameRate.size()]; in GetSupportedFrameRates()
163 for (size_t index = 0; index < frameRate.size(); ++index) { in GetSupportedFrameRates()
164 if (frameRate[index].size() <= 1) { in GetSupportedFrameRates()
170 newframeRateRange[index].min = static_cast<uint32_t>(frameRate[index][0]); in GetSupportedFrameRates()
171 newframeRateRange[index].max = static_cast<uint32_t>(frameRate[index][1]); in GetSupportedFrameRates()
175 *size = frameRate.size(); in GetSupportedFrameRates()
H A Dpreview_output_impl.cpp145 std::vector<std::vector<int32_t>> frameRate = innerPreviewOutput_->GetSupportedFrameRates(); in GetSupportedFrameRates() local
146 if (frameRate.size() == 0) { in GetSupportedFrameRates()
151 Camera_FrameRateRange* newframeRateRange = new Camera_FrameRateRange[frameRate.size()]; in GetSupportedFrameRates()
155 for (size_t index = 0; index < frameRate.size(); ++index) { in GetSupportedFrameRates()
156 if (frameRate[index].size() <= 1) { in GetSupportedFrameRates()
162 newframeRateRange[index].min = static_cast<uint32_t>(frameRate[index][0]); in GetSupportedFrameRates()
163 newframeRateRange[index].max = static_cast<uint32_t>(frameRate[index][1]); in GetSupportedFrameRates()
167 *size = frameRate.size(); in GetSupportedFrameRates()
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/test/unittest/
H A Dboot_picture_player_test.cpp60 int32_t frameRate = 0; variable
61 EXPECT_EQ(player->CheckFrameRateValid(frameRate), false);
73 int32_t frameRate = 30; variable
74 EXPECT_EQ(player->CheckFrameRateValid(frameRate), true);
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/avmuxer/
H A Davmuxer_demo_common.c73 .frameRate = 60,
87 .frameRate = 60,
101 .frameRate = 60,
115 .frameRate = 30,
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhencoder.cpp44 optional<double> frameRate = GetFrameRateFromUser(format); in OnConfigure() local
45 ret = SetupPort(format, frameRate); in OnConfigure()
49 ConfigureProtocol(format, frameRate); in OnConfigure()
375 if (!frameRate.has_value()) { in SetupPort()
377 frameRate = 60.0; // default frame rate 60.0 in SetupPort()
549 ret = SetupAVCEncoderParameters(format, frameRate); in ConfigureProtocol()
552 ret = SetupHEVCEncoderParameters(format, frameRate); in ConfigureProtocol()
583 SetAvcFields(avcType, iFrameInterval, frameRate.value()); in SetupAVCEncoderParameters()
607 iFrameInterval, frameRate, avcType.eProfile, avcType.eLevel); in SetAvcFields()
708 optional<double> frameRate = GetFrameRateFromUser(format); in OnSetParameters() local
[all …]
H A Dhencoder.h51 int32_t SetupPort(const Format &format, std::optional<double> frameRate);
52 void ConfigureProtocol(const Format &format, std::optional<double> frameRate);
59 int32_t SetupAVCEncoderParameters(const Format &format, std::optional<double> frameRate);
60 void SetAvcFields(OMX_VIDEO_PARAM_AVCTYPE& avcType, int32_t iFrameInterval, double frameRate);
61 int32_t SetupHEVCEncoderParameters(const Format &format, std::optional<double> frameRate);
/ohos5.0/foundation/multimedia/av_codec/test/unittest/avsource_test/
H A Davsource_format_unit_test.cpp754 ASSERT_EQ(formatVal_.frameRate, 60.000000);
801 ASSERT_EQ(formatVal_.frameRate, 60.000000);
849 ASSERT_EQ(formatVal_.frameRate, 60.000000);
892 ASSERT_EQ(formatVal_.frameRate, 60.000000);
937 ASSERT_EQ(formatVal_.frameRate, 60.000000);
982 ASSERT_EQ(formatVal_.frameRate, 60.000000);
1029 ASSERT_EQ(formatVal_.frameRate, 60.000000);
1074 ASSERT_EQ(formatVal_.frameRate, 60.000000);
1121 ASSERT_EQ(formatVal_.frameRate, 60.000000);
1166 ASSERT_EQ(formatVal_.frameRate, 60.000000);
[all …]
H A Davsource_hevc_unit_test.cpp312 ASSERT_EQ(formatVal_.frameRate, 60.000000);
353 ASSERT_EQ(formatVal_.frameRate, 60.000000);
398 ASSERT_DOUBLE_EQ(formatVal_.frameRate, 60.000000);
444 ASSERT_DOUBLE_EQ(formatVal_.frameRate, 60.000000);
486 ASSERT_EQ(formatVal_.frameRate, 60.000000);
527 ASSERT_EQ(formatVal_.frameRate, 60.000000);
630 ASSERT_DOUBLE_EQ(formatVal_.frameRate, 60.000000);
691 ASSERT_DOUBLE_EQ(formatVal_.frameRate, 60.000000);
752 ASSERT_DOUBLE_EQ(formatVal_.frameRate, 28.154937050793496);
813 ASSERT_DOUBLE_EQ(formatVal_.frameRate, 28.154937050793496);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/src/
H A Dboot_picture_player.cpp103 if (CheckFrameRateValid(frameConfig.frameRate)) { in ReadPicZipFile()
104 freq = frameConfig.frameRate; in ReadPicZipFile()
106 LOGW("Only Support 30, 60 frame rate: %{public}d", frameConfig.frameRate); in ReadPicZipFile()
121 bool BootPicturePlayer::CheckFrameRateValid(int32_t frameRate) in CheckFrameRateValid() argument
124 int nCount = std::count(freqs.begin(), freqs.end(), frameRate); in CheckFrameRateValid()
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/media_adapter/mediacodecdecoderadapterimpl_fuzzer/
H A Dmediacodecdecoderadapterimpl_fuzzer.cpp35 void OnStreamChanged(int32_t width, int32_t height, double frameRate) override {} in OnStreamChanged() argument
58 return frameRate; in GetFrameRate()
73 frameRate = fr; in SetFrameRate()
78 double frameRate; member in OHOS::DecoderFormatAdapterMock
/ohos5.0/foundation/distributedhardware/distributed_camera/services/data_process/include/utils/
H A Dimage_common_type.h49 …VideoConfigParams(VideoCodecType videoCodec, Videoformat pixelFormat, int32_t frameRate, int32_t w… in VideoConfigParams() argument
51 …: videoCodec_(videoCodec), pixelFormat_(pixelFormat), frameRate_(frameRate), width_ (width), heigh… in VideoConfigParams()
57 void SetFrameRate(int32_t frameRate);
/ohos5.0/docs/zh-cn/application-dev/media/avcodec/
H A Dobtain-supported-codecs.md96 double frameRate = isHardward ? 60.0 : 30.0;
97 if (!OH_AVFormat_SetDoubleValue(format, OH_MD_KEY_FRAME_RATE, frameRate)) {
503 int32_t frameRate = 120;
512 bool isSupported = frameRate >= frameRateRange.minVal && frameRate <= frameRateRange.maxVal;
520 int32_t frameRate = 120;
523 …upported = OH_AVCapability_AreVideoSizeAndFrameRateSupported(capability, width, height, frameRate);
531 frameRate = min(max(frameRate, frameRateRange.minVal), frameRateRange.maxVal);
537 if (!OH_AVFormat_SetIntValue(format, OH_MD_KEY_FRAME_RATE, frameRate)) {
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/codec/
H A D_codec_video_port_cap_v10.md28 | struct [RangeValue](_range_value_v10.md)[frameRate](#framerate) | 帧率的范围。 |
83 ### frameRate subsection
86 struct RangeValue CodecVideoPortCap::frameRate
H A D_codec_video_port_cap_v20.md28 | struct [RangeValue](_range_value_v20.md)[frameRate](#bitratemode) | 帧率的范围。 |
83 ### frameRate subsection
86 struct RangeValue CodecVideoPortCap::frameRate
/ohos5.0/foundation/multimedia/player_framework/interfaces/inner_api/native/
H A Dcodec_capability.h67 CodecRange frameRate; variable
81 if (!(bitrate.Marshalling(parcel) && frameRate.Marshalling(parcel) in Marshalling()
103 frameRate.Unmarshalling(parcel); in Unmarshalling()
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dformat_test.cpp166 double frameRate; in CheckVideoKey() local
180 ASSERT_TRUE(OH_AVFormat_GetDoubleValue(trackFormat, OH_MD_KEY_FRAME_RATE, &frameRate)); in CheckVideoKey()
182 ASSERT_EQ(frameRateResult, frameRate); in CheckVideoKey()
246 double frameRate; in CheckAudioKeyVvc() local
263 ASSERT_EQ(frameRateResult, frameRate); in CheckAudioKeyVvc()
349 double frameRate = 0.0; in AvcVideoParam() local
377 ASSERT_EQ(ACTUAL_FRAMERATE, frameRate); in AvcVideoParam()
387 double frameRate = 0.0; in HevcVideoParam() local
420 ASSERT_EQ(ACTUAL_FRAMERATE, frameRate); in HevcVideoParam()
489 double frameRate = 0.0; in OtherVideoParam() local
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/e2e_demo/
H A Davcodec_e2e_demo.cpp152 double frameRate = 0.0; in AVCodecE2EDemo() local
154 OH_AVFormat_GetDoubleValue(trackFormat, OH_MD_KEY_FRAME_RATE, &frameRate); in AVCodecE2EDemo()
155 if (frameRate <= 0) { in AVCodecE2EDemo()
156 frameRate = DEFAULT_FRAME_RATE; in AVCodecE2EDemo()
158 frameDuration = MICRO_IN_SECOND / frameRate; in AVCodecE2EDemo()
H A Davcodec_e2e_demo_api10.cpp174 double frameRate = 0.0; in AVCodecE2EDemoAPI10() local
176 OH_AVFormat_GetDoubleValue(trackFormat, OH_MD_KEY_FRAME_RATE, &frameRate); in AVCodecE2EDemoAPI10()
177 if (frameRate <= 0) { in AVCodecE2EDemoAPI10()
178 frameRate = DEFAULT_FRAME_RATE; in AVCodecE2EDemoAPI10()
180 frameDuration = MICRO_IN_SECOND / frameRate; in AVCodecE2EDemoAPI10()
/ohos5.0/foundation/multimedia/av_codec/frameworks/native/capi/common/
H A Dnative_avcapability.cpp485 const auto &frameRate = videoCap->GetSupportedFrameRate(); in OH_AVCapability_GetVideoFrameRateRange() local
486 frameRateRange->minVal = frameRate.minVal; in OH_AVCapability_GetVideoFrameRateRange()
487 frameRateRange->maxVal = frameRate.maxVal; in OH_AVCapability_GetVideoFrameRateRange()
503 const auto &frameRate = videoCap->GetSupportedFrameRatesFor(width, height); in OH_AVCapability_GetVideoFrameRateRangeForSize() local
504 frameRateRange->minVal = frameRate.minVal; in OH_AVCapability_GetVideoFrameRateRangeForSize()
505 frameRateRange->maxVal = frameRate.maxVal; in OH_AVCapability_GetVideoFrameRateRangeForSize()
506 if (frameRate.minVal == 0 && frameRate.maxVal == 0) { in OH_AVCapability_GetVideoFrameRateRangeForSize()
513 int32_t frameRate) in OH_AVCapability_AreVideoSizeAndFrameRateSupported() argument
520 return videoCap->IsSizeAndRateSupported(width, height, frameRate); in OH_AVCapability_AreVideoSizeAndFrameRateSupported()
/ohos5.0/base/web/webview/ohos_adapter/media_adapter/src/
H A Dcapability_data_adapter_impl.cpp45 void CapabilityDataAdapterImpl::SetMaxframeRate(int32_t frameRate) in SetMaxframeRate() argument
47 maxFrameRate_ = frameRate; in SetMaxframeRate()
/ohos5.0/base/web/webview/ohos_adapter/camera_adapter/src/
H A Dformat_adapter_impl.cpp50 void FormatAdapterImpl::SetFrameRate(float frameRate) in SetFrameRate() argument
52 frame_rate_ = frameRate; in SetFrameRate()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_decoder_format_adapter_wrapper.cpp50 void ArkDecoderFormatAdapterWrapper::SetFrameRate(double frameRate) in SetFrameRate() argument
52 ctocpp_->SetFrameRate(frameRate); in SetFrameRate()

123456789