OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #ifndef MEDIA_CAST_TEST_UTILITY_VIDEO_UTILITY_H_ |
| 6 #define MEDIA_CAST_TEST_UTILITY_VIDEO_UTILITY_H_ |
| 7 |
5 // Utility functions for video testing. | 8 // Utility functions for video testing. |
6 | 9 |
7 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
8 | 11 |
9 namespace media { | 12 namespace media { |
10 namespace cast { | 13 namespace cast { |
11 | 14 |
12 // Compute and return PSNR between two frames. | 15 // Compute and return PSNR between two frames. |
13 double I420PSNR(const scoped_refptr<media::VideoFrame>& frame1, | 16 double I420PSNR(const scoped_refptr<media::VideoFrame>& frame1, |
14 const scoped_refptr<media::VideoFrame>& frame2); | 17 const scoped_refptr<media::VideoFrame>& frame2); |
(...skipping 10 matching lines...) Expand all Loading... |
25 | 28 |
26 // Populate a video frame with noise. | 29 // Populate a video frame with noise. |
27 void PopulateVideoFrameWithNoise(VideoFrame* frame); | 30 void PopulateVideoFrameWithNoise(VideoFrame* frame); |
28 | 31 |
29 // Populate a video frame from a file. | 32 // Populate a video frame from a file. |
30 // Returns true if frame was populated, false if not (EOF). | 33 // Returns true if frame was populated, false if not (EOF). |
31 bool PopulateVideoFrameFromFile(VideoFrame* frame, FILE* video_file); | 34 bool PopulateVideoFrameFromFile(VideoFrame* frame, FILE* video_file); |
32 | 35 |
33 } // namespace cast | 36 } // namespace cast |
34 } // namespace media | 37 } // namespace media |
| 38 |
| 39 #endif // MEDIA_CAST_TEST_UTILITY_VIDEO_UTILITY_H_ |
OLD | NEW |