Report errors from ChromiumEnv::GetChildren in Posix.
[chromium-blink-merge.git] / media / cast / test / video_utility.h
blob547b72d0c192296d11fb8509b86193c8decc6601
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Utility functions for video testing.
7 #include "media/cast/cast_config.h"
9 namespace media {
10 namespace cast {
12 // Compute and return PSNR between two frames.
13 double I420PSNR(const I420VideoFrame& frame1, const I420VideoFrame& frame2);
15 // Populate a video frame with values starting with the given start value.
16 // Width, height and stride should be set in advance.
17 // Memory is allocated within the function.
18 void PopulateVideoFrame(I420VideoFrame* frame, int start_value);
20 } // namespace cast
21 } // namespace media