/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_render_display_sync.cpp | 94 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 D | hencoder_buffer_unit_test.cpp | 82 .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 D | hdecoder_buffer_unit_test.cpp | 37 .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 D | video_output_impl.cpp | 153 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 D | preview_output_impl.cpp | 145 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 D | boot_picture_player_test.cpp | 60 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 D | avmuxer_demo_common.c | 73 .frameRate = 60, 87 .frameRate = 60, 101 .frameRate = 60, 115 .frameRate = 30,
|
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/ |
H A D | hencoder.cpp | 44 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 D | hencoder.h | 51 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 D | avsource_format_unit_test.cpp | 754 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 D | avsource_hevc_unit_test.cpp | 312 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 D | boot_picture_player.cpp | 103 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 D | mediacodecdecoderadapterimpl_fuzzer.cpp | 35 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 D | image_common_type.h | 49 …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 D | obtain-supported-codecs.md | 96 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.md | 28 | struct [RangeValue](_range_value_v10.md)[frameRate](#framerate) | 帧率的范围。 | 83 ### frameRate subsection 86 struct RangeValue CodecVideoPortCap::frameRate
|
H A D | _codec_video_port_cap_v20.md | 28 | 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 D | codec_capability.h | 67 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 D | format_test.cpp | 166 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 D | avcodec_e2e_demo.cpp | 152 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 D | avcodec_e2e_demo_api10.cpp | 174 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 D | native_avcapability.cpp | 485 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 D | capability_data_adapter_impl.cpp | 45 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 D | format_adapter_impl.cpp | 50 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 D | ark_decoder_format_adapter_wrapper.cpp | 50 void ArkDecoderFormatAdapterWrapper::SetFrameRate(double frameRate) in SetFrameRate() argument 52 ctocpp_->SetFrameRate(frameRate); in SetFrameRate()
|