#include "test/testsupport/fixed_fps_video_frame_writer_adapter.h"
#include <cmath>
#include <utility>
#include "absl/types/optional.h"
#include "api/units/time_delta.h"
#include "api/video/video_sink_interface.h"
#include "rtc_base/checks.h"
#include "test/testsupport/video_frame_writer.h"
namespace webrtc {
namespace test {
namespace {
constexpr TimeDelta kOneSecond = …;
}
FixedFpsVideoFrameWriterAdapter::FixedFpsVideoFrameWriterAdapter(
int fps,
Clock* clock,
std::unique_ptr<VideoFrameWriter> delegate)
: … { … }
FixedFpsVideoFrameWriterAdapter::~FixedFpsVideoFrameWriterAdapter() { … }
void FixedFpsVideoFrameWriterAdapter::Close() { … }
bool FixedFpsVideoFrameWriterAdapter::WriteFrame(const VideoFrame& frame) { … }
bool FixedFpsVideoFrameWriterAdapter::WriteMissedSlotsExceptLast(
Timestamp now) { … }
Timestamp FixedFpsVideoFrameWriterAdapter::Now() const { … }
}
}