diff options
Diffstat (limited to 'media/cast/test/video_utility.h')
-rw-r--r-- | media/cast/test/video_utility.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/media/cast/test/video_utility.h b/media/cast/test/video_utility.h index 547b72d0c1..464dff2893 100644 --- a/media/cast/test/video_utility.h +++ b/media/cast/test/video_utility.h @@ -4,6 +4,7 @@ // Utility functions for video testing. +#include "media/base/video_frame.h" #include "media/cast/cast_config.h" namespace media { @@ -12,10 +13,19 @@ namespace cast { // Compute and return PSNR between two frames. double I420PSNR(const I420VideoFrame& frame1, const I420VideoFrame& frame2); +// Temporary function to handle the transition +// from I420VideoFrame->media::VideoFrame. +double I420PSNR(const VideoFrame& frame1, const I420VideoFrame& frame2); + // Populate a video frame with values starting with the given start value. // Width, height and stride should be set in advance. // Memory is allocated within the function. +void PopulateVideoFrame(VideoFrame* frame, int start_value); void PopulateVideoFrame(I420VideoFrame* frame, int start_value); +// Populate a video frame from a file. +// Returns true if frame was populated, false if not (EOF). +bool PopulateVideoFrameFromFile(VideoFrame* frame, FILE* video_file); + } // namespace cast } // namespace media |