Home
last modified time | relevance | path

Searched refs:frameRate (Results 1 - 25 of 155) sorted by relevance

1234567

/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 / in CalcSkipRateCount()
[all...]
/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhencoder_buffer_unit_test.cpp82 .frameRate = 30, in HWTEST_F()
102 .frameRate = 30, in HWTEST_F()
122 .frameRate = 30, in HWTEST_F()
145 .frameRate = 30, in HWTEST_F()
164 .frameRate = 30, in HWTEST_F()
183 .frameRate = 30, in HWTEST_F()
202 .frameRate = 30, in HWTEST_F()
209 .frameRate = 60, // 60: target framerate in HWTEST_F()
227 .frameRate = 30, in HWTEST_F()
246 .frameRate in HWTEST_F()
[all...]
H A Dhdecoder_buffer_unit_test.cpp37 .frameRate = 30, in HWTEST()
57 .frameRate = 30, in HWTEST()
76 .frameRate = 30, in HWTEST()
95 .frameRate = 30, in HWTEST()
114 .frameRate = 30, in HWTEST()
133 .frameRate = 30, in HWTEST()
/foundation/CastEngine/castengine_wifi_display/services/common/
H A Dcommon.cpp42 videoTrack.frameRate = VIDEO_FRAME_RATE_60; in SetVideoTrack()
48 videoTrack.frameRate = VIDEO_FRAME_RATE_25; in SetVideoTrack()
54 videoTrack.frameRate = VIDEO_FRAME_RATE_30; in SetVideoTrack()
60 videoTrack.frameRate = VIDEO_FRAME_RATE_25; in SetVideoTrack()
66 videoTrack.frameRate = VIDEO_FRAME_RATE_30; in SetVideoTrack()
/foundation/graphic/graphic_surface/sync_fence/test/unittest/
H A Dsync_fence_tracker_test.cpp95 int32_t frameRate = tracker->GetFrameRate(); in HWTEST_F() local
96 EXPECT_EQ(frameRate, 0); in HWTEST_F()
101 frameRate = tracker->GetFrameRate(); in HWTEST_F()
102 EXPECT_EQ(frameRate, 0); in HWTEST_F()
105 frameRate = tracker->GetFrameRate(); in HWTEST_F()
106 EXPECT_EQ(frameRate, 2000); in HWTEST_F()
/foundation/multimedia/camera_framework/frameworks/native/ndk/impl/
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()
157 MEDIA_ERR_LOG("invalid frameRate size!"); 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()
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()
165 MEDIA_ERR_LOG("invalid frameRate size!"); 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()
/foundation/multimedia/av_codec/test/nativedemo/avmuxer/
H A Davmuxer_demo_common.c73 .frameRate = 60,
87 .frameRate = 60,
101 .frameRate = 60,
115 .frameRate = 30,
/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()
/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 width, in VideoConfigParams() argument
51 : videoCodec_(videoCodec), pixelFormat_(pixelFormat), frameRate_(frameRate), width_ (width), height_(height) in VideoConfigParams()
57 void SetFrameRate(int32_t frameRate);
/foundation/distributedhardware/distributed_camera/services/data_process/src/utils/
H A Dimage_common_type.cpp30 void VideoConfigParams::SetFrameRate(int32_t frameRate) in SetFrameRate() argument
32 frameRate_ = frameRate; in SetFrameRate()
/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhencoder.h52 int32_t SetupPort(const Format &format, std::optional<double> frameRate);
53 void ConfigureProtocol(const Format &format, std::optional<double> frameRate);
60 int32_t SetupAVCEncoderParameters(const Format &format, std::optional<double> frameRate);
61 void SetAvcFields(OMX_VIDEO_PARAM_AVCTYPE& avcType, int32_t iFrameInterval, double frameRate);
62 int32_t SetupHEVCEncoderParameters(const Format &format, std::optional<double> frameRate);
H A Dhencoder.cpp43 optional<double> frameRate = GetFrameRateFromUser(format); in OnConfigure() local
44 ret = SetupPort(format, frameRate); in OnConfigure()
48 ConfigureProtocol(format, frameRate); in OnConfigure()
353 int32_t HEncoder::SetupPort(const Format &format, std::optional<double> frameRate) in SetupPort() argument
374 if (!frameRate.has_value()) { in SetupPort()
376 frameRate = 60.0; // default frame rate 60.0 in SetupPort()
380 OMX_VIDEO_CodingUnused, configuredFmt_, frameRate.value()}; in SetupPort()
388 codingType_, std::nullopt, frameRate.value()}; in SetupPort()
446 static uint32_t SetPFramesSpacing(int32_t iFramesIntervalInMs, double frameRate, uint32_t bFramesSpacing = 0) in SetPFramesSpacing() argument
454 uint32_t iFramesInterval = iFramesIntervalInMs * frameRate / TIME_RATIO_S_TO_M in SetPFramesSpacing()
542 ConfigureProtocol(const Format &format, std::optional<double> frameRate) ConfigureProtocol() argument
560 SetupAVCEncoderParameters(const Format &format, std::optional<double> frameRate) SetupAVCEncoderParameters() argument
602 SetAvcFields(OMX_VIDEO_PARAM_AVCTYPE &avcType, int32_t iFrameInterval, double frameRate) SetAvcFields() argument
640 SetupHEVCEncoderParameters(const Format &format, std::optional<double> frameRate) SetupHEVCEncoderParameters() argument
706 optional<double> frameRate = GetFrameRateFromUser(format); OnSetParameters() local
[all...]
H A Dhcodec_list.cpp155 userCap.frameRate = {hdiVideoCap.frameRate.min, hdiVideoCap.frameRate.max}; in HdiCapToUserCap()
173 LOGI("frameRate: [%d, %d], blockSize: [%d x %d]", in HdiCapToUserCap()
174 userCap.frameRate.minVal, userCap.frameRate.maxVal, userCap.blockSize.width, userCap.blockSize.height); in HdiCapToUserCap()
H A Dhdecoder.cpp93 optional<double> frameRate = GetFrameRateFromUser(format); in SetupPort() local
94 if (frameRate.has_value()) { in SetupPort()
95 codecRate_ = frameRate.value(); in SetupPort()
98 frameRate = 60.0; // default frame rate 60.0 in SetupPort()
102 codingType_, std::nullopt, frameRate.value()}; in SetupPort()
118 OMX_VIDEO_CodingUnused, configuredFmt_, frameRate.value()}; in SetupPort()
310 optional<double> frameRate = GetFrameRateFromUser(format); in OnSetParameters() local
311 if (frameRate.has_value()) { in OnSetParameters()
315 framerateCfgType.nU32 = frameRate.value() * FRAME_RATE_COEFFICIENT; in OnSetParameters()
317 HLOGI("succ to set frameRate in OnSetParameters()
409 optional<double> frameRate = GetFrameRateFromUser(format); SetVrrEnable() local
[all...]
/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/
H A Dcodec_port.cpp50 uint32_t frameRate; in Config() local
57 FALSE_LOG(meta.Get<Tag::VIDEO_FRAME_RATE>(frameRate)); in Config()
65 portDef_.format.video.xFramerate = frameRate << HDI_FRAME_RATE_MOVE; in Config()
/foundation/multimedia/player_framework/interfaces/inner_api/native/
H A Dcodec_capability.h67 CodecRange frameRate; member in OHOS::Media::EncoderCapabilityData
81 if (!(bitrate.Marshalling(parcel) && frameRate.Marshalling(parcel) in Marshalling()
103 frameRate.Unmarshalling(parcel); in Unmarshalling()
/foundation/multimedia/player_framework/frameworks/native/avcodeclist/
H A Davcodec_info.cpp163 return data_.frameRate; in GetSupportedFrameRate()
247 if (data_.frameRate.minVal == 0 || data_.frameRate.maxVal == 0) { in InitParams()
248 data_.frameRate = Range(1, FRAME_RATE_30); in InitParams()
257 frameRateRange_ = data_.frameRate; in InitParams()
317 bool VideoCaps::IsSizeAndRateSupported(int32_t width, int32_t height, double frameRate) in IsSizeAndRateSupported() argument
324 if (fabs(data_.frameRate.minVal - frameRate) > EPSLON || fabs(frameRate - data_.frameRate in IsSizeAndRateSupported()
[all...]
/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()
520 return videoCap->IsSizeAndRateSupported(width, height, frameRate); in OH_AVCapability_AreVideoSizeAndFrameRateSupported()
512 OH_AVCapability_AreVideoSizeAndFrameRateSupported(OH_AVCapability *capability, int32_t width, int32_t height, int32_t frameRate) OH_AVCapability_AreVideoSizeAndFrameRateSupported() argument
[all...]
/foundation/graphic/graphic_2d/frameworks/bootanimation/test/unittest/
H A Dboot_picture_player_test.cpp64 int32_t frameRate = 0; in HWTEST_F() local
65 EXPECT_EQ(player->CheckFrameRateValid(frameRate), false); in HWTEST_F()
77 int32_t frameRate = 30; in HWTEST_F() local
78 EXPECT_EQ(player->CheckFrameRateValid(frameRate), true); in HWTEST_F()
/foundation/multimedia/av_codec/test/unittest/avsource_test/
H A Davsource_hevc_unit_test.cpp297 ASSERT_TRUE(format_->GetDoubleValue(MediaDescriptionKey::MD_KEY_FRAME_RATE, formatVal_.frameRate)); in HWTEST_F()
302 ASSERT_EQ(formatVal_.frameRate, 60.000000); in HWTEST_F()
338 ASSERT_TRUE(format_->GetDoubleValue(MediaDescriptionKey::MD_KEY_FRAME_RATE, formatVal_.frameRate)); in HWTEST_F()
343 ASSERT_EQ(formatVal_.frameRate, 60.000000); in HWTEST_F()
379 ASSERT_TRUE(format_->GetDoubleValue(MediaDescriptionKey::MD_KEY_FRAME_RATE, formatVal_.frameRate)); in HWTEST_F()
384 ASSERT_EQ(formatVal_.frameRate, 60.000000); in HWTEST_F()
420 ASSERT_TRUE(format_->GetDoubleValue(MediaDescriptionKey::MD_KEY_FRAME_RATE, formatVal_.frameRate)); in HWTEST_F()
425 ASSERT_EQ(formatVal_.frameRate, 60.000000); in HWTEST_F()
523 ASSERT_TRUE(format_->GetDoubleValue(MediaDescriptionKey::MD_KEY_FRAME_RATE, formatVal_.frameRate)); in HWTEST_F()
528 ASSERT_DOUBLE_EQ(formatVal_.frameRate, 60.00000 in HWTEST_F()
[all...]
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_encoder/
H A Dffmpeg_vid_enc_config.cpp72 uint32_t frameRate = 0; in SetVideoFrameRateAndTimeBase() local
73 ASSIGN_IF_NOT_NULL(FindTagInMap<uint32_t>(Tag::VIDEO_FRAME_RATE, tagStore), frameRate); in SetVideoFrameRateAndTimeBase() local
74 if (frameRate > 0) { in SetVideoFrameRateAndTimeBase()
75 codecContext.framerate.num = static_cast<int32_t>(frameRate); in SetVideoFrameRateAndTimeBase()
78 codecContext.time_base.den = static_cast<int32_t>(frameRate); in SetVideoFrameRateAndTimeBase()
/foundation/multimedia/av_codec/test/nativedemo/e2e_demo/
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()
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()
/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
261 ASSERT_TRUE(OH_AVFormat_GetDoubleValue(trackFormat, OH_MD_KEY_FRAME_RATE, &frameRate)); in CheckAudioKeyVvc()
263 ASSERT_EQ(frameRateResult, frameRate); in CheckAudioKeyVvc()
349 double frameRate = 0.0; in AvcVideoParam() local
363 ASSERT_TRUE(OH_AVFormat_GetDoubleValue(paramFormat, OH_MD_KEY_FRAME_RATE, &frameRate)); in AvcVideoParam()
377 ASSERT_EQ(ACTUAL_FRAMERATE, frameRate); in AvcVideoParam()
387 double frameRate in HevcVideoParam() local
489 double frameRate = 0.0; OtherVideoParam() local
[all...]

Completed in 14 milliseconds

1234567