aboutsummaryrefslogtreecommitdiff
path: root/test/ivf_video_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/ivf_video_source.h')
-rw-r--r--test/ivf_video_source.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/ivf_video_source.h b/test/ivf_video_source.h
index a8ac4f154..3ccac62b5 100644
--- a/test/ivf_video_source.h
+++ b/test/ivf_video_source.h
@@ -33,19 +33,19 @@ class IVFVideoSource : public CompressedVideoSource {
compressed_frame_buf_(nullptr), frame_sz_(0), frame_(0),
end_of_file_(false) {}
- virtual ~IVFVideoSource() {
+ ~IVFVideoSource() override {
delete[] compressed_frame_buf_;
if (input_file_) fclose(input_file_);
}
- virtual void Init() {
+ void Init() override {
// Allocate a buffer for read in the compressed video frame.
compressed_frame_buf_ = new uint8_t[libvpx_test::kCodeBufferSize];
ASSERT_NE(compressed_frame_buf_, nullptr) << "Allocate frame buffer failed";
}
- virtual void Begin() {
+ void Begin() override {
input_file_ = OpenTestDataFile(file_name_);
ASSERT_NE(input_file_, nullptr)
<< "Input file open failed. Filename: " << file_name_;
@@ -62,7 +62,7 @@ class IVFVideoSource : public CompressedVideoSource {
FillFrame();
}
- virtual void Next() {
+ void Next() override {
++frame_;
FillFrame();
}
@@ -86,11 +86,11 @@ class IVFVideoSource : public CompressedVideoSource {
}
}
- virtual const uint8_t *cxdata() const {
+ const uint8_t *cxdata() const override {
return end_of_file_ ? nullptr : compressed_frame_buf_;
}
- virtual size_t frame_size() const { return frame_sz_; }
- virtual unsigned int frame_number() const { return frame_; }
+ size_t frame_size() const override { return frame_sz_; }
+ unsigned int frame_number() const override { return frame_; }
protected:
std::string file_name_;