Lines Matching refs:fps
42 static DEFINE_double(fps, 0, "Decode frames per second (default is animation native fps).");
299 native_fps = anim->fps(),
303 double fps = FLAGS_fps > 0 ? FLAGS_fps : native_fps;
304 if (fps <= 0) {
305 SkDebugf("Invalid fps: %f.\n", fps);
309 auto frame_count = static_cast<int>(duration * fps);
313 fps = frame_count / duration;
315 const auto fps_scale = native_fps / fps;
317 SkDebugf("Rendering %f seconds (%d frames @%f fps).\n", duration, frame_count, fps);
359 if (!enc.beginRecording({FLAGS_width, FLAGS_height}, fps)) {