diff options
Diffstat (limited to 'media/base/video_frame.h')
-rw-r--r-- | media/base/video_frame.h | 5 |
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, |