Home
last modified time | relevance | path

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

12

/cts/tests/mediapc/src/android/mediapc/cts/
DFrameDropTest.java59 private int testDecodeToSurface(int frameRate, String[] testFiles) throws Exception { in testDecodeToSurface() argument
61 testFiles, mSurface, frameRate, mIsAsync); in testDecodeToSurface()
77 int frameRate = 30; in test30Fps() local
84 int framesDropped = testDecodeToSurface(frameRate, testFiles); in test30Fps()
102 int frameRate = 60; in test60Fps() local
109 int framesDropped = testDecodeToSurface(frameRate, testFiles); in test60Fps()
127 int frameRate = 60; in test4k() local
134 int framesDropped = testDecodeToSurface(frameRate, testFiles); in test4k()
DAdaptivePlaybackFrameDropTest.java62 private int testAdaptivePlaybackFrameDrop(int frameRate, String[] testFiles) throws Exception { in testAdaptivePlaybackFrameDrop() argument
64 testFiles, mSurface, frameRate, mIsAsync); in testAdaptivePlaybackFrameDrop()
82 int frameRate = 30; in test30Fps() local
91 int framesDropped = testAdaptivePlaybackFrameDrop(frameRate, testFiles); in test30Fps()
110 int frameRate = 60; in test60Fps() local
119 int framesDropped = testAdaptivePlaybackFrameDrop(frameRate, testFiles); in test60Fps()
138 int frameRate = 60; in test4k() local
147 int framesDropped = testAdaptivePlaybackFrameDrop(frameRate, testFiles); in test4k()
DPlaybackFrameDrop.java135 int frameRate, boolean isAsync) { in PlaybackFrameDrop() argument
140 mEachFrameTimeIntervalUs = 1000000 / frameRate; in PlaybackFrameDrop()
151 mMaxNumFrames = frameRate * 30 + mInitialDelay + 1; in PlaybackFrameDrop()
/cts/tests/media/common/src/android/mediav2/common/cts/
DEncoderProfileLevelTestBase.java105 public static int getMinLevel(String mediaType, int width, int height, int frameRate, in getMinLevel() argument
109 return getMinLevelAVC(width, height, frameRate, bitrate); in getMinLevel()
111 return getMinLevelHEVC(width, height, frameRate, bitrate); in getMinLevel()
113 return getMinLevelH263(width, height, frameRate, bitrate); in getMinLevel()
115 return getMinLevelMPEG2(width, height, frameRate, bitrate); in getMinLevel()
117 return getMinLevelMPEG4(width, height, frameRate, bitrate, profile); in getMinLevel()
119 return getMinLevelVP9(width, height, frameRate, bitrate); in getMinLevel()
121 return getMinLevelAV1(width, height, frameRate, bitrate); in getMinLevel()
123 return getMinLevelAPV(width, height, frameRate, bitrate); in getMinLevel()
129 private static int getMinLevelAVC(int width, int height, int frameRate, int bitrate) { in getMinLevelAVC() argument
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DFrameRateCtsActivity.java123 float frameRate = mode.getRefreshRate();
124 if (frameRate != mDeviceFrameRate) {
127 frameRate));
128 mDeviceFrameRate = frameRate;
232 float frameRate, int compatibility, int changeFrameRateStrategy) { in createFrameRateParams() argument
237 frameRateParamsBuilder.setDesiredRateRange(frameRate, Float.MAX_VALUE); in createFrameRateParams()
239 frameRateParamsBuilder.setFixedSourceRate(frameRate); in createFrameRateParams()
246 public int setFrameRate(float frameRate, int compatibility, int changeFrameRateStrategy) { in setFrameRate() argument
249 frameRate, frameRateCompatibilityToString(compatibility))); in setFrameRate()
255 frameRate, compatibility, changeFrameRateStrategy)); in setFrameRate()
[all …]
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoEncoderMinMaxTest.java141 int frameRate = rates.clamp((double) TARGET_FRAME_RATE).intValue(); in applyMinMaxRanges() local
143 .setFrameRate(frameRate).setBitRate(minBitRate).build()); in applyMinMaxRanges()
145 frameRate = rates.clamp((double) TARGET_FRAME_RATE).intValue(); in applyMinMaxRanges()
147 .setFrameRate(frameRate).setBitRate(maxBitRate).build()); in applyMinMaxRanges()
151 frameRate = rates.clamp((double) TARGET_FRAME_RATE).intValue(); in applyMinMaxRanges()
155 .setFrameRate(frameRate).setBitRate(bitrate).build()); in applyMinMaxRanges()
159 frameRate = rates.clamp((double) TARGET_FRAME_RATE).intValue(); in applyMinMaxRanges()
163 .setFrameRate(frameRate).setBitRate(bitrate).build()); in applyMinMaxRanges()
167 frameRate = rates.clamp((double) TARGET_FRAME_RATE).intValue(); in applyMinMaxRanges()
171 .setFrameRate(frameRate).setBitRate(bitrate).build()); in applyMinMaxRanges()
[all …]
DVideoEncoderMultiResTest.java75 int height, int frameRate, int bitRateMode, int maxBFrames, int intraFrameInterval, in getVideoEncoderCfgParams() argument
80 .setFrameRate(frameRate) in getVideoEncoderCfgParams()
88 private static void addParams(int width, int height, int frameRate) { in addParams() argument
103 if (maxBFrames > intraInterval * frameRate) { in addParams()
108 height, frameRate, maxBFrames, bitRateModeToString(bitRateMode), in addParams()
111 getVideoEncoderCfgParams(mediaType, width, height, frameRate, in addParams()
122 height, frameRate, bitRateModeToString(BITRATE_MODE_VBR)); in addParams()
124 MediaFormat.MIMETYPE_VIDEO_APV, width, height, frameRate, BITRATE_MODE_VBR, 0, in addParams()
DVideoEncoderQualityRegressionTestBase.java106 int height, int bitRate, int bitRateMode, int keyFrameInterval, int frameRate, in getVideoEncoderCfgParams() argument
114 .setFrameRate(frameRate) in getVideoEncoderCfgParams()
127 int frameLimit, int frameRate, Map<Long, List<Rect>> frameCropRects, in getQualityRegressionForCfgs() argument
146 double achievedBitRate = ((double) outSize * 8 * frameRate) / (1000 * frameLimit); in getQualityRegressionForCfgs()
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/
DTranscodeQualityTest.java56 private final float frameRate; field in TranscodeQualityTest
62 float frameRate, String testFile, boolean isWithinCddRequirements, String testId) { in TranscodeQualityTest() argument
67 this.frameRate = frameRate; in TranscodeQualityTest()
162 .setFrameRate(frameRate) in transcodeTest()
168 .setFrameRate(frameRate) in transcodeTest()
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
Dmain.cpp173 void setFrameRate(android_app *pApp, float frameRate) { in setFrameRate() argument
174 auto t = ANativeWindow_setFrameRate(pApp->window, frameRate, in setFrameRate()
177 Utility::setFailure("Can't set frame rate to " + std::to_string(frameRate), getRenderer()); in setFrameRate()
216 float frameRate = 60.0f; in android_main() local
225 frameRate = floatValue; in android_main()
228 setFrameRate(pApp, frameRate); in android_main()
233 int64_t fpsPeriod = duration_cast<std::chrono::nanoseconds>(1s / frameRate).count(); in android_main()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_FrameRateCtsActivity.cpp170 jint nativeWindowSetFrameRate(JNIEnv* env, jclass, jobject jSurface, jfloat frameRate, in nativeWindowSetFrameRate() argument
177 return ANativeWindow_setFrameRate(window.mNw, frameRate, compatibility); in nativeWindowSetFrameRate()
180 return ANativeWindow_setFrameRateWithChangeStrategy(window.mNw, frameRate, compatibility, in nativeWindowSetFrameRate()
223 void surfaceControlSetFrameRate(JNIEnv*, jclass, jlong surfaceControlLong, jfloat frameRate, in surfaceControlSetFrameRate() argument
229 ASurfaceTransaction_setFrameRate(transaction, surfaceControl, frameRate, in surfaceControlSetFrameRate()
232 ASurfaceTransaction_setFrameRateWithChangeStrategy(transaction, surfaceControl, frameRate, in surfaceControlSetFrameRate()
/cts/apps/CtsVerifier/jni/audio_loopback/
DWaveFileWriter.h68 void setFrameRate(int32_t frameRate) { in setFrameRate() argument
69 mFrameRate = frameRate; in setFrameRate()
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DVideoEncoderCapabilitiesTest.java83 public VideoEncoderCapabilitiesTest(String mediaType, int width, int height, int frameRate, in VideoEncoderCapabilitiesTest() argument
88 mFrameRate = frameRate; in VideoEncoderCapabilitiesTest()
DVideoEncoderTest.java497 public void setFrameAndBitRates(int frameRate, int bitRate) { in setFrameAndBitRates() argument
498 mFrameRate = frameRate; in setFrameAndBitRates()
1199 int width, int height, int frameRate, int bitRate, boolean flexYUV) { in testDetailed() argument
1208 return test(width, height, frameRate, bitRate, true /* optional */, flexYUV, in testDetailed()
1212 public boolean testSupport(int width, int height, int frameRate, int bitRate) { in testSupport() argument
1213 return mVideoCaps.areSizeAndRateSupported(width, height, frameRate) && in testSupport()
1232 int width, int height, int frameRate, int bitRate, boolean optional, in test() argument
1242 processor.setFrameAndBitRates(frameRate, bitRate); in test()
1371 int frameRate = 30; in testEncode() local
1388 detailed(new Encoder[]{mEncHandle}, mWidth, mHeight, frameRate, bitRate, mFlexYuv); in testEncode()
[all …]
/cts/tests/media/src/android/mediav2/cts/
DNativeAMediaCodecInfoTest.java350 for (double frameRate : STANDARD_FPS) { in testAMediaCodecInfoGetVideoCapsGetSupportForNative()
363 height, frameRate, widths.getLower(), widths.getUpper(), in testAMediaCodecInfoGetVideoCapsGetSupportForNative()
368 videoCaps.areSizeAndRateSupported(width, height, frameRate), in testAMediaCodecInfoGetVideoCapsGetSupportForNative()
377 int testWidth, int testHeight, double frameRate, int supportedWidthLowerForHeight, in nativeTestAMediaCodecInfoVideoCapsGetSupportFor() argument
402 for (double frameRate : STANDARD_FPS) { in testAMediaCodecInfoGetPerformancePointNative()
411 format.setFloat(MediaFormat.KEY_FRAME_RATE, (float) frameRate); in testAMediaCodecInfoGetPerformancePointNative()
414 (int) frameRate); in testAMediaCodecInfoGetPerformancePointNative()
429 nativeTestACodecPerformancePoint(mCodecName, width, height, frameRate, in testAMediaCodecInfoGetPerformancePointNative()
438 double frameRate, int coversFormat, int coversPoint, int equalsPoint, int ppSize, in nativeTestACodecPerformancePoint() argument
DVideoEncoderTest.java80 int width, int height, int frameRate, int colorFormat, int maxBFrames) { in getVideoEncoderCfgParams() argument
86 .setFrameRate(frameRate) in getVideoEncoderCfgParams()
102 int frameRate = (int) arg[4]; in prepareTestArgs() local
114 testArgs[1] = getVideoEncoderCfgParams(mediaType, bitRate, width, height, frameRate, in prepareTestArgs()
DVideoEncoderAvailabilityTest.java315 int height, int frameRate, int bitRate) { in getVideoEncoderCfgParam() argument
317 .setFrameRate(frameRate).setBitRate(bitRate).setColorFormat(COLOR_FormatSurface) in getVideoEncoderCfgParam()
450 int height, int frameRate, int maxFrameRate) { in getCfgsCoveringMaxFrameRate() argument
454 int currFrameRate = Math.min(frameRate, maxFrameRate - frameRateOffset); in getCfgsCoveringMaxFrameRate()
457 .setFrameRate(frameRate).setColorFormat(COLOR_FormatSurface).build(); in getCfgsCoveringMaxFrameRate()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DVideoCodecTestBase.java221 int frameRate; field in VideoCodecTestBase.EncoderOutputStreamParameters
307 int frameRate, in getDefaultEncodingParameterList() argument
330 params.frameCount = encodeSeconds * frameRate; in getDefaultEncodingParameterList()
331 params.frameRate = frameRate; in getDefaultEncodingParameterList()
361 int frameRate, in getDefaultEncodingParameters() argument
376 frameRate, in getDefaultEncodingParameters()
589 int frameRate, in decode() argument
667 inPresentationTimeUs = (inputFrameIndex * 1000000) / frameRate; in decode()
1460 format.setInteger(MediaFormat.KEY_FRAME_RATE, streamParams.frameRate); in encode()
1461 int syncFrameInterval = (streamParams.syncFrameInterval + streamParams.frameRate/2) / in encode()
[all …]
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DVideoDecoderPerfTest.java249 double frameRate = 0.; // default - 0 is used for using zero PTS offset in doDecode() local
251 frameRate = format.getInteger(MediaFormat.KEY_FRAME_RATE); in doDecode()
276 if (frameRate > 0.) { in doDecode()
279 (extractor.getSampleTime() - firstPTS) * frameRate / 1e6 - index; in doDecode()
299 frameRate = cap.getSupportedFrameRatesFor(w, h).getUpper(); in doDecode()
331 long presentationTimeUs = (long)((inputNum + sample.second) * 1e6 / frameRate); in doDecode()
/cts/tests/tests/media/common/src/android/media/cts/
DNdkMediaCodec.java70 int frameRate, in AMediaCodecConfigure() argument
127 int frameRate = format.getInteger(MediaFormat.KEY_FRAME_RATE, -1); in configure() local
163 frameRate, in configure()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DWaveFileWriter.java72 public void setFrameRate(int frameRate) { in setFrameRate() argument
73 mFrameRate = frameRate; in setFrameRate()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DResourceManagerRecorderActivity.java262 int frameRate = params.getPreviewFrameRate(); in recordVideoUsingCamera() local
290 mMediaRecorder.setVideoFrameRate(frameRate); in recordVideoUsingCamera()
299 + " Framerate: " + frameRate); in recordVideoUsingCamera()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingManagerTest.java140 private static MediaFormat createMediaFormat(String mime, int width, int height, int frameRate, in createMediaFormat() argument
152 if (frameRate != INT_NOT_SET) { in createMediaFormat()
153 format.setInteger(MediaFormat.KEY_FRAME_RATE, frameRate); in createMediaFormat()
555 int frameRate) { in testVideoFormatResolverShouldTranscode() argument
559 MediaFormat mediaFormat = createMediaFormat(mime, width, height, frameRate, BIT_RATE); in testVideoFormatResolverShouldTranscode()
592 int frameRate) { in testVideoFormatResolverInvalidArgs() argument
596 MediaFormat mediaFormat = createMediaFormat(mime, width, height, frameRate, BIT_RATE); in testVideoFormatResolverInvalidArgs()
/cts/tests/tests/media/recorder/src/android/media/recorder/cts/
DMediaRecorderTest.java474 int frameRate = params.getPreviewFrameRate(); in recordVideoUsingCamera() local
483 mMediaRecorder.setVideoFrameRate(frameRate); in recordVideoUsingCamera()
507 int targetDurMs = timelapse? ((int) (durMs * (captureRate / frameRate))): durMs; in recordVideoUsingCamera()
510 checkTracksAndDuration(targetDurMs, hasVideo, hasAudio, fileName, frameRate); in recordVideoUsingCamera()
515 float frameRate) throws Exception { in checkTracksAndDuration() argument
530 float toleranceMs = RECORDED_DUR_TOLERANCE_FRAMES * (1000f / frameRate); in checkTracksAndDuration()
919 long startTimeOffset, int frameIndex, int frameRate) { in computePresentationTime() argument
920 return startTimeOffset + frameIndex * 1000000 / frameRate; in computePresentationTime()
1328 int frameRate = getMaxFrameRateForCodec(codec); in setupRecorder() local
1336 frameRate = params.getPreviewFrameRate(); in setupRecorder()
[all …]
/cts/tests/tests/gameframerate/src/
DGameFrameRateCtsActivity.java345 float frameRate = refreshRateRounded / divisor; in getExpectedFrameRate() local
346 if (frameRate > frameRateOverride) { in getExpectedFrameRate()
349 if (Math.abs(frameRateOverride - frameRate) <= divisorOverrideGap) { in getExpectedFrameRate()
350 divisorOverrideGap = Math.abs(frameRateOverride - frameRate); in getExpectedFrameRate()

12