summaryrefslogtreecommitdiffstats
path: root/media/base/video_frame.h
diff options
context:
space:
mode:
authordalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-22 21:38:13 +0000
committerdalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-22 21:38:13 +0000
commitf41082b7d8738ae92583cd5e5a1ccd68d6b195b7 (patch)
tree37faabaa734478af9814e0619de8c8e14bcd073d /media/base/video_frame.h
parent83f48280ce81f40ad442a0618ac2579370f49a06 (diff)
downloadchromium_src-f41082b7d8738ae92583cd5e5a1ccd68d6b195b7.zip
chromium_src-f41082b7d8738ae92583cd5e5a1ccd68d6b195b7.tar.gz
chromium_src-f41082b7d8738ae92583cd5e5a1ccd68d6b195b7.tar.bz2
Fix frame hashing to include all valid planes.
Moves the frame hashing code from PipelineIntegrationTestBase to VideoFrame per suggestions in: https://chromiumcodereview.appspot.com/9716008/ Also disables frame hashing for BasicPlayback since it's failing on the TSAN bots. The code is still enabled for ffmpeg_regression_tests. BUG=118688 TEST=media_unittests, ffmpeg_regression_tests. Review URL: http://codereview.chromium.org/9732016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/video_frame.h')
-rw-r--r--media/base/video_frame.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index f65bf23..073fa93 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -6,6 +6,7 @@
#define MEDIA_BASE_VIDEO_FRAME_H_
#include "base/callback.h"
+#include "base/md5.h"
#include "media/base/buffers.h"
namespace media {
@@ -106,6 +107,10 @@ class MEDIA_EXPORT VideoFrame : public StreamSample {
// StreamSample interface.
virtual bool IsEndOfStream() const OVERRIDE;
+ // Used to keep a running hash of seen frames. Expects an initialized MD5
+ // context. Calls MD5Update with the context and the contents of the frame.
+ void HashFrameForTesting(base::MD5Context* context);
+
private:
// Clients must use the static CreateFrame() method to create a new frame.
VideoFrame(Format format,