aboutsummaryrefslogtreecommitdiff
path: root/test/y4m_video_source.h
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-02-03 00:39:06 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-02-03 00:39:06 +0000
commit1971777eaf660d3928205f8c1d868edd437a5204 (patch)
tree8f5c3f2c206d23653bb8ee4ade59d9b6d3447a21 /test/y4m_video_source.h
parent29d510a547313f4bd6006e1c5f0c3634c775546a (diff)
parentc163e23d04e3d703a6bc19bffc3e1dbeb80442aa (diff)
downloadlibvpx-1971777eaf660d3928205f8c1d868edd437a5204.tar.gz
Merge "Snap for 11400057 from 25cb5c3e5c258d8c42c6ae76a6fa926d50cf5434 to simpleperf-release" into simpleperf-releasesimpleperf-release
Diffstat (limited to 'test/y4m_video_source.h')
-rw-r--r--test/y4m_video_source.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/y4m_video_source.h b/test/y4m_video_source.h
index 71fbf3193..e43e37d9e 100644
--- a/test/y4m_video_source.h
+++ b/test/y4m_video_source.h
@@ -27,7 +27,7 @@ class Y4mVideoSource : public VideoSource {
start_(start), limit_(limit), frame_(0), framerate_numerator_(0),
framerate_denominator_(0), y4m_() {}
- virtual ~Y4mVideoSource() {
+ ~Y4mVideoSource() override {
vpx_img_free(img_.get());
CloseSource();
}
@@ -51,33 +51,33 @@ class Y4mVideoSource : public VideoSource {
FillFrame();
}
- virtual void Begin() {
+ void Begin() override {
OpenSource();
ReadSourceToStart();
}
- virtual void Next() {
+ void Next() override {
++frame_;
FillFrame();
}
- virtual vpx_image_t *img() const {
+ vpx_image_t *img() const override {
return (frame_ < limit_) ? img_.get() : nullptr;
}
// Models a stream where Timebase = 1/FPS, so pts == frame.
- virtual vpx_codec_pts_t pts() const { return frame_; }
+ vpx_codec_pts_t pts() const override { return frame_; }
- virtual unsigned long duration() const { return 1; }
+ unsigned long duration() const override { return 1; }
- virtual vpx_rational_t timebase() const {
+ vpx_rational_t timebase() const override {
const vpx_rational_t t = { framerate_denominator_, framerate_numerator_ };
return t;
}
- virtual unsigned int frame() const { return frame_; }
+ unsigned int frame() const override { return frame_; }
- virtual unsigned int limit() const { return limit_; }
+ unsigned int limit() const override { return limit_; }
virtual void FillFrame() {
ASSERT_NE(input_file_, nullptr);